summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-08-29 10:26:52 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-08-29 10:26:52 +0700
commitf4c67f4f8ef9ffc9da3e0406cb08fffb6ba44fd4 (patch)
treecf73cdc59043edc89b8436816beca8dc3fa4b3a4
parent91517968d70fe00fed4668d1b5d2b84aac796f76 (diff)
add options no create on product template and variants
-rwxr-xr-xindoteknik_custom/views/product_template.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml
index e3a39412..b6155eea 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -8,7 +8,7 @@
<field name="arch" type="xml">
<field name="categ_id" position="after">
<field name="web_tax_id" domain="[('type_tax_use','=','sale'), ('active', '=', True)]"/>
- <field name="x_manufacture"/>
+ <field name="x_manufacture" options="{'no_create': True}"/>
<field name="x_model_product"/>
<field name="kind_of"/>
<field name="x_studio_field_tGhJR" widget="many2many_tags"/>
@@ -24,6 +24,9 @@
<field name="public_categ_ids" position="attributes">
<attribute name="required">1</attribute>
</field>
+ <field name="public_categ_ids" position="attributes">
+ <attribute name="options">{'no_create': True}</attribute>
+ </field>
<page name="inventory" position="after">
<page string="Marketplace" name="marketplace">
<group>