Skip to content

Commit

Permalink
[FIX] FIx portal distibutor kanban view. The group no longer needed i…
Browse files Browse the repository at this point in the history
  • Loading branch information
maq-adhoc authored and jjscarafia committed Nov 22, 2023
1 parent 4ba4489 commit 2e201a6
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions portal_sale_distributor/views/product_template_views.xml
Expand Up @@ -38,23 +38,6 @@
</field>
</record>

<record id="view_stock_product_template_tree" model="ir.ui.view">
<field name="name">product.template.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="stock.view_stock_product_template_tree"/>
<field name="arch" type="xml">
<field name="qty_available" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</field>
<field name="virtual_available" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</field>
<field name="responsible_id" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</field>
</field>
</record>

<record id="product_template_kanban_view" model="ir.ui.view">
<field name="name">product.template.product.kanban</field>
<field name="model">product.template</field>
Expand All @@ -66,22 +49,14 @@
</field>
</record>

<record id="product_template_kanban_stock_view" model="ir.ui.view">
<field name="name">Product Template Kanban Stock</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="stock.product_template_kanban_stock_view"/>
<field name="arch" type="xml">
<div t-if="record.show_on_hand_qty_status_button.raw_value" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</div>
</field>
</record>

<record id="product_template_form_view" model="ir.ui.view">
<field name="name">product.template.product.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<form position="inside">
<field name="show_on_hand_qty_status_button" invisible="True"/>
</form>
<page name="purchase" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</page>
Expand Down

0 comments on commit 2e201a6

Please sign in to comment.