summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-04-24 08:12:08 +0000
committerNicolas Martinelli <nim@odoo.com>2019-04-24 09:25:42 +0000
commita2d71ce0eacfc90706e55ef09e34e0426ff5fd0b (patch)
treed9efd47b97f29854c793d3cd23268a9b1bb5a66c /addons/web
parentc1f354beb881a47fb8d54f21034850ee16d4cdb9 (diff)
[FIX] point_of_sale: product valuation at invoice
- Create 2 companies A & B - Set the superuser in company A - Create a POS and a user in company B - Create a product P. The 'Inventory Valuation' must be different in both companies: Company A: Periodic (manual) Company B: Perpetual (automated) - Connect with the user in company B - Sell the product P, select a customer and print the invoice The COGS journal entry is not posted. This is because `action_invoice_open` is called as `sudo()`, but ultimately `product.valuation` is called in: https://github.com/odoo/odoo/blob/0cce154794c8de945805d9b9acc4c33e5258191a/addons/stock_account/models/product.py#L325 `product.valuation` is computed based on the property field `property_valuation`, which is therefore company-dependant. Closes #32803 opw-1961861 closes odoo/odoo#32903 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web')
0 files changed, 0 insertions, 0 deletions