Skip to content

Commit

Permalink
[ADD]purchase_stock_ux: user_id from replen
Browse files Browse the repository at this point in the history
closes #192

X-original-commit: 51129e1
Signed-off-by: Matias Velazquez <mav@adhoc.com.ar>
  • Loading branch information
jcadhoc committed Apr 25, 2024
1 parent abda292 commit 82293ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions purchase_stock_ux/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,11 @@ def fields_view_get(self, view_id=None, view_type='form',
res['arch'] = etree.tostring(doc)

return res

@api.model
def _prepare_purchase_order_line(self, product_id, product_qty, product_uom, company_id, supplier, po):
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
return res

0 comments on commit 82293ba

Please sign in to comment.