[13.0][FIX] E741 ambiguous variable name 'l'

This commit is contained in:
Denis Roussel
2020-05-13 08:50:06 +02:00
committed by Ernesto Tejeda
parent 263ed8f47e
commit 9720969bcf
2 changed files with 4 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
{ {
"name": "Valued Picking Report", "name": "Valued Picking Report",
"summary": "Adding Valued Picking on Delivery Slip report", "summary": "Adding Valued Picking on Delivery Slip report",
"version": "13.0.1.0.0", "version": "13.0.1.0.1",
"author": "Tecnativa, Odoo Community Association (OCA)", "author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-reporting", "website": "https://github.com/OCA/stock-logistics-reporting",
"category": "Warehouse Management", "category": "Warehouse Management",

View File

@@ -39,7 +39,9 @@ class StockPicking(models.Model):
amount_tax = 0.0 amount_tax = 0.0
for tax_group in pick.get_taxes_values().values(): for tax_group in pick.get_taxes_values().values():
amount_tax += round_curr(tax_group["amount"]) amount_tax += round_curr(tax_group["amount"])
amount_untaxed = sum(l.sale_price_subtotal for l in pick.move_line_ids) amount_untaxed = sum(
line.sale_price_subtotal for line in pick.move_line_ids
)
pick.update( pick.update(
{ {
"amount_untaxed": amount_untaxed, "amount_untaxed": amount_untaxed,