Skip to content
Snippets Groups Projects
  1. Dec 14, 2021
    • Florent de Labarre's avatar
      [FIX] point_of_sale : impossible to open the pos · 7471f132
      Florent de Labarre authored
      
      - Create a TAX A and TAX B
      - Create a fiscal position, and TAX A in scr and TAX B in dest, and add other tax map
      - Use this fiscal position in POS
      - A month latter unactive TAX B (because the law have change).
      --> You have an issue during opening the pos
      
      closes odoo/odoo#80739
      
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      7471f132
    • thcl-odoo's avatar
      [FIX] sale_stock: correctly display lot's quantities on invoice · 5a978bce
      thcl-odoo authored
      
      Current behavior :
      Quantity displayed on 'Detailed operations' block for a product lot isn't correctly displayed on the invoice sometimes.
      
      Steps to reproduce : 
      - Install Sales and Stock
      - Enable 'Units of Measure' in Settings
      - Enable debug mode then go to Users and enable 'Display Serial & Lot Number on Invoices' for current user (i.e. Mitchell Admin)
      - Create a new product
        - Tracking set to 'By Lots'
        - UoM set to 'g'
      - Create a quotation with the previously created product and set the quantity to 3.07
      - Confirm the quotation, go to the Delivery and confirm it too
      - Go back to the SO and create the invoice, then go to the invoice and confirm it
      - Print the invoice
      
      OPW-2704307
      
      closes odoo/odoo#81313
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      5a978bce
    • Raf Geens's avatar
      [FIX] base_address_city: Inherit city_id from parent contact · aba5f683
      Raf Geens authored
      
      If you create an individual contact that has a company contact as the
      parent, it will inherit certain fields from that parent, which are
      defined by `_address_fields` in `res.partner`.
      
      `base_address_city` allows enforcing picking a city from a pre-defined
      list, which gets stored in `city_id` instead of the standard free-text
      `city` field on `res.partner`. If you change `city_id`, an `onchange`
      will update `city`.
      
      `city_id` was not being inherited from the parent, which means the
      contact ends up in an inconsistent state: `city` will be set, but
      `city_id` will not.
      
      In the Colombian accounting localization, which uses the enforced city
      feature, a municipality code which is part of the record behind
      `city_id` is mandatory in certain electronic invoice XML fields that get
      sent to Carvajal. This value will incorrectly be 0 if `city_id` is not
      set on the contact due to the above issue, causing the invoice to be
      rejected.
      
      This fix lets a contact inherit the `city_id` from its parent if
      `base_address_city` is installed.
      
      opw-2638687
      
      closes odoo/odoo#81239
      
      X-original-commit: e4345c81
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      Signed-off-by: default avatarRaf Geens <raf@odoo.com>
      aba5f683
    • rhe-odoo's avatar
      [FIX] pos_cash_rounding: Fix value under rounding · 523bc2f9
      rhe-odoo authored
      
      It should be allowed to pay amount that are not rounded if the value is less than the rounding value.
      Ex:
      Rounding value: 0.05
      Amount to pay: 0.04
      The amount to pay should remain 0.04 and not be rounded to 0.05.
      
      This fix allows the user to pay for values under the rounding value without applying the rounding.
      
      closes odoo/odoo#81330
      
      X-original-commit: 76ccaaf0
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      523bc2f9
  2. Dec 13, 2021
  3. Dec 12, 2021
  4. Dec 10, 2021
  5. Dec 09, 2021
    • Raphael Collet's avatar
      [FIX] core: computed inversed fields partly assigned · 76915672
      Raphael Collet authored
      
      This fixes inconsistencies when dealing with fields that are computed
      and inversed by the same methods.
      
      Consider two fields F1, F2 with the same compute and inverse methods.
      Consider a record where we wrote on a dependency of the common compute
      method.  At this point, both fields F1 and F2 are marked to be computed.
      
      Now let us write on F1 only.  Here is what happens:
       - the write discards the computation of F1, but not F2
       - the inverse method of F1 is called:
          - the method accesses F2
             -> this calls the compute method, which assigns both F1 and F2
          - the method accesses F1
             -> the value of F1 has been replaced by the computation above
      
      The issue comes from a combination of factors:
       - the value of F2 must be determined by the computation;
       - the computation assigns both F1 and F2;
       - the computation is done while inversing F1 (and F2).
      
      The solution is to force the computation before actually writing on the
      fields and calling their inverse methods.  Note that this is necessary
      only when part of the fields computed by a common method are updated.
      When all fields computed by a common method are updated, the computation
      will automatically be cancelled.
      
      closes odoo/odoo#81152
      
      X-original-commit: fb4d6ee4
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      76915672
    • Pierrick Brun's avatar
      [FIX] point_of_sale: translate confirmation message · 90c77e7f
      Pierrick Brun authored
      
      The message displayed to the user was not translated
      
      closes odoo/odoo#81065
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      90c77e7f
    • Pierrick Brun's avatar
      [CLA] PierrickBrun in akretion CLA · 64231196
      Pierrick Brun authored
      Part-of: odoo/odoo#81065
      64231196
    • Arnold Moyaux's avatar
      [FIX] stock: add an automated way to fix unreserve issue · a431cbab
      Arnold Moyaux authored
      
      It happens that the `stock.quant.reserved_quantity` and `stock.move.line.product_qty`
      for the same parameters are not equals (due to some bugs in the past)
      
      It could implies that it doesn't exist enough reserved quantity on the
      quant when a user try to unreserve a stock.move.line resulting in the
      UserError 'It is not possible to unreserve more products of %s than you
      have in stock'
      
      However on current stable version (13.0 and 14.0) a lot of PR already
      fixed a lot of issue as:
      odoo/odoo#69377
      odoo/odoo#66347
      odoo/odoo#61758
      odoo/odoo#54355
      odoo/odoo#43180
      odoo/odoo#70975
      for example (there is more than that)
      
      So the idea is to provide a way to unlock the database manually for
      stable but not in the new version to be able to analyse them and find
      possible bugs responssible for the desynchronization.
      
      The server action check all the quants and their relative move line
      to check if match correctly. If not it will remove the reservation
      from both. It could remove the reservation from some `pickings` and
      `stock.move`
      
      related to odoo/odoo#62139
      
      closes odoo/odoo#81127
      
      X-original-commit: d99e173b
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      a431cbab
    • svs-odoo's avatar
      [FIX] *sale*: exception when cancel SO · 76c88d8b
      svs-odoo authored
      
      The commit ca7d5701 fixes issue with
      backorder being to quickly canceled but as it call `action_cancel`
      before the condition who's looking on the SO state, the condition can
      never be matched as the SO state will always be `cancel`.
      So, the exception about the SO being cancelled will not be logged on
      following documents.
      
      How to reproduce:
        - Create a product and enable route MTO + Manufacture on it and create
          a BoM for this product;
        - Create a SO for this product and confirm it;
        - Cancel the SO and check the generated MO => There is no exception
          about the cancellation of the SO.
      
      This commit fixes this issue and doesn't impact the previous fix.
      
      task-2657799
      
      closes odoo/odoo#79215
      
      Related: odoo/enterprise#22008
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      76c88d8b
    • Benoit Socias's avatar
      [FIX] website, website_blog: keep valid resize_class upon cover change · 484df4c0
      Benoit Socias authored
      
      Before this commit when covers were edited from their list view (e.g.
      changing their background color from the blog posts list or from the
      events list), the resize class was lost.
      
      After this commit the resize class is kept from its previously saved
      value if it is not a parameter during edition.
      
      Related to task-2359250 and task-2678100
      
      closes odoo/odoo#77018
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      484df4c0
    • William Braeckman's avatar
      [FIX] hr_org_chart: fix employee deletion · 00b5cf2d
      William Braeckman authored
      
      How to reproduce:
      1: create two employees (A B)  and two departments (C D)
      2: Assign A as manager of C and B as manager of D
      3: Assign C as A's department and A as A's manager
      4: Change A's department to D -> A is deleted
      
      This is due to `parent_id` being both a computed field and the source
      field for a One2many. By changing the `department_id` the `parent_id`
      also changed which results in it being report in the `onchange` method.
      For some reason however the command sent by the orm is not `UNLINK` but
      `DELETE` which results in the `active_id` being deleted.
      
      TaskId-2711428
      
      closes odoo/odoo#81135
      
      X-original-commit: 3ec9dcc5
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      00b5cf2d
    • xO-Tx's avatar
      [FIX] web_editor: fix illustration crop issue · fdddac4f
      xO-Tx authored
      
      when we crop illustrations using the editor crop tool,
      the resulted image will disappear as soon as we save the update.
      
      we have this issue because we cannot get the right svg string using
      toDataURL on the new cropped canvas with mimetype = 'image/svg+xml'
      (see 'web_editor.image_processing' > 'applyModifications')
      
      To solve this issue we set svg illustrations as uncroppable (for now).
      
      task-2312878
      
      closes odoo/odoo#59536
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      fdddac4f
    • Yolann Sabaux's avatar
      [FIX] sale: fix rounded discount · 7a9e7347
      Yolann Sabaux authored
      
      Steps to reproduce:
      - Install and launch sales
      - In settings: activate price lists and discount; price list based on advanced rules
      - Create a new price list; based on percentage (54%)*; applicable on all products; show discount
      - Make sure the Public Price List has show discount activated
      - Create a new quotation
      - Select the Test pricelist
      - Select a product (price 0.03 eur/$/other)*
      - Change the price list to Public price list
      - update the prices
      - change the price list to Test price list
      - update the prices
      -> The Discount shown is not the one defined in the price list (66.67%)*
      *(values for my example)
      
      Solution:
      Use the real price and not the a posteriori-rounded price for the computation of the discount  in the `update_prices` method.
      
      opw-2677884
      
      closes odoo/odoo#80706
      
      Signed-off-by: default avataryosa-odoo <yosa@odoo.com>
      7a9e7347
    • roen-odoo's avatar
      [FIX] account : Average price fix invoice report · 59f3f6a4
      roen-odoo authored
      
      Current behavior:
      Invoices report had a wrong average price when invoice had credit note
      
      Steps to reproduce:
      Create a db with accounting
      Create a customer C and a Product P
      Create an Invoice for C for 10 pieces of P
      Create a Credit note for C for 1 P
      Go to Reporting > Invoice Analysis
      Open the pivot view, in the Measures, display the Average Price, the Product quantity and the Untaxed Total
      The Total multiplied by the quantity is not equals to the average.
      
      opw-2557420
      
      closes odoo/odoo#79609
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      59f3f6a4
    • Laurent Smet's avatar
      [FIX] account_edi: Add missing 'extra_domain' + Fix tests l10n_be_edi · e24c5ba4
      Laurent Smet authored
      - allow to match a partner having 'BE0477472701' as vat but '477472701' inside the xml.
      - code cleanup as suggested in the original PR
      
      Introduced by https://github.com/odoo/odoo/pull/80266
      
      
      
      closes odoo/odoo#81120
      
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      e24c5ba4
    • Adrien Widart's avatar
      [FIX] stock: correctly compare float · e9f2bed9
      Adrien Widart authored
      
      Due to floating point representation, some floats may have some
      insignificant decimals. Therefore, `float_compare` should be used when
      comparing such numbers
      
      OPW-2699576
      
      closes odoo/odoo#81118
      
      X-original-commit: 7f30ef42
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      e9f2bed9
    • Goffin Simon's avatar
      [FIX] website_sale: Keep salesperson when editing portal partner · a0a28c1d
      Goffin Simon authored
      
      When editing the billing address of an existing portal partner P,
      the salesperson of P was changed by the default website salesperson
      
      BACKPORT of 52442484
      
      opw:2649732
      
      closes odoo/odoo#81073
      
      X-original-commit: f7b8a07a
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      Signed-off-by: default avatarSimon Goffin <sig@odoo.com>
      a0a28c1d
    • Bayarkhuu Bataa's avatar
      [FIX] hr_recruitment: provide address_id in the action · 68cdf057
      Bayarkhuu Bataa authored
      
      Creating employee from applicant was not providing the default
      home_address_id
      
      closes odoo/odoo#80939
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      68cdf057
    • Bayarkhuu Bataa's avatar
      [CLA] signature for BayarkhuuBataa · 8f77c11b
      Bayarkhuu Bataa authored
      Part-of: odoo/odoo#80939
      8f77c11b
  6. Dec 08, 2021
  7. Dec 07, 2021
Loading