Commit Graph
39 Commits
Author SHA1 Message Date
Cédric Krier 2ab80aff35 Clear cache when the links between user and group are modified
The caches does not depend on the Group records but on the link with the User.

issue9964
review319051002
2021-01-11 00:06:13 +01:00
Cédric Krier e11a23deb2 Rationalize import path
We use absolute path when imported module is from a different context.
And we remove unnecessary __all__ definition.

issue9466
review323591002
2020-07-21 14:38:36 +02:00
Albert Cunillera Benet b232061235 Add order on User and Group
issue8704
review278161002
2020-04-12 09:19:36 +02:00
Cédric Krier d7ed5f91f5 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:54 +01:00
Xavier Codinas 8be4976700 Add active field
issue7023
review50411002
2018-10-30 16:31:42 +01:00
Cédric Krier d2a461390a Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier 3d0c21cbec Add list of buttons on group form view
issue6229
review27931003
2017-02-02 12:09:28 +01:00
Cédric Krier bb27960228 Remove order constraint on register ModelSQL
We create the foreign table if needed before adding the foreign key constraint,
thus it is no more needed to order the registration of the ModelSQL.

issue5682
review32841002
2016-12-17 00:38:21 +01:00
Cédric Krier 44dc331ced Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Guillem Barba 4a2255c8d6 Don't remove elements from tuple on group's menu_access field
The changeSet 2a7d6a7e5c59 modified the returning of get()
method of Many2Many fields, from dictionary of list to dictionary of tuples.

issue4542
review14971002
2015-02-10 19:12:32 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Sergi Almacellas Abellana fd7c510ce4 Add grouped_slice helper and use it.
issue3516
review10301002
2014-07-17 18:53:05 +02:00
Cédric Krier f52fe8e45f Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:44:01 +01:00
Albert Cervera i Areny 34b420304e Add missing cache invalidations in res.group and res.user.
issue3447
review1381002
2013-10-28 21:38:14 +01:00
Albert Cervera i Areny 30b1403cdc Use a list of dictionaries in create().
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier 0fe1b93864 Active Record 2012-09-24 22:16:53 +02:00
Cédric Krier ee3be37a36 Fix pep8 and pyflakes 2012-04-01 23:08:15 +02:00
Mathias Behrle ab54a71984 Change select=1|2 to select=True
issue2305
review269003
2012-03-05 10:54:32 +01:00
Nicolas Évrard 6ba18631e8 Use relative imports 2011-12-14 17:00:13 +01:00
Cédric Krier 7a7e89bb10 Remove support of Many2Many field in record XML
issue1994
review35005
2011-07-03 18:01:47 +02:00
Cédric Krier 550aae8351 Change Pool into a Singleton
review42001
2011-07-03 13:20:58 +02:00
Cédric Krier 940538db8f merge 2011-03-28 12:52:45 +02:00
Cédric Krier 1ccc414413 Allow to copy group 2011-03-28 12:52:20 +02:00
Cédric Krier cc40e1ff75 Add field access on group 2011-03-28 11:49:34 +02:00
Cédric Krier f21d0c743a Use custom Many2Many for menu_access that respect the custom rules of menu 2011-03-23 16:02:22 +01:00
Cédric Krier 59da6cfd0c Add missing reset caches on create and delete of group for issue1868 2011-02-28 12:03:48 +01:00
Cédric Krier df1fd283ac New transaction management
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00
Cédric Krier 2b4c010c58 Add cache on get_preferences of res.user
Add _get_preferences to allow better performence when extending preferences
2009-03-19 11:38:47 +01:00
Cédric Krier 40f8c7553d Modify Many2Many to use a model to store relations instead of a named table. 2009-03-05 14:50:44 +01:00
Cédric Krier c9992e11d2 Remove OSV and WizardOSV and move Cacheable into model 2009-02-28 16:56:54 +01:00
Cédric Krier b129a3d47f Add get_groups with cache on res.user for workflow check of groups 2008-12-04 18:09:58 +01:00
Cédric Krier a53276cb46 Set user, group and cron name translatable 2008-11-07 14:39:21 +01:00
Cédric Krier dd2cceed23 Use list domain instead of string 2008-09-04 17:25:33 +02:00
Cédric Krier 46b5f4e77e Fix string on res.group and remove size constraint 2008-07-04 17:32:01 +02:00
Cédric Krier 0232c66506 Fix COPYRIGHT 2008-06-23 20:18:54 +02:00
Cédric Krier d48f99597c Improve record rules:
- Add default_p to allow to put a rule_group on all users
- Fix the "rule_group is True if there is no rule"
- Fix domain on user and group
2008-06-16 11:37:35 +02:00
Cédric Krier b14321a971 Improve cache to work with many instance 2008-04-24 17:20:41 +02:00
Cédric Krier c66b3c9755 Remove some class instances and move it in the __init__
This make inheritance easier
2008-03-04 11:49:32 +01:00
Cédric Krier 89b10c172e Move group stuff to its own file 2008-02-28 17:44:23 +01:00