diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-09-23 14:53:56 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-09-30 09:17:29 +0000 |
| commit | 654be58894c51d2c5384ead67a5a7c68fdebf0a7 (patch) | |
| tree | da6e79b68ab158eef460c37cfcb592b48b15eae8 /addons/web/static/src/js/views/basic | |
| parent | 286ea6b681e9ba77357f91b546052449f6342f20 (diff) | |
[FIX] purchase_stock: precision difference
- Create stockable product P: FIFO, Automated Valuation
- Set the price difference account
- Configure Decimal Accuracy for Product Price to 6 digits
- Create a PO
- Add a line with:
Product P
Quantity: 100,000
Price unit: 0.005
- Confirm the PO, receive the product and create the invoice
- Set a price unit of 0.006 on the invoice line
- Post the invoice
No price difference booking is generated, while a price difference of
100 should be created.
It happens because we compare the price units with the currency
precision.
Comparing the price units, even with the proper Product Price precision,
is not a good idea. Indeed, in case discounts are applied the price
unit computed ends up with a larger precision.
As a solution, we check if the subtotal of the journal entry is
different from zero.
opw-2341181
closes odoo/odoo#58364
closes odoo/odoo#58655
X-original-commit: 6ba9e7eef8d5aca33e63e64e819c91d1868e7349
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
