Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] account_receipt_base: Show outstanding credits debits widget on… #1

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions account_receipt_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"data": [
"views/account_fiscal_position_views.xml",
"views/res_partner_views.xml",
"views/account_move_views.xml",
"reports/account_invoice_report_views.xml",
],
}
19 changes: 19 additions & 0 deletions account_receipt_base/views/account_move_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">Add Receipts to Account Move Form View</field>
<field name="model">account.move</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='invoice_outstanding_credits_debits_widget']"
position="attributes"
>
<attribute
name="attrs"
>{'invisible':[('state', '!=', 'posted')]}</attribute>
</xpath>
</field>
</record>
</odoo>
Loading