diff options
| -rwxr-xr-x | indoteknik_custom/models/x_manufactures.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/x_manufactures.xml | 2 |
2 files changed, 3 insertions, 0 deletions
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 @@ <field name="x_manufacture_service_center"/> <field name="cache_reset_status"/> <field name="parent_id"/> + <field name="override_vendor_id" optional="hide"/> <field name="user_id" optional="hide"/> </tree> </field> @@ -54,6 +55,7 @@ <field name="image_promotion_1" widget="image" width="80" /> <field name="image_promotion_2" widget="image" width="80" /> <field name="vendor_ids" widget="many2many_tags"/> + <field name="override_vendor_id" /> </group> </group> <notebook> |
