[IMP] product: UX improvements in form view
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<field name="value_ids" widget="many2many_tags" options="{'no_create_edit': True}" context="{'default_attribute_id': attribute_id, 'show_attribute': False}"/>
|
||||
</tree>
|
||||
</field>
|
||||
<p class="oe_grey">
|
||||
<p class="oe_grey oe_edit_only">
|
||||
<strong>Warning</strong>: adding or deleting attributes
|
||||
will delete and recreate existing variants and lead
|
||||
to the loss of their possible customizations.
|
||||
|
||||
@@ -654,15 +654,15 @@
|
||||
<tree string="Vendor Information">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
<field name="product_id" invisible="context.get('product_template_invisible_variant', False)" groups="product.group_product_variant"/>
|
||||
<field name="product_id" invisible="context.get('product_template_invisible_variant', False)" groups="product.group_product_variant" optional="hide"/>
|
||||
<field name="product_tmpl_id" string="Product" invisible="context.get('visible_product_tmpl_id', True)"/>
|
||||
<field name="currency_id" groups="base.group_multi_currency"/>
|
||||
<field name="date_start" optional="hide"/>
|
||||
<field name="date_end" optional="hide"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="min_qty"/>
|
||||
<field name="product_uom" groups="uom.group_uom"/>
|
||||
<field name="price" string="Price"/>
|
||||
<field name="currency_id" groups="base.group_multi_currency"/>
|
||||
<field name="date_start"/>
|
||||
<field name="date_end"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -12,12 +12,8 @@
|
||||
<attribute name="invisible">0</attribute>
|
||||
</xpath>
|
||||
<group name="purchase" position="before">
|
||||
<group string="Vendors" name="vendors" attrs="{'invisible': [('product_variant_count','>',1)]}">
|
||||
<field name="seller_ids" context="{'default_product_tmpl_id':context.get('product_tmpl_id',active_id), 'product_template_invisible_variant': True}" nolabel="1"/>
|
||||
</group>
|
||||
<group string="Vendors" name="variant_vendors" attrs="{'invisible': [('product_variant_count','<=',1)]}">
|
||||
<field name="variant_seller_ids" context="{'default_product_tmpl_id': context.get('product_tmpl_id', active_id)}" nolabel="1"/>
|
||||
</group>
|
||||
<field name="seller_ids" context="{'default_product_tmpl_id':context.get('product_tmpl_id',active_id), 'product_template_invisible_variant': True}" nolabel="1" attrs="{'invisible': [('product_variant_count','>',1)]}"/>
|
||||
<field name="variant_seller_ids" context="{'default_product_tmpl_id': context.get('product_tmpl_id', active_id)}" nolabel="1" attrs="{'invisible': [('product_variant_count','<=',1)]}"/>
|
||||
</group>
|
||||
<group name="bill" position="attributes">
|
||||
<attribute name="groups">purchase.group_purchase_manager</attribute>
|
||||
|
||||
Reference in New Issue
Block a user