Skip to content
Snippets Groups Projects
  1. Mar 22, 2022
    • Nicolas Bayet's avatar
      [FIX] web_editor: set border and width of the table upon paste · 1428fe95
      Nicolas Bayet authored
      
      task-2793106
      
      closes odoo/odoo#86859
      
      X-original-commit: e07a40f9
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      1428fe95
    • oco-odoo's avatar
      [FIX] account: proper tax repartition for tax lines when using a writeoff... · ef9e2d9f
      oco-odoo authored
      [FIX] account: proper tax repartition for tax lines when using a writeoff reconciliation model with taxes
      
      When creating the results of a writeoff button for the manual reconciliation widget, debit and credit are actually inverted with regards to what will actually get created (final inversion is then done here to bring them back to the right sign: https://github.com/odoo/enterprise/blob/15.0/account_accountant/models/reconciliation_widget.py#L986
      
      ). Because of that, the conditions defining whether or not the compute_all should compute refund repartition need to be inverted as well.
      
      Note that it wasn't the case for bank reconciliation widget, for which the sign was directly right.
      
      Before that, compute_tax_tag_invert computed a different value for the tax_tag_invert field on base and tax line (as the tax line uses the repartition type of tax_repartition_line_id, and the base line depends on debit/credit and the tax type). Hence, the tax_tag_invert values between those two lines where inconsistent, and the tax report was wrong (since we did * -1 on one of them, but not the other).
      
      OPW 2769586
      
      closes odoo/odoo#86870
      
      X-original-commit: fdf448ef
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      ef9e2d9f
    • Manuel Gómez - https://www.vauxoo.com/'s avatar
      [FIX] website_sale: the pricelist is reset when the address is edited · 2f4ac2a0
      
      Expected behavior : The pricelist must be the one chosen by the customer on the website.
      
      Current behavior : The price list is reset when the address is edited
      
      Steps to reproduce the error :
      First of all, you need to setup 2 pricelists on the website:
      ~ The first in dollars
      ~ The second in euros
      ~ Removes the group of countries from both
      
      1. Create an order with the second price list (EURO)
      2. Set your address
      3. Edit your address
      4. The pricelist will be changed to dollars
      
      When you set the address for the first time, It redirects to /shop/confirm_order which
      executes sale_get_order(update_pricelist=True) to correct the price list.
      
      But when you edit the address sale_get_order(update_pricelist=True) is not  executed
      
      closes odoo/odoo#83061
      
      closes odoo/odoo#86764
      
      X-original-commit: e5a76880
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      2f4ac2a0
    • Raphael Collet's avatar
      [FIX] base: delete orphan translations without access right errors · c490f6fe
      Raphael Collet authored
      
      Deleting an orphan translation is mostly impossible, since it requires
      'write' access on the corresponding records, and checking access rights
      fails because the records no longer exist!
      
      Simply enable operations on orphan translations by ignoring the
      corresponding records that do not exist.  And make sure that the patch
      does not allow to create orphan translations.
      
      closes odoo/odoo#86869
      
      X-original-commit: 454aa258
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      Co-authored-by: default avatarMartin Trigaux <mat@odoo.com>
      c490f6fe
    • Florian Damhaut's avatar
      [FIX] hr_holidays: Check manager for approved by manager's leave · 3c520d70
      Florian Damhaut authored
      
      Step to reproduce:
      - Create leave type approved by the employee manager (and no limit
       allocation)
      - Set User A with user B as his manager
      - Set User C as a time off Officer
      - As user A request leaves of the before-mentionned type
      - As user C, try to approve A's leave request
      
      Current behaviour:
      - Leave is accepted
       Since V15, the groups have change and `is_officer` no longer
       represent time_off all approver but time_off officer.
       All approver are now timeoff Administrator and so the right
       of time off officer should be limited.
      
      Behaviour after PR:
      - Error is shown to the current user explaining that he need to
       be the current employee manager.
      
      opw-2753845
      
      closes odoo/odoo#86867
      
      X-original-commit: e34e4669
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      3c520d70
    • imjaygajera's avatar
      [CLA] Jay Gajera · e37460e3
      imjaygajera authored
      
      closes odoo/odoo#86868
      
      X-original-commit: fe4de2e1
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      e37460e3
  2. Mar 21, 2022
Loading