[FIX] account: accrual orders lines filter
Steps to repdroduce: - install Purchase - Accounting - Create a new Purchase Order - Add a product - Add a section or a note - in Actions select Accrued Expense Entry -> traceback rounding error OPW-2728854 closes odoo/odoo#83057 X-original-commit: 582be68bb5e4d441548a987fda3ff6450faa24ca Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: yosa-odoo <yosa@odoo.com>
This commit is contained in:
@@ -159,7 +159,8 @@ class AccruedExpenseRevenue(models.TransientModel):
|
||||
o.order_line.with_context(accrual_entry_date=self.date)._compute_untaxed_amount_invoiced()
|
||||
o.order_line.with_context(accrual_entry_date=self.date)._compute_qty_to_invoice()
|
||||
lines = o.order_line.filtered(
|
||||
lambda l: fields.Float.compare(
|
||||
lambda l: l.display_type not in ['line_section', 'line_note'] and
|
||||
fields.Float.compare(
|
||||
l.qty_to_invoice,
|
||||
0,
|
||||
precision_rounding=l.product_uom.rounding,
|
||||
|
||||
Reference in New Issue
Block a user