[FIX] pos,product,sale_management: make pricelist available in pos
Before this commit pricelist was never available on the product form if you only had pos installed.
This commit is contained in:
@@ -52,16 +52,14 @@
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="stock.view_template_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='sales']" position="after">
|
||||
<page name="pos" string="Point of Sale" attrs="{'invisible': [('sale_ok','=',False)]}">
|
||||
<group name="pos">
|
||||
<group>
|
||||
<field name="available_in_pos"/>
|
||||
<field name="pos_categ_id" attrs="{'invisible': [('available_in_pos', '=', False)]}" string="Category"/>
|
||||
<field name="to_weight" attrs="{'invisible': [('available_in_pos', '=', False)]}"/>
|
||||
</group>
|
||||
<xpath expr="//group[@name='pricelists']" position="before">
|
||||
<group name="pos" string="Point Of Sale">
|
||||
<group>
|
||||
<field name="available_in_pos"/>
|
||||
<field name="pos_categ_id" attrs="{'invisible': [('available_in_pos', '=', False)]}" string="Category"/>
|
||||
<field name="to_weight" attrs="{'invisible': [('available_in_pos', '=', False)]}"/>
|
||||
</group>
|
||||
</page>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -65,9 +65,9 @@
|
||||
<field name="description" nolabel="1" placeholder="This note is only for internal purposes."/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Sales" attrs="{'invisible':[('sale_ok','=',False)]}" name="sales" invisible="1">
|
||||
<page string="Sales" attrs="{'invisible':[('sale_ok','=',False)]}" name="sales">
|
||||
<group name="sale">
|
||||
<group groups="product.group_product_pricelist">
|
||||
<group groups="product.group_product_pricelist" name="pricelists">
|
||||
<div name="pricelist_item" groups="product.group_product_pricelist">
|
||||
<separator string="Pricing"/>
|
||||
<field name="item_ids" nolabel="1" context="{'default_base':'list_price', 'default_applied_on' :'1_product'}">
|
||||
@@ -84,7 +84,7 @@
|
||||
</group>
|
||||
<group name="email_template_and_project" invisible="1"/>
|
||||
</group>
|
||||
<group string="Description for Customers" name="description">
|
||||
<group string="Description for Customers" name="description" invisible="1">
|
||||
<field name="description_sale" nolabel="1" placeholder="This note will show up on sales orders & invoices."/>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='sales']" position="attributes">
|
||||
<xpath expr="//group[@name='description']" position="attributes">
|
||||
<attribute name="invisible">0</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user