Skip to content

Commit

Permalink
[IMP] display source sale line
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymkv25 committed Nov 3, 2023
1 parent bec78f5 commit 14317f4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions sale_commission_so_based/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"depends": ["sale_commission"],
"data": [
"views/commission_views.xml",
"views/commission_settlement_views.xml",
],
}
21 changes: 21 additions & 0 deletions sale_commission_so_based/views/commission_settlement_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record model="ir.ui.view" id="view_settlement_form">
<field name="name">Settlements - Add sales stuff</field>
<field name="model">commission.settlement</field>
<field name="inherit_id" ref="account_commission.view_settlement_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='line_ids']/tree/field[@name='date']"
position="after"
>
<field
name="sale_line_id"
attrs="{'column_invisible': [('parent.settlement_type', '!=', 'sale_order')]}"
/>
</xpath>
</field>
</record>

</odoo>

0 comments on commit 14317f4

Please sign in to comment.