Skip to content

Commit

Permalink
Merge pull request #4449 from coopiteasy/13.0-fix-pos_sale
Browse files Browse the repository at this point in the history
[13.0][OU-FIX] pos_sale: do not delete point_of_sale.pos_config_main
  • Loading branch information
pedrobaeza authored Jun 3, 2024
2 parents 39543a8 + 72198f0 commit f307678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ DEL crm.team: pos_sale.pos_sales_team [renamed to sales_team module] (noupdate)
# NOTHING TO DO: renamed xmlids in sales_team

DEL pos.config: point_of_sale.pos_config_main (noupdate)
# DONE: post-migration: Try to delete record
# NOTHING TO DO: point_of_sale.pos_config_main still exists in module
point_of_sale. Now the module pos_sale does not add a value for
crm_team_id in the xml file, it only rely on the default value
defined with a function in the model pos.config. The value set in
previous version should no be modified.
5 changes: 0 additions & 5 deletions addons/pos_sale/migrations/13.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@ def _map_crm_team_id(env):
def migrate(env, version):
openupgrade.load_data(
env.cr, "pos_sale", "migrations/13.0.1.0/noupdate_changes.xml")
openupgrade.delete_records_safely_by_xml_id(
env, [
"point_of_sale.pos_config_main",
]
)
_map_crm_team_id(env)

0 comments on commit f307678

Please sign in to comment.