summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2018-11-27 10:41:57 +0000
committerGoffin Simon <sig@odoo.com>2018-11-29 08:40:04 +0000
commit7b20604f2e39e5be6f0c8f9db9d852d38c1f7e55 (patch)
tree5114649574f7f7c94f977ada87f4a2c819102ef9 /addons
parent2bfbcf524593dced8bfb77007c0e6016b8cce570 (diff)
[FIX] website_sale: Missing fields in the product form
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/odoo#29059
Diffstat (limited to 'addons')
-rw-r--r--addons/website_sale/views/product_views.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/website_sale/views/product_views.xml b/addons/website_sale/views/product_views.xml
index 3f541d31943..8d3ff588bb3 100644
--- a/addons/website_sale/views/product_views.xml
+++ b/addons/website_sale/views/product_views.xml
@@ -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)]}">