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

[16.0][OU-ADD] loyalty #4187

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

pilarvargas-tecnativa
Copy link
Contributor

@pilarvargas-tecnativa pilarvargas-tecnativa commented Oct 23, 2023

@legalsylvain
Copy link
Contributor

/ocabot migration loyalty

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Oct 23, 2023
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 16.0-mig-loyalty branch 3 times, most recently from fcfcc65 to e171bdd Compare November 1, 2023 16:57
@pilarvargas-tecnativa pilarvargas-tecnativa marked this pull request as ready for review November 1, 2023 16:58
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting to look quite good :)

  • Check CIs
  • Comment code as much as you can

@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 16.0-mig-loyalty branch 10 times, most recently from b7584b1 to 824798f Compare November 8, 2023 17:58
Copy link

@cormaza cormaza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, check api call

openupgrade.rename_xmlids(env.cr, _xmlids_renames)
# Renamed in rename_xmlids method.
# In v15 are noupdate=1 and in v16 are noupdate=0
openupgrade.set_xml_ids_noupdate_value(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message when testing the upgrade script is as follows:

odoo.exceptions.UserError: XML IDs mail_template_loyalty_card must be a tuple or list!

These lines of code can be changed to:

    openupgrade.set_xml_ids_noupdate_value(
        env, "loyalty", ["mail_template_loyalty_card"], False
    )
    openupgrade.set_xml_ids_noupdate_value(
        env, "loyalty", ["gift_card_product_50"], False
    )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

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

Successfully merging this pull request may close these issues.

None yet

8 participants