Skip to content

Commit

Permalink
add optional attribute on discount field of contract.line
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s committed Oct 23, 2023
1 parent 607c179 commit 86b3b46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contract/views/contract.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
<field
name="discount"
groups="product.group_discount_per_so_line"
optional="show"
/>
<field name="price_subtotal" />
<field name="recurring_interval" invisible="1" />
Expand Down Expand Up @@ -339,6 +340,7 @@
<field
name="discount"
groups="product.group_discount_per_so_line"
optional="show"
/>
<field name="price_subtotal" />
<field name="recurring_interval" invisible="1" />
Expand Down
6 changes: 5 additions & 1 deletion contract/views/contract_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
attrs="{'readonly': [('automatic_price', '=', True)]}"
/>
<field name="specific_price" invisible="1" />
<field name="discount" groups="base.group_no_one" />
<field
name="discount"
groups="product.group_discount_per_so_line"
optional="show"
/>
<field name="price_subtotal" />
<field name="recurring_rule_type" invisible="1" />
<field name="recurring_interval" invisible="1" />
Expand Down

0 comments on commit 86b3b46

Please sign in to comment.