Skip to content

Commit

Permalink
[16.0][FIX] purchase_order_line_update_seller: Arreglar al marcar lin…
Browse files Browse the repository at this point in the history
…ea pedido de compra.
  • Loading branch information
alfredoavanzosc authored and anajuaristi committed Jan 16, 2025
1 parent 72b0673 commit bb16a65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _treatment_seller_ids(self):
seller = self.env["product.supplierinfo"]
if self.product_id.seller_ids:
seller = self.product_id.seller_ids.filtered(
lambda x: x.name == self.order_id.partner_id and x.min_qty == 0
lambda x: x.partner_id == self.order_id.partner_id and x.min_qty == 0
)
if not seller:
self._create_new_seller_from_purchase_line()
Expand All @@ -62,7 +62,7 @@ def _create_new_seller_from_purchase_line(self):
"product_id": self.product_id.id,
"product_tmpl_id": self.product_id.product_tmpl_id.id,
"min_qty": 0,
"name": self.order_id.partner_id.id,
"partner_id": self.order_id.partner_id.id,
"price": self.price_unit,
"discount": self.discount,
"date_start": fields.Date.context_today(self),
Expand Down

0 comments on commit bb16a65

Please sign in to comment.