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

[14.0][MIG] sales_team #2794

Merged
merged 2 commits into from
Jul 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 60 additions & 48 deletions docsource/modules130-140.rst

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions openupgrade_scripts/apriori.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"hw_proxy": "hw_drivers",
"l10n_cn_small_business": "l10n_cn",
"partner_autocomplete_address_extended": "base_address_extended",
"payment_stripe_checkout_webhook": "payment_stripe",
"pos_cash_rounding": "point_of_sale",
"pos_kitchen_printer": "pos_restaurant",
"pos_reprint": "point_of_sale",
Expand All @@ -47,6 +48,7 @@
# only used here for upgrade_analysis
renamed_models = {
# odoo
"crm.lead.tag": "crm.tag",
"email_template.preview": "mail.template.preview",
"event.answer": "event.question.answer",
"product.style": "product.ribbon",
Expand Down
30 changes: 16 additions & 14 deletions openupgrade_scripts/scripts/base/14.0.1.3/upgrade_general_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ obsolete model account.bank.statement.import.journal.creation [module account_ba
obsolete model account.fiscal.year [module account]
obsolete model account.reconciliation.widget [module account]
obsolete model base.gengo.translations [module base_gengo]
obsolete model crm.lead.tag [module crm]
obsolete model crm.lead.tag (renamed to crm.tag) [module crm]
obsolete model crm.partner.binding [module crm]
obsolete model email_template.preview (renamed to mail.template.preview) [module mail]
obsolete model event.answer (renamed to event.question.answer) [module website_event_questions]
Expand Down Expand Up @@ -52,6 +52,7 @@ obsolete model test_performance.mail [module test_mail]
new model account.automatic.entry.wizard [module account]
new model account.edi.document [module account_edi]
new model account.edi.format [module account_edi]
new model account_edi_proxy_client.user [module account_edi_proxy_client]
new model account.group.template [module account]
new model account.reconcile.model.line [module account]
new model account.reconcile.model.line.template [module account]
Expand Down Expand Up @@ -82,11 +83,8 @@ new model coupon.program [module coupon]
new model coupon.reward [module coupon]
new model coupon.rule [module coupon]
new model crm.recurring.plan [module crm]
new model crm.tag [module sales_team]
new model crm.tag (renamed from crm.lead.tag) [module sales_team]
new model decimal.precision.test [module test_new_api]
new model delegation.keyboard [module test_documentation_examples]
new model delegation.laptop [module test_documentation_examples]
new model delegation.screen [module test_documentation_examples]
new model domain.bool [module test_new_api]
new model event.lead.rule [module event_crm]
new model event.meeting.room [module website_event_meet]
Expand All @@ -112,6 +110,8 @@ new model export.group_operator.one2many [module test_xlsx_export]
new model export.inherits.child [module test_impex]
new model export.inherits.parent [module test_impex]
new model export.integer [module test_impex]
new model export.m2o.str [module test_impex]
new model export.m2o.str.child [module test_impex]
new model export.many2many [module test_impex]
new model export.many2many.other [module test_impex]
new model export.many2one [module test_impex]
Expand All @@ -130,22 +130,21 @@ new model export.string.bounded [module test_impex]
new model export.string.required [module test_impex]
new model export.text [module test_impex]
new model export.unique [module test_impex]
new model extension.0 [module test_documentation_examples]
new model fleet.vehicle.cost.report [module fleet]
new model gamification.karma.tracking [module gamification]
new model google.calendar.account.reset [module google_calendar]
new model google.calendar.sync [module google_calendar]
new model hr.applicant.refuse.reason [module hr_recruitment]
new model hr.payroll.structure.type [module hr_contract]
new model inheritance.0 [module test_documentation_examples]
new model inheritance.1 [module test_documentation_examples]
new model ir.qweb.field.image_url [module base]
new model mail.blacklist.remove [module mail]
new model mail.performance.thread [module test_mail]
new model mail.performance.tracking [module test_mail]
new model mail.render.mixin [module mail]
new model mail.template.preview (renamed from email_template.preview) [module mail]
new model mail.test.container [module test_mail]
new model mail.test.sms.bl.optout [module test_mail_full]
new model mail.test.sms.partner.2many [module test_mail_full]
new model mail.test.ticket [module test_mail]
new model mail.test.track.compute [module test_mail]
new model mailing.performance [module test_mass_mailing]
Expand Down Expand Up @@ -282,6 +281,9 @@ new model test_new_api.multi_compute_inverse [module test_new_api]
new model test_new_api.multi.line [module test_new_api]
new model test_new_api.multi.line2 [module test_new_api]
new model test_new_api.multi.tag [module test_new_api]
new model test_new_api.one2many [module test_new_api]
new model test_new_api.one2many.line [module test_new_api]
new model test_new_api.payment [module test_new_api]
new model test_new_api.recursive [module test_new_api]
new model test_new_api.recursive.tree [module test_new_api]
new model test_new_api.related [module test_new_api]
Expand Down Expand Up @@ -349,13 +351,13 @@ new model website.robots [module website]
new model website.sale.extra.field [module website_sale]
new model website.snippet.filter [module website]
---Fields in module 'general'---
# 9725 fields matched,
# Direct match: 9613
# Found in other module: 112
# 9739 fields matched,
# Direct match: 9622
# Found in other module: 117
# Found with different type: 0
# In obsolete models: 295
# New columns: 3231
# Not matched: 649
# In obsolete models: 290
# New columns: 3344
# Not matched: 645
---XML records in module 'general'---
ERROR: module not in list of installed modules:
---Models in module 'account_bank_statement_import'---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ NEW ir.actions.act_window: coupon.coupon_generate_action
NEW ir.actions.act_window: coupon.coupon_program_action_coupon_program
NEW ir.actions.act_window: coupon.coupon_program_action_promo_program
NEW ir.actions.report: coupon.report_coupon_code [renamed from sale_coupon module]
NEW ir.cron: coupon.expire_coupon_cron (noupdate)
NEW ir.cron: coupon.expire_coupon_cron [renamed from sale_coupon module] (noupdate)
NEW ir.model.access: coupon.access_coupon_coupon
NEW ir.model.access: coupon.access_coupon_generate_wizard
NEW ir.model.access: coupon.access_coupon_program
Expand Down
10 changes: 6 additions & 4 deletions openupgrade_scripts/scripts/crm/14.0.1.2/upgrade_analysis.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---Models in module 'crm'---
obsolete model crm.lead.tag
obsolete model crm.lead.tag (renamed to crm.tag in module sales_team)
obsolete model crm.partner.binding [transient]
new model crm.recurring.plan
---Fields in module 'crm'---
Expand Down Expand Up @@ -35,8 +35,11 @@ crm / crm.lead / team_id (many2one) : now a
crm / crm.lead / title (many2one) : now a function
crm / crm.lead / website (char) : now a function
crm / crm.lead / zip (char) : now a function
crm / crm.lead.tag / color (integer) : DEL
crm / crm.lead.tag / name (char) : DEL required
crm / crm.lead.tag / __last_update (datetime) : module is now 'sales_team' ('crm')
crm / crm.lead.tag / _order : module is now 'sales_team' ('crm')
crm / crm.lead.tag / color (integer) : module is now 'sales_team' ('crm')
crm / crm.lead.tag / display_name (char) : module is now 'sales_team' ('crm')
crm / crm.lead.tag / name (char) : module is now 'sales_team' ('crm')
crm / crm.recurring.plan / active (boolean) : NEW hasdefault
crm / crm.recurring.plan / name (char) : NEW required
crm / crm.recurring.plan / number_of_months (integer) : NEW required
Expand Down Expand Up @@ -71,7 +74,6 @@ NEW ir.model.access: crm.crm_recurring_plan_access_salesman
DEL ir.model.access: crm.access_crm_lead_tag
DEL ir.model.access: crm.access_crm_lead_tag_manager
DEL ir.model.access: crm.access_crm_lead_tag_salesman
DEL ir.rule: crm.calendar_event_global (noupdate)
NEW ir.ui.menu: crm.crm_lead_menu_my_activities
NEW ir.ui.menu: crm.crm_recurring_plan_menu_config
NEW ir.ui.view: crm.crm_lead_view_list_activities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ NEW ir.actions.act_window: hr_timesheet.timesheet_action_project
NEW ir.actions.act_window: hr_timesheet.timesheet_action_task
NEW ir.actions.act_window.view: hr_timesheet.timesheet_action_view_all_kanban
NEW ir.actions.act_window.view: hr_timesheet.timesheet_action_view_all_pivot
NEW ir.config_parameter: hr_timesheet.ir_config_parameter_timesheet_min_duration
NEW ir.config_parameter: hr_timesheet.ir_config_parameter_timesheet_rounding
NEW ir.config_parameter: hr_timesheet.ir_config_parameter_timesheet_min_duration (noupdate)
NEW ir.config_parameter: hr_timesheet.ir_config_parameter_timesheet_rounding (noupdate)
NEW ir.model.access: hr_timesheet.access_project_task_create_timesheet
NEW ir.rule: hr_timesheet.timesheet_line_rule_approver (noupdate)
ir.rule: hr_timesheet.timesheet_line_rule_user (noupdate) (noupdate switched)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
---Fields in module 'l10n_de'---
---XML records in module 'l10n_de'---
NEW account.tax.report: l10n_de.tax_report
NEW ir.ui.view: l10n_de.din5008_css
NEW report.paperformat: l10n_de.paperformat_euro_din_a
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
---Models in module 'l10n_it_stock_ddt'---
---Fields in module 'l10n_it_stock_ddt'---
l10n_it_stock_ddt / stock.picking / l10n_it_ddt_number (char) : NEW
l10n_it_stock_ddt / stock.picking / l10n_it_parcels (integer) : NEW hasdefault
l10n_it_stock_ddt / stock.picking / l10n_it_transport_method (selection): NEW selection_keys: ['courier', 'recipient', 'sender'], hasdefault
l10n_it_stock_ddt / stock.picking / l10n_it_transport_method_details (char): NEW
l10n_it_stock_ddt / stock.picking / l10n_it_transport_reason (selection): NEW selection_keys: ['attemped_sale', 'evaluation', 'gift', 'loaned_use', 'outsourcing', 'repair', 'sale', 'substitution', 'transfer'], hasdefault
l10n_it_stock_ddt / stock.picking.type / l10n_it_ddt_sequence_id (many2one): NEW relation: ir.sequence
---XML records in module 'l10n_it_stock_ddt'---
NEW ir.actions.report: l10n_it_stock_ddt.action_report_ddt
NEW ir.ui.view: l10n_it_stock_ddt.account_invoice_view_form_inherit_ddt
NEW ir.ui.view: l10n_it_stock_ddt.my_view_name
NEW ir.ui.view: l10n_it_stock_ddt.report_ddt_view
NEW ir.ui.view: l10n_it_stock_ddt.view_picking_form_inherit_l10n_it_ddt
NEW ir.ui.view: l10n_it_stock_ddt.view_picking_search_inherit_l10n_it_ddt
NEW ir.ui.view: l10n_it_stock_ddt.view_picking_tree_inherit_l10n_it_ddt
---nothing has changed in this module--
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ DEL account.tax.report.line: l10n_no.account_tax_report_line_grunnlag_for_utgaen
DEL account.tax.report.line: l10n_no.account_tax_report_line_grunnlag_for_utgaende_avgift_mellom_sats
DEL account.tax.report.line: l10n_no.account_tax_report_line_ikke_momspliktig_omsetning
DEL account.tax.report.line: l10n_no.account_tax_report_line_netto_beregnet_avgift
DEL account.tax.report.line: l10n_no.account_tax_report_line_sum_avgiftsgrunnlag
DEL account.tax.report.line: l10n_no.account_tax_report_line_sum_innkjop
NEW account.tax.template: l10n_no.tax10
NEW account.tax.template: l10n_no.tax11
Expand Down
10 changes: 5 additions & 5 deletions openupgrade_scripts/scripts/note/14.0.1.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<!-- <record id="note_note_create_unlink_global" model="ir.rule">
<field name="global"/>
<record id="note_note_create_unlink_global" model="ir.rule">
<!-- <field name="global"/>-->
</record>
<record id="note_note_rule_global" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="note_stage_rule_global" model="ir.rule">
<field name="global"/>
</record> -->
<!-- <field name="global"/>-->
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---Models in module 'payment_stripe'---
---Fields in module 'payment_stripe'---
payment_stripe / payment.acquirer / provider (False) : selection_keys is now '['adyen', 'alipay', 'authorize', 'buckaroo', 'manual', 'odoo_adyen', 'ogone', 'paypal', 'payulatam', 'payumoney', 'sips', 'stripe']' ('['adyen', 'alipay', 'authorize', 'buckaroo', 'manual', 'ogone', 'paypal', 'payulatam', 'payumoney', 'sips', 'stripe']')
payment_stripe / payment.acquirer / stripe_webhook_secret (char) : NEW
---XML records in module 'payment_stripe'---
DEL ir.ui.view: payment_stripe_checkout_webhook.acquirer_form_stripe
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<record id="decimal_product_uom" model="decimal.precision" forcecreate="True">
<field name="digits" eval="2"/>
</record>
<!-- <record id="product_comp_rule" model="ir.rule">
<field name="global"/>
<record id="product_comp_rule" model="ir.rule">
<!-- <field name="global"/>-->
</record>
<record id="product_packaging_comp_rule" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="product_pricelist_comp_rule" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="product_pricelist_item_comp_rule" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="product_supplierinfo_comp_rule" model="ir.rule">
<field name="global"/>
</record> -->
<!-- <field name="global"/>-->
</record>
</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ product / product.pricelist / discount_policy (selection) : now re
product / product.pricelist.item / date_end (date) : type is now 'datetime' ('date')
product / product.pricelist.item / date_start (date) : type is now 'datetime' ('date')
product / product.pricelist.item / min_quantity (integer) : type is now 'float' ('integer')
product / product.supplierinfo / _order : _order is now 'sequence, min_qty DESC, price, id' ('sequence, min_qty desc, price')
product / product.template / barcode (char) : not related anymore
product / product.template / barcode (char) : now a function
product / product.template / rental (boolean) : DEL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ NEW ir.actions.act_window: purchase.purchase_action_dashboard_list
DEL ir.actions.act_window: purchase.purchase_order_action_generic
NEW ir.actions.server: purchase.action_purchase_batch_bills
NEW ir.actions.server: purchase.action_purchase_send_reminder
NEW ir.cron: purchase.purchase_send_reminder_mail
NEW ir.cron: purchase.purchase_send_reminder_mail (noupdate)
DEL ir.filters: purchase.filter_purchase_order_average_delivery_time
DEL ir.filters: purchase.filter_purchase_order_monthly_purchases
DEL ir.filters: purchase.filter_purchase_order_price_per_supplier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ DEL ir.actions.act_window: sale_coupon.sale_coupon_generate_action
DEL ir.actions.act_window: sale_coupon.sale_coupon_program_action_coupon_program
DEL ir.actions.act_window: sale_coupon.sale_coupon_program_action_promo_program
DEL ir.actions.report: sale_coupon.report_coupon_code [renamed to coupon module]
DEL ir.cron: sale_coupon.expire_coupon_cron [renamed to coupon module] (noupdate)
NEW ir.model.access: sale_coupon.access_sale_coupon_apply_code
NEW ir.model.access: sale_coupon.access_sale_coupon_generate
NEW ir.rule: sale_coupon.sale_coupon_apply_code_rule (noupdate)
Expand Down
23 changes: 23 additions & 0 deletions openupgrade_scripts/scripts/sales_team/14.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2021 ForgeFlow S.L. <https://www.forgeflow.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
if openupgrade.table_exists(env.cr, "crm_lead_tag"):
openupgrade.rename_models(
env.cr,
[
("crm.lead.tag", "crm.tag"),
],
)
openupgrade.rename_tables(
env.cr,
[
("crm_lead_tag", "crm_tag"),
],
)
openupgrade.set_xml_ids_noupdate_value(
env, "sales_team", ["crm_rule_all_salesteam", "sale_team_comp_rule"], True
)
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---Models in module 'sales_team'---
new model crm.tag
new model crm.tag (renamed from crm.lead.tag in module crm)
---Fields in module 'sales_team'---
sales_team / crm.tag / color (integer) : NEW hasdefault
sales_team / crm.tag / name (char) : NEW required
sales_team / crm.lead.tag / __last_update (datetime) : previously in module crm
sales_team / crm.lead.tag / _order : previously in module crm
sales_team / crm.lead.tag / color (integer) : previously in module crm
sales_team / crm.lead.tag / display_name (char) : previously in module crm
sales_team / crm.lead.tag / name (char) : previously in module crm
---XML records in module 'sales_team'---
NEW ir.actions.act_window: sales_team.sales_team_crm_tag_action
NEW ir.model.access: sales_team.access_crm_tag
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---Models in module 'sales_team'---
new model crm.tag (renamed from crm.lead.tag in module crm)
# DONE: pre-migration: renamed model and tables

---Fields in module 'sales_team'---
sales_team / crm.lead.tag / __last_update (datetime) : previously in module crm
sales_team / crm.lead.tag / _order : previously in module crm
sales_team / crm.lead.tag / color (integer) : previously in module crm
sales_team / crm.lead.tag / display_name (char) : previously in module crm
sales_team / crm.lead.tag / name (char) : previously in module crm
# NOTHING TO DO

---XML records in module 'sales_team'---
NEW ir.actions.act_window: sales_team.sales_team_crm_tag_action
NEW ir.model.access: sales_team.access_crm_tag
NEW ir.model.access: sales_team.access_crm_tag_manager
NEW ir.model.access: sales_team.access_crm_tag_salesman
# NOTHING TO DO

ir.rule: sales_team.crm_rule_all_salesteam (noupdate) (noupdate switched)
ir.rule: sales_team.sale_team_comp_rule (noupdate) (noupdate switched)
# DONE: pre-migration: switched noupdate

NEW ir.ui.view: sales_team.sales_team_crm_tag_view_form
NEW ir.ui.view: sales_team.sales_team_crm_tag_view_tree
# NOTHING TO DO
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ new model export.function
new model export.inherits.child
new model export.inherits.parent
new model export.integer
new model export.m2o.str
new model export.m2o.str.child
new model export.many2many
new model export.many2many.other
new model export.many2one
Expand Down Expand Up @@ -44,6 +46,8 @@ test_impex / export.inherits.child / value (integer) : NEW
test_impex / export.inherits.parent / value_parent (integer) : NEW
test_impex / export.integer / const (integer) : NEW hasdefault
test_impex / export.integer / value (integer) : NEW
test_impex / export.m2o.str / child_id (many2one) : NEW relation: export.m2o.str.child
test_impex / export.m2o.str.child / name (char) : NEW
test_impex / export.many2many / const (integer) : NEW hasdefault
test_impex / export.many2many / value (many2many) : NEW relation: export.many2many.other
test_impex / export.many2many.other / str (char) : NEW
Expand Down Expand Up @@ -98,6 +102,8 @@ NEW ir.model.access: test_impex.access_export_function
NEW ir.model.access: test_impex.access_export_inherits_child
NEW ir.model.access: test_impex.access_export_inherits_parent
NEW ir.model.access: test_impex.access_export_integer
NEW ir.model.access: test_impex.access_export_m2o_str
NEW ir.model.access: test_impex.access_export_m2o_str_child
NEW ir.model.access: test_impex.access_export_many2many
NEW ir.model.access: test_impex.access_export_many2many_other
NEW ir.model.access: test_impex.access_export_many2one
Expand Down
Loading