Skip to content

Commit

Permalink
[IMP] account_reconcile_oca: add due date field in account_move_line …
Browse files Browse the repository at this point in the history
…tree view
  • Loading branch information
ACheung-FactorLibre committed Feb 6, 2024
1 parent a61e808 commit abb81e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion account_reconcile_oca/models/account_move_line.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# 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


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 {}
Expand Down
1 change: 1 addition & 0 deletions account_reconcile_oca/views/account_move_line.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit abb81e4

Please sign in to comment.