summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-08-29 11:16:18 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-08-29 11:16:18 +0700
commit8f985aea08c4247519dea18e0dcd742078b16c38 (patch)
tree9c2822c58c7bc111b7cf308d210c54beaf87650b /indoteknik_custom/models/stock_picking.py
parenta1400f8ccdfb829a4193c5e8d3f910211e0d5830 (diff)
parentd8b5c8392596b4090dfe7074dfe807cab066ee03 (diff)
Merge branch 'production' of https://bitbucket.org/altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index d35cd9b8..1ffb9aef 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -70,6 +70,8 @@ class StockPicking(models.Model):
('partial', 'Kirim Parsial')
], string='Note', help='jika field ini diisi maka tidak akan dihitung ke lead time')
waybill_id = fields.One2many(comodel_name='airway.bill', inverse_name='do_id', string='Airway Bill')
+ purchase_representative_id = fields.Many2one('res.users', related='move_lines.purchase_line_id.order_id.user_id',
+ string="Purchase Representative", readonly=True)
def action_create_invoice_from_mr(self):
"""Create the invoice associated to the PO.