Skip to content

Commit

Permalink
[FIX]purchase_ux:revert change
Browse files Browse the repository at this point in the history
closes #181

X-original-commit: f0eb2d6
Signed-off-by: augusto-weiss <awe@adhoc.com.ar>
  • Loading branch information
jcadhoc authored and augusto-weiss committed Mar 13, 2024
1 parent 532f54e commit 2389a01
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions purchase_ux/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,4 @@ 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 2389a01

Please sign in to comment.