Skip to content

Commit

Permalink
BSRTL-177: fix permission on some ir.filters
Browse files Browse the repository at this point in the history
  • Loading branch information
gurneyalex committed Mar 29, 2017
2 parents 8ab6b56 + b02e839 commit fa54686
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
5 changes: 3 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,6 +28,8 @@ latest (unreleased)

**Bugfixes**

* Fix base.action.rules for crm.lead transition not only for admin

**Build**

**Documentation**
Expand Down
4 changes: 4 additions & 0 deletions odoo/data/upgrade/10_0_10/ir.filters.csv
Original file line number Diff line number Diff line change
@@ -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,
8 changes: 4 additions & 4 deletions odoo/data/upgrade/10_0_4/ir.filters.csv
Original file line number Diff line number Diff line change
@@ -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,
3 changes: 3 additions & 0 deletions odoo/migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,6 @@ migration:
- intrastat_base
- product_harmonized_system
- specific_purchase
operations:
post:
- anthem songs.upgrade.10_0_10.crm::main
Empty file.
21 changes: 21 additions & 0 deletions odoo/songs/upgrade/10_0_10/crm.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit fa54686

Please sign in to comment.