diff options
| author | Jorge Pinna Puissant <jpp@odoo.com> | 2020-01-09 08:19:51 +0000 |
|---|---|---|
| committer | Jorge Pinna Puissant <jpp@odoo.com> | 2020-01-09 15:00:57 +0000 |
| commit | 7f2428cb070a083c9598b149ead2e882af0f576b (patch) | |
| tree | f7ac8538b5937c87eba8d78f78302a5793d2ee13 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | e590609ebb429c6254766aa1fd8cab3ce3fd4c74 (diff) | |
[FIX] account: recompute base amount tax
- In a multi currency company, create an invoice with the domestic
currency ($);
- Add a product (500$) with taxes;
- Change the currency to a foreign one (€);
- The product don't change of amount but only of currency (500€);
- Save the invoice, and print it.
Before this commit, the base_amount_tax of the tax wasn't be updated.
Note that the base_amount_tax it should be expressed in domestic
currency. As this field didn't update in this case, the base_amount_tax
is expressing the amount in foreign currency. As this amount is supposed
to be in domestic, for the sake of the reports, it's change in currency
of the invoice (in this case the foreign one), and it's shown in the
report. The amount shown is not correct.
Now, the base_amount_tax is recompute and setted in domestic currency.
opw-2157853
closes odoo/odoo#43071
X-original-commit: 226a1155124e890d00e33968feb43b9fd6b99fa5
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
