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
When installing ecommerce app in a fresh v12 database
the fields invoice_policy and description_sale were missing in
the product.template view form

opw:1911612

closes odoo#29059
  • Loading branch information
simongoffin committed Nov 29, 2018
1 parent 2bfbcf5 commit 7b20604
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addons/website_sale/views/product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@
<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>
<xpath expr="//group[@name='description']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//button[@name='toggle_active']" position="before">
<button class="oe_stat_button" name="website_publish_button"
type="object" icon="fa-globe" attrs="{'invisible': [('sale_ok','=',False)]}">
Expand Down

0 comments on commit 7b20604

Please sign in to comment.