mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-18 03:02:03 +02:00
12 lines
331 B
Python
12 lines
331 B
Python
# Copyright 2024 (APSL - Nagarro) Miquel Pascual, Bernat Obrador
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
|
|
def post_init_hook(cr, registry):
|
|
cr.execute(
|
|
"""
|
|
UPDATE account_move
|
|
SET analytic_document_date = invoice_date
|
|
WHERE analytic_document_date IS NULL
|
|
"""
|
|
)
|