Skip to content

Commit

Permalink
display discount_fixed in o2m on contract form
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s committed Oct 23, 2023
1 parent 4d63809 commit 4f6e6e5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
28 changes: 28 additions & 0 deletions contract_fixed_discount/views/contract.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="contract_contract_form_view" model="ir.ui.view">
<field name="name">contract.contract form view (in contract)</field>
<field name="model">contract.contract</field>
<field name="inherit_id" ref="contract.contract_contract_form_view" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='contract_line_fixed_ids']//tree//discount"
position="after"
>
<field
name="discount_fixed"
groups="product.group_discount_per_so_line"
/>
</xpath>
<xpath
expr="//field[@name='contract_line_fixed_ids']//tree//discount"
position="after"
>
<field
name="discount_fixed"
groups="product.group_discount_per_so_line"
/>
</xpath>
</field>
</record>
</odoo>
6 changes: 0 additions & 6 deletions contract_fixed_discount/views/contract_line.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
groups="product.group_discount_per_so_line"
/>
</field>
<field name="discount" position="attributes">
<attribute name="groups">product.group_discount_per_so_line</attribute>
</field>
</field>
</record>

Expand All @@ -31,9 +28,6 @@
groups="product.group_discount_per_so_line"
/>
</field>
<field name="discount" position="attributes">
<attribute name="groups">product.group_discount_per_so_line</attribute>
</field>
</field>
</record>

Expand Down

0 comments on commit 4f6e6e5

Please sign in to comment.