-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
527f72a
commit 73a69b9
Showing
7 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from . import account_billing | ||
from . import ir_actions_report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2025 Quartile (https://www.quartile.co) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import models | ||
|
||
|
||
class Report(models.Model): | ||
_inherit = "ir.actions.report" | ||
|
||
def _get_remit_to_bank(self, record): | ||
res = super()._get_remit_to_bank(record) | ||
if ( | ||
not res | ||
or not record._name == "account.billing" | ||
or not record.remit_to_bank_id | ||
): | ||
return res | ||
return record.remit_to_bank_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="view_account_billing_form_inherit" model="ir.ui.view"> | ||
<field name="name">account.billing.form.inherit</field> | ||
<field name="model">account.billing</field> | ||
<field name="inherit_id" ref="account_billing.view_account_billing_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='date']" position="after"> | ||
<xpath expr="//field[@name='payment_paid_all']" position="after"> | ||
<field name="company_partner_id" invisible="1" /> | ||
<field | ||
name="date_due" | ||
attrs="{'invisible': [('bill_type', '!=', 'out_invoice')]}" | ||
name="remit_to_bank_id" | ||
attrs="{'invisible':[('bill_type','!=','out_invoice')]}" | ||
/> | ||
</xpath> | ||
<xpath expr="//field[@name='currency_id']" position="after"> | ||
<field | ||
name="tax_entry_journal_id" | ||
attrs="{'invisible': [('bill_type', '!=', 'out_invoice')]}" | ||
/> | ||
<xpath expr="//field[@name='date']" position="after"> | ||
<field | ||
name="tax_adjustment_entry_id" | ||
readonly="1" | ||
attrs="{'invisible': [('bill_type', '!=', 'out_invoice')]}" | ||
name="date_due" | ||
attrs="{'invisible':[('bill_type','!=','out_invoice')]}" | ||
/> | ||
</xpath> | ||
<xpath expr="//notebook" position="inside"> | ||
<page | ||
string="Tax Adjustment" | ||
attrs="{'invisible':[('bill_type','!=','out_invoice')]}" | ||
> | ||
<group> | ||
<group> | ||
<field name="tax_entry_journal_id" /> | ||
<field name="tax_adjustment_entry_id" readonly="1" /> | ||
</group> | ||
</group> | ||
</page> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |