diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-29 10:26:52 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-29 10:26:52 +0700 |
| commit | f4c67f4f8ef9ffc9da3e0406cb08fffb6ba44fd4 (patch) | |
| tree | cf73cdc59043edc89b8436816beca8dc3fa4b3a4 | |
| parent | 91517968d70fe00fed4668d1b5d2b84aac796f76 (diff) | |
add options no create on product template and variants
| -rwxr-xr-x | indoteknik_custom/views/product_template.xml | 5 |
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> |
