summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-03-21 13:58:44 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-03-21 13:58:44 +0700
commitdb1780524b1e153338ced116f786b4d712d66aca (patch)
tree20235e05b56a80ead2a72133aadfecfbdf1e0796
parent91f0b17cf33178152dd78adab0856cf83b45f49b (diff)
Add override vendor on manufactures
-rwxr-xr-xindoteknik_custom/models/x_manufactures.py1
-rwxr-xr-xindoteknik_custom/views/x_manufactures.xml2
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>