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
Loading