Skip to content
Snippets Groups Projects
  1. Mar 21, 2022
  2. Mar 20, 2022
    • Benoit Socias's avatar
      [FIX] web_editor: use valid properties for hovered custom outline button · 79a8e4fe
      Benoit Socias authored
      Since [1] the CSS property reset for hovered outline buttons is using
      invalid property values.
      
      After this commit the color and image are only reset on non-hover:
      - the `background-color` is already set to `none` by `.btn`,
      - the `background-image` is only set if defined on the button's style -
      there is no need to reset it.
      
      [1]: https://github.com/odoo/odoo/commit/a010c91b5ee119cf54ed1a68a6ea06b2bc5f3978
      
      
      
      task-2633169
      
      closes odoo/odoo#86699
      
      X-original-commit: 8530235b
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      79a8e4fe
    • dbkosky's avatar
      [FIX] l10n_it_edi: Tax calculation fails edi constraint if tax price included · d4035863
      dbkosky authored
      
      When using price included taxes, the xml contained data that failed to
      meet the constraints of the edi. This is due to the local rounding on
      the lines of the invoice.
      For example:
      
      	A product costing 321€, on two lines of the invoice, with
      	a price included tax of 22%
      	Rounded per line:
      	float_round(
      		321 - (321/122 * 100),
      		2 # To two decimal places
      	)
      	evaluates to 57.89, the total tax will be 2 * 57.89 = 115.78
      
      	In the case of global rounding
      	float_round(
      		321 + 321 - (321/122*100) - (321/122*100),
      		2 # To two decimal places
      	)
      	evaluates to 115.77,
      
      	so we have a difference of one cent.
      
      This can be exacerbated by more lines.
      
      The constraints on the EDI that this conflicts with are on the tax
      summary section for each tax.
      The constraints (roughly reworded):
      00422:  The base taxable amount for the tax must be equal to the sum of
      	the base product prices (for which we have already used the
      	rounded computed values, calcuated in the invoice) +
      	<Arrotondamento> (rounding).
      
      00421:  The value provided for the <importo> that is the value of the
      	vat is equal to the taxable base multiplied by the tax rate.
      
      The problem is that because of our local roundings, the taxable base
      is equal to our products, but the tax rate * taxable base is not equal
      to the tax amount (as present in the invoice).
      
      This commit adds to the rounding field and subtracts from the
      taxable base of the tax summary a value rounding value that
      should make tax rate * taxable base equal to the value of the vat.
      
      closes odoo/odoo#86711
      
      Task: 2789290
      X-original-commit: def954e8
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      d4035863
  3. Mar 18, 2022
Loading