feat(fusion_accounting_core): shared-field-ownership for cron_last_check
Declare account.bank.statement.line.cron_last_check on fusion_accounting_core so the column survives Enterprise account_accountant uninstall. Mirrors the existing pattern used for account.move and account.reconcile.model shared fields. - Add models/account_bank_statement_line.py declaring cron_last_check as fields.Datetime(copy=False) - Wire model into models/__init__.py - Add post_install regression test verifying field presence and type - Bump manifest 19.0.1.0.0 -> 19.0.1.0.1 Made-with: Cursor
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from . import ir_module_module
|
||||
from . import account_move
|
||||
from . import account_reconcile_model
|
||||
from . import account_bank_statement_line
|
||||
|
||||
15
fusion_accounting_core/models/account_bank_statement_line.py
Normal file
15
fusion_accounting_core/models/account_bank_statement_line.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""Shared-field-ownership for account.bank.statement.line.
|
||||
|
||||
Enterprise's account_accountant adds cron_last_check (timestamp of the last
|
||||
auto-reconcile cron run for the line). By declaring it here with the same
|
||||
schema, fusion_accounting_core becomes a co-owner so the column persists
|
||||
when account_accountant uninstalls.
|
||||
"""
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountBankStatementLine(models.Model):
|
||||
_inherit = "account.bank.statement.line"
|
||||
|
||||
cron_last_check = fields.Datetime(copy=False)
|
||||
Reference in New Issue
Block a user