Initial commit: OCA Financial packages (186 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:04 +02:00
commit 3e0e8473fb
8757 changed files with 947473 additions and 0 deletions

View file

@ -0,0 +1,29 @@
def pre_init_hook(cr):
cr.execute(
"""
ALTER TABLE account_move ADD COLUMN IF NOT EXISTS amount_ecotax numeric
"""
)
cr.execute(
"""
UPDATE account_move SET amount_ecotax = 0.0 WHERE amount_ecotax IS NULL
"""
)
cr.execute(
"""
ALTER TABLE account_move_line ADD COLUMN IF NOT EXISTS subtotal_ecotax numeric
"""
)
cr.execute(
"""
ALTER TABLE account_move_line ADD COLUMN IF NOT EXISTS ecotax_amount_unit numeric
"""
)
cr.execute(
"""
UPDATE account_move_line
SET ecotax_amount_unit = 0.0, subtotal_ecotax = 0.0
WHERE ecotax_amount_unit IS NULL
"""
)