Skip to content

Commit

Permalink
[FIX] purchase_stock_ux: user_id assignment on PO
Browse files Browse the repository at this point in the history
closes #215

Signed-off-by: Juan Carreras <[email protected]>
  • Loading branch information
ced-adhoc committed Aug 7, 2024
1 parent fbdf71a commit f2347d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion purchase_stock_ux/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,6 @@ def _prepare_purchase_order_line(self, product_id, product_qty, product_uom, com
res = super()._prepare_purchase_order_line(
product_id, product_qty, product_uom, company_id, supplier, po)
#copiamos user_id desde el reabastecimiento a la orden de compra
po.user_id = self.env.user
if not po.user_id:
po.user_id = self.env.user
return res

0 comments on commit f2347d0

Please sign in to comment.