Skip to content
Snippets Groups Projects
  1. Apr 21, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] l10n_it_edi: fix bank info when credit note · 7e24c01f
      Andrea Grazioso (agr-odoo) authored
      
      Import an italian E-invoice of type TD04 (Nota di Credito).
      The invoice type is marked as 'in_refund', but the bank information will
      still be parsed from the contact info instead of taking the currenct
      company info.
      This will fail the check 'validate_partner_bank_id' and
      the user will see the error 'The account selected for payment does not
      belong to the same company as this invoice.'
      
      Skipping the bank info when we have a credit note
      
      opw-2239652
      
      closes odoo/odoo#49825
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      7e24c01f
    • jerome hanke (jhk)'s avatar
      [FIX] website_crm: state_id=false not shown in lead description · eba0eafa
      jerome hanke (jhk) authored
      
      Steps to reproduce:
      - install website, crm
      - go to crm > settings > activate leads
      - add a contact form to your website and submit
      - go to the created lead
      
      Previous behavior:
      state_id is shown as false when geoip data is empty
      
      Current behavior:
      state_id is not shown if geoip is if the state found in geoip
      does not not exist on the Odoo instance
      
      opw-2218498
      
      closes odoo/odoo#49379
      
      Signed-off-by: default avatarmightyjol <jhk-odoo@users.noreply.github.com>
      eba0eafa
  2. Apr 20, 2020
    • Nicolas Martinelli's avatar
      [FIX] stock: unreserve picking with latest scheduled date · 41c05cbf
      Nicolas Martinelli authored
      
      - Create a product P with 10 units on hand
      - Create a SO with 5 units, validate
      - Create another SO with 5 units, validate
      - Update the quantity on hand to 8
      
      The picking linked to the first SO as 2 units unreserved, while one
      would expect the unreservation on the second picking.
      
      When unreserving, sort the move lines according to the picking scheduled
      date. The latest schedule date comes first.
      
      opw-2233331
      
      closes odoo/odoo#49770
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      41c05cbf
  3. Apr 17, 2020
  4. Apr 19, 2020
  5. Apr 16, 2020
  6. Apr 15, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] hr_payroll: fix traceback on payroll creation · 56d9e6dc
      Andrea Grazioso (agr-odoo) authored
      
      Have a [DEMO] employee with an active (i.e. open) contract
      Encode an holiday (i.e 15->16 April)
      Encode a time off for [DEMO] which overlaps the holiday (i.e. 13->17
      April)
      Try to generate a payroll for the employee
      
      Traceback will popup, blocking the auto generation of the "worked days"
      lines. This happens because the holiday overlaps causes a recordset
      filled with multiple values to be queried for the id. Taking just the
      first one should be ok since the period taken into account is the full
      one (merged overlaps).
      
      opw-2236420
      
      closes odoo/odoo#49598
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      56d9e6dc
  7. Jan 30, 2020
  8. Apr 15, 2020
  9. Apr 10, 2020
  10. Apr 14, 2020
    • Nicolas Martinelli's avatar
      [FIX] mrp: WO access right · f7749e34
      Nicolas Martinelli authored
      
      Continuation of 456eceb0 in case
      products are not shared.
      
      opw-2228350
      
      closes odoo/odoo#49532
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      f7749e34
    • Nicolas Martinelli's avatar
      [FIX] mrp: compare quantity · 281c0c92
      Nicolas Martinelli authored
      
      Use `float_compare` when checking if 'Mark as Done' must be displayed.
      
      opw-2234824
      
      closes odoo/odoo#49427
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      281c0c92
    • Nicolas Martinelli's avatar
      [FIX] mrp: decoration precision · eee89db3
      Nicolas Martinelli authored
      1. Set Decimal Accuracy of "Product Unit of Measure" to 6
      2. Create new Unit of measure: "Thousand(s) of units", with ratio 1000.0
      3. Set accuracy for Unit(s), Thousand(s) of units, kg to 0.000001
      4. Create two products: "parent" (UoM: Thousand(s)) and "child" (UoM: kg)
      5. Create Bill of material: parent needs 0.12 of child
      6. Add 10000 of child product to stock
      7. Create manufacturing order for 100.123456 of parent product.
      8. Click "Produce".
      
      The decoration of the lines is incorrect.
      
      This happens because of Float representation at the JavaScript level,
      leading to comparison such as:
      
      `12.014999...8 < 12.015000`
      
      It's not possible to use some kind of rounded comparison. As a
      workaround, we change the way the float are compared.
      
      opw-2234824
      eee89db3
  11. Apr 13, 2020
  12. Apr 12, 2020
  13. Apr 10, 2020
  14. Apr 03, 2020
  15. Apr 10, 2020
  16. Apr 08, 2020
  17. Apr 09, 2020
  18. Apr 06, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] pos_sale: fix delivered/sold quantity reported · 7af831fe
      Andrea Grazioso (agr-odoo) authored
      
      Create a product with UoM Dozens
      Sold 5x via POS
      Go to the product page
      
      The smart button does not reflect the correct quantity
      (0.42 instead of 5).
      
      Fixing by editing the SQL query, the POS already provide
      the correct quantity of sold goods as it is not possible
      to change the UoM. This aim to match the behavior of sale (where
      is necessary to account for possible differences between the uom
      reported on the sale order line and the one specified in the product
      page)
      
      opw-2227482
      
      closes odoo/odoo#49015
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      7af831fe
  19. Apr 09, 2020
  20. Apr 07, 2020
  21. Apr 08, 2020
  22. Apr 02, 2020
  23. Apr 08, 2020
    • Dhruv Patel's avatar
      [FIX] web,mail: many2many_tags_email: increase limit · f099fa7c
      Dhruv Patel authored
      
      A long time ago, commit [1] increased the limit of displayed badges
      inside a many2many_tags widget, from 40 to 1000 (a large limit that
      should never been reached with such a widget).
      
      However, this solution was specific to the many2many_tags widget,
      and didn't apply to its extensions (like the many2many_tags_email
      widget). For instance, open the chatter full composer, add 40
      partners in the recipients field and try to add one more: nothing
      happens.
      
      This commit sets the limit on the widget itself. That way,
      extensions automatically have the same limit, and can override it
      if needed.
      
      [1] d4cf4374
      
      Task : 2091027
      
      closes odoo/odoo#47492
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      f099fa7c
  24. Mar 19, 2020
    • Xavier Morel's avatar
      [FIX] core: calling read_group / name_search over xmlrpc · ac78a9fa
      Xavier Morel authored
      
      Also non-browser jsonrpc (as it goes through a similar process): for
      internal performance reasons, name_search and read_group have been
      converted to a *lazy* name_get, so the "display name" is not
      unnecessarily computed.
      
      However this is an issue for the RPC endpoints (/xmlrpc and /jsonrpc)
      as they have no support for `lazy` and thus tend to blow up and / or
      do the wrong thing when trying to output a lazy:
      
      * xmlrpc has no way to handle lazy at all and straight blows up
      * jsonrpc falls back to `json_default` so they try to stringify the
        lazy, which might have worked except
      
      *Problematically* both endpoints delegate the actual work to
      `dispatch_rpc` which handles dispatching between various services and
      ultimately creates a *new* cursor before calling model
      methods (`object` service and `execute`/`execute_kw`).
      
      This means by the time the result is serialized to be output, the
      lazy's cursor has long been closed, and thus any access to an
      unevaluated `lazy` errors out when trying to fetch the underlying
      item.
      
      This also means we can't just add a hook to serialize the lazy
      in the xmlrpc marshaller, though we do have to do that. We *also* (for
      both xmlrpc and jsonrpc) have to force evluation of lazy values before
      our cursor is closed, meaning it has to be done right after the method
      is invoked, iterating the entire response.
      
      Related to task 2170343
      
      closes odoo/odoo#47801
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      ac78a9fa
  25. Apr 06, 2020
  26. Apr 03, 2020
    • Nicolas Martinelli's avatar
      [FIX] product: hide 'Configure Variant' button · d57331f5
      Nicolas Martinelli authored
      
      The 'Configure Variant' button doesn't show any relevant information in
      case of a product variant. It is only useful for a product template.
      
      opw-2229881
      
      closes odoo/odoo#48965
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      d57331f5
    • Mohammed Shekha's avatar
      [IMP] do not propagate default_* key from parent context to sub view · 328415ca
      Mohammed Shekha authored
      before this commit: from commit: https://github.com/odoo/odoo/commit/d58d6e270f4106d717821438490f60bc4f71306e
      
       parent context
      was propagated to sub views, propagating whole context to sub view creates
      issue as it contains default_* key inside it, there is a chance that sub view
      has same field name which matches with default_fieldName in context,
      e.g. go to sale order form view and create sale order line, while selecting
      product, write in product_id field so that Create and Edit option comes,
      select Create and Edit option, so whatever previously written in product_id
      field will be added in product.product form's context as default_name,
      now go to Purchase tab of product form and try to create Supplier, but note
      that Vendors One2many should be editable, if it is not then to produce this
      issue, make Vendor o2m list editable top/bottom, as soon as you click on
      Vendor o2m's create button traceback generated which comes from name_get of
      res.partner, issue raised because vendor o2m has m2o of res.partner and field
      name is 'name', when default_get for vendor o2m is called it will propagate context
      and context has default_name='typed string in product_id', as name field is
      m2o with res.partner it will generate traceback as m2o accepts (id, name) tuple
      not string
      
      after this commit: propagate context to sub view but remove default_* keys
      from parent context
      
      task-2121161
      
      closes odoo/odoo#48990
      
      X-original-commit: b3704989
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      328415ca
  27. Apr 05, 2020
  28. Apr 03, 2020
  29. Apr 01, 2020
Loading