Skip to content

Commit af2ccd0

Browse files
[MIG] pos_sale
1 parent ace5606 commit af2ccd0

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---Models in module 'pos_sale'---
2+
---Fields in module 'pos_sale'---
3+
pos_sale / crm.team / dashboard_graph_group_pos (selection): DEL selection_keys: ['day', 'month', 'pos', 'user', 'week']
4+
# NOTHING TO DO: graph configuration fields have been removed
5+
6+
pos_sale / crm.team / team_type (False) : DEL selection_keys: ['pos', 'sales', 'website'], mode: modify
7+
# NOTHING TO DO: removed field, every team should be able to handle a POS or a website for example
8+
9+
pos_sale / pos.order / crm_team_id (many2one) : NEW relation: crm.team
10+
# NOTHING TO DO: new feature
11+
12+
pos_sale / pos.order / currency_rate (float) : module is now 'point_of_sale' ('pos_sale')
13+
# NOTHING TO DO: Will be handled by ORM on module update
14+
15+
---XML records in module 'pos_sale'---
16+
NEW crm.team: sales_team.pos_sales_team (noupdate)
17+
DEL ir.ui.view: pos_sale.crm_team_view_form_inherit_pos_sale
18+
# NOTHING TO DO
19+
20+
DEL crm.team: pos_sale.pos_sales_team [renamed to sales_team module] (noupdate)
21+
# NOTHING TO DO: renamed xmlids in sales_team
22+
23+
DEL pos.config: point_of_sale.pos_config_main (noupdate)
24+
# DONE: post-migration: Try to delete record
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
from openupgradelib import openupgrade
4+
5+
6+
@openupgrade.migrate()
7+
def migrate(env, version):
8+
openupgrade.load_data(
9+
env.cr, "pos_sale", "migrations/13.0.1.0/noupdate_changes.xml")
10+
openupgrade.delete_records_safely_by_xml_id(
11+
env, [
12+
"point_of_sale.pos_config_main",
13+
]
14+
)

odoo/openupgrade/doc/source/modules120-130.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ missing in the new release are marked with |del|.
517517
+----------------------------------------------+-------------------------------------------------+
518518
|pos_restaurant | |
519519
+----------------------------------------------+-------------------------------------------------+
520-
|pos_sale | |
520+
|pos_sale | Done |
521521
+----------------------------------------------+-------------------------------------------------+
522522
| |new| pos_six | |
523523
+----------------------------------------------+-------------------------------------------------+

0 commit comments

Comments
 (0)