mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[14.0][ADD] bank_statement_check_number
This commit is contained in:
21
bank_statement_check_number/models/account_bank_statement.py
Normal file
21
bank_statement_check_number/models/account_bank_statement.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class AccountBankStatementLine(models.Model):
|
||||
_inherit = "account.bank.statement.line"
|
||||
|
||||
check_number = fields.Char(
|
||||
string="Check Number",
|
||||
copy=False,
|
||||
index=True,
|
||||
)
|
||||
|
||||
@api.model
|
||||
def _prepare_move_line_default_vals(self, counterpart_account_id=None):
|
||||
move_lines = super()._prepare_move_line_default_vals(counterpart_account_id)
|
||||
for move_line in move_lines:
|
||||
move_line.update({"check_number": self.check_number})
|
||||
return move_lines
|
||||
Reference in New Issue
Block a user