diff --git a/HISTORY.rst b/HISTORY.rst index 84ccfe226a5..563ea6ed797 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -16,10 +16,9 @@ Release History --------------- -latest (unreleased) -+++++++++++++++++++ **Features and Improvements** + * Add link inbetween 'BOM' and 'project.task / project.project' * Add fields in views for 'BOM' and 'project.task' * Add smartbutton on 'task' view @@ -29,6 +28,8 @@ latest (unreleased) **Bugfixes** +* Fix base.action.rules for crm.lead transition not only for admin + **Build** **Documentation** diff --git a/odoo/data/upgrade/10_0_10/ir.filters.csv b/odoo/data/upgrade/10_0_10/ir.filters.csv new file mode 100644 index 00000000000..b6fbba2e0d1 --- /dev/null +++ b/odoo/data/upgrade/10_0_10/ir.filters.csv @@ -0,0 +1,4 @@ +id,active,domain,name,model_id,user_id +__setup__.filter_crm_lead_1_2,True,"['|',('stage_id.name', 'ilike', '1'), ('stage_id.name', 'ilike', '2')]",Demand |NDA,crm.lead, +__setup__.filter_crm_lead_3,True,"[('stage_id.name', 'ilike', '3')]",Lead TRF,crm.lead, +__setup__.filter_crm_lead_4,True,"[('stage_id.name', 'ilike', '4')]",Lead Feasability,crm.lead, diff --git a/odoo/data/upgrade/10_0_4/ir.filters.csv b/odoo/data/upgrade/10_0_4/ir.filters.csv index 7fe55aa7261..b6fbba2e0d1 100644 --- a/odoo/data/upgrade/10_0_4/ir.filters.csv +++ b/odoo/data/upgrade/10_0_4/ir.filters.csv @@ -1,4 +1,4 @@ -id,active,domain,name,model_id -__setup__.filter_crm_lead_1_2,True,"['|',('stage_id.name', 'ilike', '1'), ('stage_id.name', 'ilike', '2')]",Demand |NDA,crm.lead -__setup__.filter_crm_lead_3,True,"[('stage_id.name', 'ilike', '3')]",Lead TRF,crm.lead -__setup__.filter_crm_lead_4,True,"[('stage_id.name', 'ilike', '4')]",Lead Feasability,crm.lead +id,active,domain,name,model_id,user_id +__setup__.filter_crm_lead_1_2,True,"['|',('stage_id.name', 'ilike', '1'), ('stage_id.name', 'ilike', '2')]",Demand |NDA,crm.lead, +__setup__.filter_crm_lead_3,True,"[('stage_id.name', 'ilike', '3')]",Lead TRF,crm.lead, +__setup__.filter_crm_lead_4,True,"[('stage_id.name', 'ilike', '4')]",Lead Feasability,crm.lead, diff --git a/odoo/migration.yml b/odoo/migration.yml index ae71ed03c1c..6b5122ef993 100644 --- a/odoo/migration.yml +++ b/odoo/migration.yml @@ -139,3 +139,6 @@ migration: - intrastat_base - product_harmonized_system - specific_purchase + operations: + post: + - anthem songs.upgrade.10_0_10.crm::main diff --git a/odoo/songs/upgrade/10_0_10/__init__.py b/odoo/songs/upgrade/10_0_10/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/odoo/songs/upgrade/10_0_10/crm.py b/odoo/songs/upgrade/10_0_10/crm.py new file mode 100644 index 00000000000..f2aae14f63d --- /dev/null +++ b/odoo/songs/upgrade/10_0_10/crm.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from pkg_resources import resource_stream + +import anthem +from anthem.lyrics.loaders import load_csv_stream +from ...common import req + + +@anthem.log +def import_filters(ctx): + content = resource_stream(req, 'data/upgrade/10_0_4/ir.filters.csv') + load_csv_stream(ctx, 'ir.filters', content, delimiter=',') + + +@anthem.log +def main(ctx): + """ Fix demo data """ + import_filters(ctx)