Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] hide fields in product.template tree views for group_portal_dis…
…tributor closes #600 Related: ingadhoc/product#474 Signed-off-by: Joel Zilli <joz@adhoc.com.ar>
- Loading branch information
Showing
4 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
portal_sale_distributor_website_sale/views/product_template_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
<record id="product_template_tree_view_website_sale_inherit" model="ir.ui.view"> | ||
<field name="name">product.template.inherit</field> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="website_sale.product_template_view_tree"/> | ||
<field name="groups_id" eval="[(4, ref('portal_sale_distributor.group_portal_distributor'))]"/> | ||
<field name="arch" type="xml"> | ||
<field name="website_id" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</field> | ||
</field> | ||
</record> | ||
</odoo> |