Commit Graph

25 Commits

Author SHA1 Message Date
Christophe Simonis d780014248 [MERGE] forward port of branch saas-3 up to ce69064 2015-03-26 18:00:06 +01:00
Goffin Simon d79a1622bb [FIX] base: ir_filters: filters not in the language of the user
the context of the user must be used in get_filters to take into account
the language of the user.

opw:630057
2015-03-26 13:18:19 +01:00
Christophe Simonis 416f0246ac [MERGE] forward port of branch saas-3 up to 4a3c471 2015-03-09 12:03:22 +01:00
Holger Brunn 323233dd02 [FIX] ir_filters: return _auto_init's result
Closes #5204
2015-03-01 03:06:03 +01:00
Olivier Dony 9132b1d306 [IMP] ir.filters: new filters are local to the menu/action by default
Allow binding an optional `action_id` to filters.
The web client will try to identify the specific
action ID when saving new filters. If no contextual
action exists, the filter is saved globally for
the model.

This will automatically keep filters within their
original menu when there are several menus/actions
leading to a given list of documents.
In some cases the action_id will not match the
filter model, which should be fine (e.g. when opening
a many2one completion popup for model `foo` within
a menu of model `bar`).

It is also still be possible to have a filter apply
to all actions/menus for a given model by manually
deleting the action_id value in the filter
(e.g. via the Manage Filters debug menu).

When updating a filter the action_id value is ignored
so that old global filters will be gradually replaced
by new "local" filters.

Also added an _order to ensure stable ordering of the
filters.
2014-07-01 03:29:05 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Antony Lesuisse 8d04c66dc3 [IMP] cleanups, move tests, remove deprecated model instantiation
bzr revid: al@openerp.com-20140501184217-pgi1gzbdpysdybog
2014-05-01 20:42:17 +02:00
Quentin (OpenERP) f69ede5bfc [IMP] ir_filers: added an order in the construction of the list of available models
bzr revid: qdp-launchpad@openerp.com-20130220103459-1wnu06p3fbaaoz83
2013-02-20 11:34:59 +01:00
Cecile Tonglet ad8b76de53 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Xavier Morel 0051f993c0 [FIX] single-quoted docstrings should use double quotes
removed a completely useless docstring

bzr revid: xmo@openerp.com-20121214132007-he0yvpmgjw4rwykb
2012-12-14 14:20:07 +01:00
Vo Minh Thu 509a084e79 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Olivier Dony 384a95461a [IMP] ir_filters: use "shared filters" to designate global filters, to match the UI
bzr revid: odo@openerp.com-20121108092822-l8bog0ow0m0ey0b8
2012-11-08 10:28:22 +01:00
Xavier Morel 33de722e83 [FIX] documentation of get_filters: returns a new field
bzr revid: xmo@openerp.com-20120522130138-tk4rdz2k97g9ohqb
2012-05-22 15:01:38 +02:00
Xavier Morel 80d962a4cc [IMP] when moving is_default flag, only select private filters with is_default (0 or 1), instead of all filters for the user (potentially many)
bzr revid: xmo@openerp.com-20120522125630-z7lfdutuabpx64u0
2012-05-22 14:56:30 +02:00
Xavier Morel 415d91f924 [FIX] error out when trying to set a global default if there already is a global default set
bzr revid: xmo@openerp.com-20120522125500-k4gxfa5ocmxk70us
2012-05-22 14:55:00 +02:00
Xavier Morel a90c8ff5ae [ADD] is_default handling on private filters
bzr revid: xmo@openerp.com-20120522115330-xnr4pyfy9sh3oqtv
2012-05-22 13:53:30 +02:00
Olivier Dony 3a4ebf3266 [IMP] ir.filters: default user_id = uid ; comment about cryptic code
(Some minor updates after XMO's review)

bzr revid: odo@openerp.com-20120516163122-jsb3n2eo2i253o00
2012-05-16 18:31:22 +02:00
Olivier Dony b521325b94 [IMP] ir.filters: unassigned filters are now global
bzr revid: odo@openerp.com-20120511094654-0qn0yr9yz4hbbzab
2012-05-11 11:46:54 +02:00
Olivier Dony b33f8d7087 [IMP] ir.filters: correct misleading tooltip
Currently, filters without any assigned user
are only usable by the system, e.g. for
driving marketing campaign segments
(in the marketing_campaign module).

lp bug: https://launchpad.net/bugs/802976 fixed

bzr revid: odo@openerp.com-20120207175927-v63kcnrwq8bgacdx
2012-02-07 18:59:27 +01:00
Numerigraphe - Lionel Sausin 9ed5cbb24c [FIX] unmutable defaults in base addons.
bzr revid: ls@numerigraphe.fr-20111107151949-n9prrufvqe3ohz18
2011-11-07 16:19:49 +01:00
Antony Lesuisse bcc1d99808 [MERGE] trunk-usability-improve_filter-rmu
bzr revid: al@openerp.com-20110806005046-4w8w2rnapbw5wbx1
2011-08-06 02:50:46 +02:00
RavishchanraMurari (Open ERP) da9f43e278 filter_management_resummit
bzr revid: rmu@tinyerp.com-20110804130508-efncl6hfr99gyetz
2011-08-04 18:35:08 +05:30
RavishchanraMurari (Open ERP) 348f4693c3 filter_management
bzr revid: rmu@tinyerp.com-20110727092226-z6vltblzo0hh3i29
2011-07-27 14:52:26 +05:30
RavishchanraMurari (Open ERP) 2e004d0741 filter management
bzr revid: rmu@tinyerp.com-20110726085218-w3om75wrt0eusxw1
2011-07-26 14:22:18 +05:30
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00