[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
parent
a9bb5213bd
commit
6cdfc18456
|
@ -1,18 +1,13 @@
|
|||
# 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
|
||||
|
||||
|
||||
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 {}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
>
|
||||
<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" column_invisible="1" />
|
||||
|
|
Loading…
Reference in New Issue