Skip to content
Snippets Groups Projects
  1. Nov 22, 2016
  2. Nov 21, 2016
  3. Nov 18, 2016
  4. Nov 17, 2016
    • Christophe Simonis's avatar
      [FIX] project: correct tour (bis) · f05e8655
      Christophe Simonis authored
      Automatic tour should not open the kanban record directly in edit mode.
      This "edit" link wasn't working and has been fixed by 2e0a3000.
      f05e8655
    • Denis Ledoux's avatar
      [FIX] base: unique bank account number constraint too restrictive · 4769ed4e
      Denis Ledoux authored
      There is a multi-company record rule on `res.partner.bank`,
      meaning you cannot see the bank accounts of other companies.
      
      Making a constraint on `sanitized_acc_number` alone prevent
      to create a same bank account into different companies,
      while you cannot see this bank account from the other
      companies.
      
      In this case, the user tries to import its bank statement,
      and it contains a bank account which already exists
      in the database but for another company than the one
      he is currently importing the statement, and,
       - it cannot find it because of the multi-company rule,
       - it cannot create it because of the constraint
      
      The constraint must take into account the company
      
      opw-690969
      4769ed4e
    • Denis Ledoux's avatar
      [FIX] website_crm_partner_assign: onchange_assign_id new API conversion oversight · de956575
      Denis Ledoux authored
      You are not supposed to write anything in an onchange,
      the result of the onchange must be assigned in the given fields
      of `self`
      
      This is an oversight during the migration to the new api of the module
      in the below revision:
      053982f4
      
      opw-694053
      de956575
    • Christophe Simonis's avatar
      639421e8
    • Christophe Simonis's avatar
      [FIX] project: Correct tour · fb773091
      Christophe Simonis authored
      Remove useless step as we are already in edit mode after clicking on
      edit action link
      fb773091
    • qsm-odoo's avatar
      [FIX] website: stop making parallax content disappear on save · 18e1ecd0
      qsm-odoo authored
      Depending on the context, the s_parallax snippet content was not
      showing after save. This was because the HTML is prettyfied on save
      and so spaces are inserted around the .oe_structure, making it break
      over the next line.
      
      This commit removed the vertical middle alignment of the .oe_structure
      block (so back like it was before v10.0), allowing to fix the problem.
      18e1ecd0
    • Devendra Kavthekar's avatar
      [IMP] sql_db: Improve error message logging on database querries · 8872800e
      Devendra Kavthekar authored
      Purpose:
      
      When we have a SQL error, it's not very easy to identify the root of the crash. For example if a mandatory field is not set on a row creation, it difficult to see which field isn't correctly set as a lot of fields are not required and a lot a NULL values are present in the INSERT querry.
      
      Specification:
      
      Show a proper log message, with the reason (cause) of the sql error.
      
      Behavior Modification Examples:
      Some sample log after applied fix. The new line are those beginning by '+'
      
      2016-10-25 09:59:40,208 21161 INFO ent_master odoo.sql_db: bad query: INSERT INTO "res_partner_category" ("id", "active", "color", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('res_partner_category_id_seq'), true, 10, 1, 1, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id
      +REASON: null value in column "name" violates not-null constraint
      +DETAIL:  Failing row contains (27, null, null, 1, null, 10, 1, null, 2016-10-25 09:59:40.207202, t, 2016-10-25 09:59:40.207202).
      
      2016-10-25 10:00:29,710 21161 INFO ent_master odoo.sql_db: bad query: UPDATE "res_partner" SET "parent_id"=1001,"type"='contact',"name"='Course Script',"company_name"=NULL,"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (1)
      +REASON: insert or update on table "res_partner" violates foreign key constraint "res_partner_parent_id_fkey"
      +DETAIL:  Key (parent_id)=(1001) is not present in table "res_partner".
      
      2016-10-25 10:23:28,690 21336 INFO ent_master odoo.sql_db: bad query: DELETE FROM res_country WHERE id IN (235)
      +REASON: null value in column "country_id" violates not-null constraint
      +DETAIL:  Failing row contains (9, 1, AL, Alabama, null, 1, 2016-10-24 10:19:58.765552, 2016-10-21 09:32:26.939607).
      +CONTEXT:  SQL statement "UPDATE ONLY "public"."res_country_state" SET "country_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "country_id""
      8872800e
    • Goffin Simon's avatar
      [FIX] sale, sale_margin, website_quote: Quotation template doesn't set purchase_price · 8a767512
      Goffin Simon authored
      When making a SO line manualy, the purchase price is automaticaly set but with a quotation
      template, the purchase price was not set.
      
      opw:693751
      8a767512
    • Yannick Tivisse's avatar
      [FIX] web: Consider currency_fields with other names than 'currency_id' · 34a52585
      Yannick Tivisse authored
      To filter the columns to aggregate, we check that the currency_fields on the column is 'currency_id'.
      
      In fact, this is only the default field name. Sometimes it could be an another name, for example 'company_currency_id'
      34a52585
Loading