Fix item_id error referenced before assigment
This commit is contained in:
parent
98d6eac395
commit
fdf4e1c2a7
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ class ProductPricelist(models.Model):
|
|||
ProductProduct = self.env['product.product']
|
||||
res = super()._compute_price_rule(products_qty_partner, date=date, uom_id=uom_id)
|
||||
new_res = res.copy()
|
||||
item_id = []
|
||||
for product_id, values in res.items():
|
||||
if values[1]:
|
||||
item_id = values[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue