9 changed files with 49 additions and 13 deletions
|
@ -0,0 +1,8 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
|
||||
|
<record id="group_add_custom_fields" model="res.groups"> |
||||
|
<field name="name">Create Custom Fields</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 129 KiB |
@ -0,0 +1,23 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
|
||||
|
<odoo> |
||||
|
<record id="view_product_form_dynamic_fields" model="ir.ui.view"> |
||||
|
<field name="name">view.product.template.form.dynamic.fields</field> |
||||
|
<field name="model">product.template</field> |
||||
|
<field name="inherit_id" ref="product.product_template_only_form_view"/> |
||||
|
<field eval="1" name="priority"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<data> |
||||
|
<button name="toggle_active" position="before"> |
||||
|
<button class="oe_stat_button o_res_partner_tip_opp" type="action" |
||||
|
name="%(dynamic_product_fields.action_product_dynamic_fields)d" |
||||
|
string="Create Fields" |
||||
|
help="Create Custom Fields" |
||||
|
icon="fa-plus" |
||||
|
groups="dynamic_product_fields.group_add_custom_fields"> |
||||
|
</button> |
||||
|
</button> |
||||
|
</data> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
Loading…
Reference in new issue