mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-27 02:22:05 +02:00
Initial commit: OCA Financial packages (186 packages)
This commit is contained in:
commit
3e0e8473fb
8757 changed files with 947473 additions and 0 deletions
|
|
@ -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
|
||||
"""
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue