-
- Downloads
[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
Please register or sign in to comment