From db1780524b1e153338ced116f786b4d712d66aca Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 21 Mar 2024 13:58:44 +0700 Subject: Add override vendor on manufactures --- indoteknik_custom/models/x_manufactures.py | 1 + indoteknik_custom/views/x_manufactures.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/indoteknik_custom/models/x_manufactures.py b/indoteknik_custom/models/x_manufactures.py index abedf0cf..b4b61296 100755 --- a/indoteknik_custom/models/x_manufactures.py +++ b/indoteknik_custom/models/x_manufactures.py @@ -49,6 +49,7 @@ class XManufactures(models.Model): vendor_ids = fields.Many2many('res.partner', string='Vendor', compute='_compute_vendor_ids') # user_id = fields.Many2one('res.users', string='Responsible', domain="['|'('id', '=', 19), ('id', '=', 6)]", help="Siapa yang bertanggung jawab") user_id = fields.Many2one('res.users', string='Responsible', help="Siapa yang bertanggung jawab") + override_vendor_id = fields.Many2one('res.partner', string='Override Vendor') def _compute_vendor_ids(self): for manufacture in self: diff --git a/indoteknik_custom/views/x_manufactures.xml b/indoteknik_custom/views/x_manufactures.xml index d413be12..01e90a1e 100755 --- a/indoteknik_custom/views/x_manufactures.xml +++ b/indoteknik_custom/views/x_manufactures.xml @@ -24,6 +24,7 @@ + @@ -54,6 +55,7 @@ + -- cgit v1.2.3