Since https://github.com/odoo/odoo/commit/e88fe6f380ed5682f2cedad16ba13ca43a3828c2 , the groups to have access to pricelists is `group_product_pricelist`, not `group_sale_pricelist` anymore. `group_sale_pricelist` is now a technical group enabling access to advanced pricelist rules (percentage/discount).
18 lines
1.1 KiB
XML
18 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_partner_property_form" model="ir.ui.view">
|
|
<field name="name">res.partner.product.property.form.inherit</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="groups_id" eval="[(4, ref('product.group_product_pricelist'))]"/>
|
|
<field name="arch" type="xml">
|
|
<group name="sale">
|
|
<field name="property_product_pricelist" groups="product.group_product_pricelist" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}"/>
|
|
<div name="parent_pricelists" groups="product.group_product_pricelist" colspan="2" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}">
|
|
<p>Pricelists are managed on <button name="open_commercial_entity" type="object" string="the parent company" class="oe_link"/></p>
|
|
</div>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
</odoo>
|