mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 04:11:59 +02:00
13 lines
372 B
Python
13 lines
372 B
Python
# Copyright 2023 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
|
|
|
|
def post_init_hook(cr, registry):
|
|
cr.execute(
|
|
"""
|
|
UPDATE purchase_order_line
|
|
SET is_cutoff_accrual_excluded = TRUE
|
|
WHERE order_id IN
|
|
( SELECT id FROM purchase_order WHERE force_invoiced )
|
|
"""
|
|
)
|