Skip to content

Commit

Permalink
[12.0][FIX] - Use base.group_no_one in contract base module
Browse files Browse the repository at this point in the history
sale.group_discount_per_so_line should be used with inheritance in contract_sale module.
  • Loading branch information
sbejaoui committed Oct 26, 2018
1 parent a17a89b commit 158b4ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contract/views/account_analytic_account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<field name="automatic_price"/>
<field name="price_unit" attrs="{'readonly': [('automatic_price', '=', True)]}"/>
<field name="specific_price" invisible="1"/>
<field name="discount" groups="sale.group_discount_per_so_line" />
<field name="discount" groups="base.group_no_one" />
<field name="price_subtotal"/>
</tree>
</field>
Expand Down
2 changes: 1 addition & 1 deletion contract/views/account_analytic_contract_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<field name="automatic_price" attrs="{'column_invisible': [('parent.contract_type','=','purchase')]}"/>
<field name="price_unit" attrs="{'readonly': [('automatic_price', '=', True)]}"/>
<field name="specific_price" invisible="1"/>
<field name="discount" groups="sale.group_discount_per_so_line" />
<field name="discount" groups="base.group_no_one" />
<field name="price_subtotal" />
</tree>
</field>
Expand Down

0 comments on commit 158b4ad

Please sign in to comment.