diff --git a/HISTORY.rst b/HISTORY.rst index 7455214f203..e35fc3dde56 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -16,7 +16,18 @@ Release History --------------- -latest (unreleased) + +**Features and Improvements** + +**Bugfixes** + +* Fix base.action.rules for crm.lead transition not only for admin + +**Build** + +**Documentation** + +10.0.9 (2017-03-23) +++++++++++++++++++ **Features and Improvements** 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 4c9859acd6b..e310dc12b88 100644 --- a/odoo/migration.yml +++ b/odoo/migration.yml @@ -132,3 +132,7 @@ migration: upgrade: - specific_hr - specific_sale + - version: 10.0.10 + 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)