summaryrefslogtreecommitdiff
path: root/addons/project_issue/project_issue_data.xml
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2016-08-09 14:01:42 +0200
committerGoffin Simon <sig@odoo.com>2016-08-09 15:06:58 +0200
commitbb72dea98de4dae8f59e397f232a0636411d37ce (patch)
treefab80d6b8e48d79574549e5ee99c143c9ea31041 /addons/project_issue/project_issue_data.xml
parentc79ba8f78531d87d1c4a82bfad0f8448cd01ee79 (diff)
[FIX] account: return of product with unit price = 0 and fixed tax
Use copysign to take into account the sign of the base amount which includes the sign of the quantity and the sign of the price_unit Amount is the fixed price for the tax, it can be negative Base amount included the sign of the quantity and the sign of the unit price and when a product is returned, it can be done either by changing the sign of quantity or by changing the sign of the price unit. When the price unit is equal to 0, the sign of the quantity is absorbed in base_amount then a "else" case is needed. opw:684459
Diffstat (limited to 'addons/project_issue/project_issue_data.xml')
0 files changed, 0 insertions, 0 deletions