[IMP] account_reconcile_oca: add due date field in account_move_line tree view

pull/808/head
Alejandro Ji Cheung 2024-02-01 16:18:38 +01:00 committed by Jordi Ballester Alomar
parent 881eff77de
commit add72202b4
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Copyright 2023 Dixmit
# 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
@ -9,6 +9,11 @@ class AccountMoveLine(models.Model):
_inherit = "account.move.line"
invoice_due_date = fields.Date(
related="move_id.invoice_date_due",
readonly=True,
)
def action_reconcile_manually(self):
if not self:
return {}

View File

@ -11,6 +11,7 @@
<tree js_class="reconcile_move_line">
<field name="date" />
<field name="move_id" optional="show" />
<field name="invoice_due_date" optional="show" />
<field name="account_id" optional="show" />
<field name="partner_id" />
<field name="company_currency_id" invisible="1" />