Skip to content

Commit

Permalink
[FIX] purchase_representative: allow to get the representative when a…
Browse files Browse the repository at this point in the history
… PO is created from mrp.production
  • Loading branch information
alan196 committed Sep 20, 2023
1 parent fb9895a commit 2f90b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion purchase_representative/models/stock_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class StockRule(models.Model):

def _run_buy(self, procurements):
for procurement, _rule in procurements:
procurement.values["propagate_create_uid"] = self.env.uid
procurement.values["propagate_create_uid"] = self._context.get('uid', self.env.uid)
return super()._run_buy(procurements)

def _prepare_purchase_order(self, company_id, origins, values):
Expand Down

0 comments on commit 2f90b08

Please sign in to comment.