Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openupgrade_scripts/apriori.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"website_sale_digital": "website_sale",
"website_sale_loyalty_delivery": "website_sale_loyalty",
"website_sale_stock_product_configurator": "website_sale_product_configurator",
# OCA/account-financial-tools
"base_vat_optional_vies": "base_vat",
# OCA/account-invoicing
"account_invoice_fiscal_position_update": "account",
# OCA/e-commerce
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def _partner_fill_vies_valid(env):
) IN (SELECT code FROM eu_countries)
) THEN TRUE
ELSE FALSE
END;
END
WHERE vies_valid IS NULL;
""",
)

Expand Down
14 changes: 14 additions & 0 deletions openupgrade_scripts/scripts/base_vat/17.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@


def _partner_create_vies_valid_column(env):
if openupgrade.column_exists(env.cr, "res_partner", "vies_passed"):
# coming from base_vat_optional_vies module
openupgrade.rename_fields(
env,
[
(
"res.partner",
"res_partner",
"vies_passed",
"vies_valid",
),
],
)
return
openupgrade.logged_query(
env.cr,
"""
Expand Down
Loading