diff options
| -rw-r--r-- | indoteknik_custom/models/approval_date_doc.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/approval_date_doc.xml | 2 |
2 files changed, 3 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): diff --git a/indoteknik_custom/views/approval_date_doc.xml b/indoteknik_custom/views/approval_date_doc.xml index ff375f14..58bf38d8 100644 --- a/indoteknik_custom/views/approval_date_doc.xml +++ b/indoteknik_custom/views/approval_date_doc.xml @@ -7,6 +7,7 @@ <tree> <field name="number"/> <field name="picking_id"/> + <field name="partner_id"/> <field name="sale_id"/> <field name="driver_departure_date"/> <field name="state"/> @@ -34,6 +35,7 @@ <group> <field name="number"/> <field name="picking_id"/> + <field name="partner_id"/> <field name="sale_id"/> <field name="driver_departure_date"/> <field name="approve_date"/> |
