[IMP] account_reconcile_oca: add due date field in account_move_line tree view
parent
881eff77de
commit
add72202b4
|
@ -1,7 +1,7 @@
|
||||||
# Copyright 2023 Dixmit
|
# Copyright 2023 Dixmit
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import _, models
|
from odoo import _, fields, models
|
||||||
from odoo.exceptions import ValidationError
|
from odoo.exceptions import ValidationError
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,11 @@ class AccountMoveLine(models.Model):
|
||||||
|
|
||||||
_inherit = "account.move.line"
|
_inherit = "account.move.line"
|
||||||
|
|
||||||
|
invoice_due_date = fields.Date(
|
||||||
|
related="move_id.invoice_date_due",
|
||||||
|
readonly=True,
|
||||||
|
)
|
||||||
|
|
||||||
def action_reconcile_manually(self):
|
def action_reconcile_manually(self):
|
||||||
if not self:
|
if not self:
|
||||||
return {}
|
return {}
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<tree js_class="reconcile_move_line">
|
<tree js_class="reconcile_move_line">
|
||||||
<field name="date" />
|
<field name="date" />
|
||||||
<field name="move_id" optional="show" />
|
<field name="move_id" optional="show" />
|
||||||
|
<field name="invoice_due_date" optional="show" />
|
||||||
<field name="account_id" optional="show" />
|
<field name="account_id" optional="show" />
|
||||||
<field name="partner_id" />
|
<field name="partner_id" />
|
||||||
<field name="company_currency_id" invisible="1" />
|
<field name="company_currency_id" invisible="1" />
|
||||||
|
|
Loading…
Reference in New Issue