Skip to content

Commit

Permalink
[FIX] purchase_ux: net_price in PO_line
Browse files Browse the repository at this point in the history
closes #176

X-original-commit: 4cd2a13
Signed-off-by: augusto-weiss <awe@adhoc.com.ar>
  • Loading branch information
mav-adhoc committed Jan 29, 2024
1 parent 1616b4e commit 574ce65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions purchase_ux/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,9 @@ def _compute_price_unit_and_date_planned_and_name(self):
price_unit = line.product_id.uom_id._compute_price(price_unit, line.product_uom)
line.price_unit = price_unit
return res

@api.model_create_multi
def create(self, vals_list):
lines = super(PurchaseOrderLine, self).create(vals_list)
lines._compute_price_unit_and_date_planned_and_name()
return lines

0 comments on commit 574ce65

Please sign in to comment.