[FIX] account_reconcile_oca: Replace invoice_due_date for date_maturity field on reconcile view. This also add possibility to order the list by this field

This commit is contained in:
Sergio Bustamante
2024-05-22 09:34:37 +02:00
parent df3a6a3207
commit 910af01332
2 changed files with 2 additions and 7 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 _, fields, models
from odoo import _, models
from odoo.exceptions import ValidationError
@@ -9,11 +9,6 @@ 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,7 +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="date_maturity" optional="show" />
<field name="account_id" optional="show" />
<field name="partner_id" />
<field name="company_currency_id" invisible="1" />