diff options
| author | Jorge Pinna Puissant <jpp@odoo.com> | 2019-02-11 09:05:08 +0000 |
|---|---|---|
| committer | Jorge Pinna Puissant <jpp@odoo.com> | 2019-02-13 08:24:41 +0000 |
| commit | d132870cab65c84b3683336a5753982764c38fb7 (patch) | |
| tree | b2edadfdc479ad067e89a5151f3a33153ecffb90 /addons/website/static/src/js/html_editor.test.js | |
| parent | 30961d5616d905c7e6279346c904f9d4cccb3a7d (diff) | |
[FIX] sale_margin: product margin round error
In a SO without customer:
Before this commit, the _product_margin wasn't working. This because,
as the customer is not defined, the pricelist isn't defined either,
and therefore currency of the pricelist is also undefined.
When you call the round function, in an undefined currency
an error is raised.
Now we take into account if customer is defined.
closes odoo/odoo#30675
Diffstat (limited to 'addons/website/static/src/js/html_editor.test.js')
0 files changed, 0 insertions, 0 deletions
