Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] base_report_to_printer: Migrate noupdate record #195

Closed

Conversation

yajo
Copy link
Member

@yajo yajo commented Dec 23, 2019

In version 9.0.2.0.0, added in #60, the cron was modified. However, since it is a noupdate=1 record, preinstalled instances started failing there.

This fixes it.

@Tecnativa TT18838

@yajo yajo self-assigned this Dec 23, 2019
@yajo yajo added the bug label Dec 23, 2019
@yajo yajo added this to the 9.0 milestone Dec 23, 2019
@pedrobaeza
Copy link
Member

This is done through a file (which we call it noupdate_changes.xml) and a call to an openupgradelib method. The file is obtained with this script: https://github.com/OCA/OpenUpgrade/blob/12.0/scripts/compare_noupdate_xml_records.py and check an example of its usage: https://github.com/OCA/OpenUpgrade/blob/bdf26ceb11834fd45ca4b4577532d6f5ee2ca4e4/addons/hr/migrations/12.0.1.1/post-migration.py#L22

@yajo
Copy link
Member Author

yajo commented Dec 23, 2019

Do I really must do all of that? 🙄 This has nothing to do with openupgrade...

@pedrobaeza
Copy link
Member

It's not a question of OpenUpgrade, but migration stuff, and it's a way to don't add so much code: you standarize the way to obtain noupdate records changes and the call you do for loading that stuff. I know this time seems more work, but doing this way you won't pass any other change unaware.

@yajo yajo force-pushed the 9.0-base_report_to_printer-fix_migration branch from 7f8b0f4 to ec100b5 Compare December 23, 2019 11:49
@yajo
Copy link
Member Author

yajo commented Dec 23, 2019

It seems to not work:

doodba INFO: Executing python custom/src/odoo/scripts/compare_noupdate_xml_records.py custom/src/report-print-send/base_report_to_printer_old custom/src/report-print-send/base_report_to_printer_old --mode module


base_report_to_printer_old:

<?xml version='1.0' encoding='utf-8'?>
<openerp>
  <data/>
</openerp>

Am I missing something?

@yajo
Copy link
Member Author

yajo commented Dec 23, 2019

I updated travis because it seemed it was failing because it was outdated. However now it fails with a timeout. Any clues?

@pedrobaeza
Copy link
Member

Maybe the changes are in other version? I'm now on mobile and I can't check more, sorry.

@yajo
Copy link
Member Author

yajo commented Dec 24, 2019

I copied the module in another folder in the version where the changes were present.

In version 9.0.2.0.0, added in OCA#60, the cron was modified. However, since it is a noupdate=1 record, preinstalled instances started failing there.

This fixes it.

@Tecnativa TT18838
@yajo yajo force-pushed the 9.0-base_report_to_printer-fix_migration branch from ec100b5 to 685a801 Compare January 2, 2020 11:29
@rafaelbn
Copy link
Member

Should we maintain this old PR open? Is v9 maybe we could close it @yajo

@pedrobaeza
Copy link
Member

Yes, closing for now.

@pedrobaeza pedrobaeza closed this Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants