Cédric Krier pushed to branch branch/5.0 at Tryton / Tryton
Commits: 1efe5385 by Adrià Tarroja Caubet at 2023-03-09T15:26:25+01:00 Skip sale lines without the type line to compute credit amount Closes #12130 (grafted from b88f769c4fefad32f528d686766799549249dae3) - - - - - 1 changed file: - modules/sale_credit_limit/party.py Changes: ===================================== modules/sale_credit_limit/party.py ===================================== @@ -34,7 +34,7 @@ amount = 0 for line in sale.lines: quantity = line.quantity - if not quantity: + if not quantity or (line.type != 'line'): continue for invoice_line in line.invoice_lines: if invoice_line.type != 'line': View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/1efe538562747f32a9ecf3c363fdd5c35f55f9e1 -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/1efe538562747f32a9ecf3c363fdd5c35f55f9e1 You're receiving this email because of your account on foss.heptapod.net.