Skip to content

[OU-ADD] account_payment_mode: Add migration scripts if it comes from 17.0#1468

Merged
pedrobaeza merged 1 commit intoOCA:17.0from
dixmit:17.0-ou
May 19, 2025
Merged

[OU-ADD] account_payment_mode: Add migration scripts if it comes from 17.0#1468
pedrobaeza merged 1 commit intoOCA:17.0from
dixmit:17.0-ou

Conversation

@etobella
Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza merged commit 88c886b into OCA:17.0 May 19, 2025
7 checks passed
@qubiq-jvbp
Copy link
Copy Markdown

Hi @etobella ,

Cloud you revise the update script as it's not working:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/openupgradelib/openupgrade.py", line 2280, in wrapped_function
    func(
  File "/opt/odoo/auto/addons/account_payment_mode/migrations/17.0.1.1.0/post-migrate.py", line 16, in migrate
    openupgrade.convert_field_to_html(
TypeError: convert_field_to_html() takes from 4 to 5 positional arguments but 6 were given
2025-05-21 15:47:42,028 157 WARNING odoo-ablehuman-t-69459-rb odoo.modules.loading: Transient module states were reset 
2025-05-21 15:47:42,042 157 ERROR odoo-ablehuman-t-69459-rb odoo.modules.registry: Failed to load registry 
Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 481, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 234, in load_module_graph
    migrations.migrate_module(package, 'post')
  File "/opt/odoo/custom/src/odoo/odoo/modules/migration.py", line 221, in migrate_module
    exec_script(self.cr, installed_version, pyfile, pkg.name, stage, stageformat[stage] % version)
  File "/opt/odoo/custom/src/odoo/odoo/modules/migration.py", line 239, in exec_script
    migrate(cr, installed_version)
  File "/usr/local/lib/python3.10/site-packages/openupgradelib/openupgrade.py", line 2280, in wrapped_function
    func(
  File "/opt/odoo/auto/addons/account_payment_mode/migrations/17.0.1.1.0/post-migrate.py", line 16, in migrate
    openupgrade.convert_field_to_html(
TypeError: convert_field_to_html() takes from 4 to 5 positional arguments but 6 were given

@pedrobaeza
Copy link
Copy Markdown
Member

Please check you have the latest openupgradelib version. The code is the same as 16:

https://github.com/OCA/bank-payment/pull/1360/files#diff-05be286321446172311a5c7c98586e3d11c650f9e91f01a8e096ba44c8043e14R10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants