Skip to content

Commit

Permalink
[FIX] website_sale: Missing fields in the product form
Browse files Browse the repository at this point in the history
Fine tuning of this commit: 7b20604

Co-authored-by atp@openerp.com

opw:1911612
  • Loading branch information
simongoffin committed Dec 10, 2018
1 parent ec4ee14 commit f20e474
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions addons/website_sale/views/product_views.xml
Expand Up @@ -61,15 +61,23 @@
</field>
</record>

<record model="ir.ui.view" id="product_template_form_view_invoice_policy">
<field name="name">product.template.invoice.policy</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="sale.product_template_form_view_invoice_policy"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='invoicing']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
</field>
</record>

<record model="ir.ui.view" id="product_template_form_view">
<field name="name">product.template.product.website.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<!-- add state field in header -->
<xpath expr="//group[@name='invoicing']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//group[@name='email_template_and_project']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
Expand Down

0 comments on commit f20e474

Please sign in to comment.