Skip to content
Snippets Groups Projects
  1. Dec 12, 2014
  2. Dec 11, 2014
  3. Dec 10, 2014
  4. Dec 09, 2014
    • Christophe Simonis's avatar
      5d60c1c8
    • Denis Ledoux's avatar
    • Olivier Dony's avatar
      [FIX] product: pricelist: multiple corrections in UoM-related conversions · da12f2b8
      Olivier Dony authored
      Pricelist computations need to consider 2 different Units
      of Measure:
       - The default product UoM (product.uom_id), used as reference
         for the various quantities and amounts specified in each
         pricelist rules.
       - The `context UoM` is the UoM in which the result is requested,
         that is the list price UoM.
      
      For example the 'price_min_margin' amount is meant for the unit
      price of 1 x default UoM. When the context UoM is not the default
      product UoM, it can be any UoM of the same UoM Category, and the
      various quantities and amounts specified on the rule need to
      be adapted accordingly:
        - min_quantity (expressed in terms of the default UoM)
        - price_surcharge (specified for 1 x default UoM)
        - price_min_margin (specified for 1 x default UoM)
        - price_max_margin (specified for 1 x default UoM)
      
      The UoM corrections were not done consistently and resulted in
      wrong prices when computing the price using a non-default UoM.
      The cases were a conversion was needed or not were not properly
      identified within the _price_rule_get_multi().
      
      After this commit, the various code branches in _price_rule_get_multi
      always ensures that:
       - price requested for: `qty` of `qty_uom_id`
       - `qty_in_product_uom` is the requested `qty` converted to default UoM
       - current (intermediary) price: `price` for  `price_uom_id`
      
      Therefore `price` and `price_uom_id` are always in sync, and `price_uom_id`
      can always be compared with `qty_uom_id' in order to know whether
      a conversion is still needed.
      
      This patch also corrects and extends the regression tests
      introduced at revision 79ebe106.
      da12f2b8
    • Denis Ledoux's avatar
      [FIX] google_calendar: deleted excluded recurring event · f9ad381c
      Denis Ledoux authored
      Do not try to delete an excluded recurrent event added in Google, but not yet syncrhonised in Odoo (immediately deleted for instance)
      f9ad381c
    • Denis Ledoux's avatar
      [FIX] google_calendar: recurrent event syncrhonization · d4f91b3f
      Denis Ledoux authored
      When an attendee is added exceptionnally in an instance of a recurrent event, do not try to sync the basic recurrent event in his calendar
      d4f91b3f
    • Denis Ledoux's avatar
      [FIX] account_analytic_analysis: default pricelist for contract sales order · 377277c9
      Denis Ledoux authored
      With 'Fixed Price' enabled, a button giving the possibility to list all sale orders appears.
      When browsing the list, there the possibility to create a new sale order.
      The contract pricelist should be used by default when coming from this specific button.
      377277c9
    • Christophe Simonis's avatar
      [IMP] models.py: increase logging level for columns that can't be casted... · a59cf39f
      Christophe Simonis authored
      [IMP] models.py: increase logging level for columns that can't be casted automatically when upgrading a module.
      a59cf39f
    • Denis Ledoux's avatar
      [FIX] email_template: default model for save as new template feature · 7831fe63
      Denis Ledoux authored
      When sending a message with the "Compose new message" button on the right of the user menu, in the top bar, if you tried to save the message as template, you had a traceback because model field of email.template is mandatory, but was set to True because there is no model in such a case.
      
      As there is no any relevant model in such a place, and that the field is mandatory, mail.message is pretty convenient as the default value.
      7831fe63
    • Denis Ledoux's avatar
      [FIX] web: scroll handling for many2one selection · a8f94a59
      Denis Ledoux authored
      If the many2one selection height was too big (bigger than the browser page), it wasn't possible to see all options, because the body is set as overflow: hidden;
      
      Moreover, if you opened a many2one selection and then scrolled the page, the selection moved with the scrolling, while it should be sticked to its input field
      a8f94a59
Loading