summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2017-04-10 17:19:02 +0200
committerGoffin Simon <sig@odoo.com>2017-04-11 15:00:14 +0200
commita0fed3b845ce6720c3cba5dba4496a8e558c7376 (patch)
tree265d42e1c847e12e6cc68fdaa094a9f0d16a113a /addons/web/static/src/js/views/basic/basic_controller.js
parent1dc361704e93bc9e8d82eb9a570c2ae9327181bb (diff)
[FIX] sale: _compute_analytic with amount=0
Steps to reproduce: -Create a product P with a standard price = 0 and its internal category is in perpetual valuation -Create a SO with an analytic account and a line with one product P -Confirm the SO -Create and validate the invoice Bug: The delivered qty on the SO was equal to 2 instead of 1 because two analytic lines are created by function create_analytic_lines with amount=0. So in function _compute_analytic, the domain was [('so_line', 'in', self.ids), ('amount', '<=', 0.0)] and it summed the two analytic lines for these two lines. Now analytic lines with amount=0 and linked to a move line are summed if the they are linked to entries for an account of type "Expenses"(user_type_id). opw:727302
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions