File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
sale_invoice_policy/models Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 77class SaleOrderLine (models .Model ):
88 _inherit = "sale.order.line"
99
10- @api .depends (
11- "qty_invoiced" ,
12- "qty_delivered" ,
13- "product_uom_qty" ,
14- "state" ,
15- "order_id.invoice_policy" ,
16- )
10+ @api .depends ("order_id.invoice_policy" )
1711 def _compute_qty_to_invoice (self ):
1812 """
1913 Exclude lines that have their order invoice policy filled in
@@ -30,15 +24,7 @@ def _compute_qty_to_invoice(self):
3024 line .qty_to_invoice = line .qty_delivered - line .qty_invoiced
3125 return True
3226
33- @api .depends (
34- "state" ,
35- "price_reduce" ,
36- "product_id" ,
37- "untaxed_amount_invoiced" ,
38- "qty_delivered" ,
39- "product_uom_qty" ,
40- "order_id.invoice_policy" ,
41- )
27+ @api .depends ("order_id.invoice_policy" )
4228 def _compute_untaxed_amount_to_invoice (self ):
4329 other_lines = self .filtered (
4430 lambda line : line .product_id .type == "service"
You can’t perform that action at this time.
0 commit comments