summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/approval_date_doc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/approval_date_doc.py b/indoteknik_custom/models/approval_date_doc.py
index e00b7416..efd4ffed 100644
--- a/indoteknik_custom/models/approval_date_doc.py
+++ b/indoteknik_custom/models/approval_date_doc.py
@@ -20,6 +20,7 @@ class ApprovalDateDoc(models.Model):
approve_date = fields.Datetime(string='Approve Date', copy=False)
approve_by = fields.Many2one('res.users', string='Approve By', copy=False)
sale_id = fields.Many2one('sale.order', string='Sale Order')
+ partner_id = fields.Many2one('res.partner', string='Partner', related='picking_id.partner_id')
@api.onchange('picking_id')
def onchange_picking_id(self):