odoo/enterprise#81692

Created by Ai Lin Zuccarello (aizu)
Closed
label
odoo-dev:master-included_taxes_fiscal_position-aizu
head
41b20c962da5c7178c1ce1b84610bb19cf7a2df4
odoo/odoo odoo/enterprise
master #201181 #81692

[IMP] account, *sale: sale_order/move line unit price computation

Before

Different behavior when:
1. Adding a product to an invoice/sale order -> adding a fiscal position and refreshing taxes: unit price (price_unit) stays the same while tax and price_subtotal adjust depending on other settings.
2. Adding a fiscal position -> adding a product: unit price (price_unit) changes and keeps the same un-taxed price which is based on the original sales price minus the tax set on the product. 

Now

Scenario 2 behaves the same as 1, therefore keeping the same unit price when setting a fiscal position before adding a product to an invoice/sale order. 

odoo/odoo/pull/201181

task-4430319