Skip to content

Commit 9f9e91f

Browse files
committed
[FIX] account_invoice_commission: adjust visibility conditions for commission pages
X-original-commit: bfb89e9
1 parent 49a5eb6 commit 9f9e91f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

account_invoice_commission/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
##############################################################################
2020
{
2121
"name": "Commission Invoices",
22-
"version": "19.0.1.1.0",
22+
"version": "19.0.1.2.0",
2323
"category": "Accounting",
2424
"sequence": 14,
2525
"summary": "",

account_invoice_commission/views/account_move_view.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<field name="date_last_payment" invisible="state not in ('open', 'paid')"/>
1212
</xpath>
1313
<notebook>
14-
<page string="Commissions" invisible="move_type in ('in_invoice', 'in_refund', 'in_receipt')">
15-
<field name="commission_invoice_ids"/>
14+
<page string="Commissions" invisible="move_type in ('in_invoice', 'in_refund', 'in_receipt','entry')">
15+
<field name="commission_invoice_ids" context="{'list_view_ref':'account_invoice_commission.view_invoice_tree', 'form_view_ref':'account.move_form'}" readonly="state != 'draft'"/>
1616
</page>
17-
<page string="Commission" invisible="move_type in ('out_invoice', 'out_refund', 'out_receipt')">
17+
<page string="Commission" invisible="move_type in ('out_invoice', 'out_refund', 'out_receipt','entry')">
1818
<field name="commissioned_invoice_ids" context="{'commissioned_partner_id': partner_id, 'list_view_ref':'account_invoice_commission.view_invoice_tree', 'form_view_ref':'account.move_form', 'search_default_not_commissioned': True, 'search_default_closed': 1, 'search_default_invoice_user_id': partner_user_id, 'default_move_type': 'out_invoice'}" readonly="state != 'draft'"/>
1919
</page>
2020
</notebook>

0 commit comments

Comments
 (0)