Commit Graph
150 Commits
Author SHA1 Message Date
Cédric Krier 33d8f038d7 Add workflow graph on ir.model
issue5292
review15961002
2016-03-15 18:59:11 +01:00
Nicolas Évrard 2fef479575 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier c7829b15f7 Sync model data with only the filesystem values
It must not update the previous values as some field could have been removed.
Also there is no problem with module override because this button is called
during normal run and not the update module process, so the filesystem value
contains all the overridden values.

issue4992
review22451002
2015-10-01 17:09:14 +02:00
Cédric Krier 44dc331ced Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Cédric Krier 318b8cac65 Use explicite comparison to Boolean in SQL queries
Not every database supports boolean expression.

issue4810
review17291002
2015-06-15 01:20:25 +02:00
Cédric Krier 611b96c5f0 Add is_instance_method tool compatible with Python3
issue3211
2015-03-18 23:34:55 +01:00
Cédric Krier 5cfde31ed2 Use bytes and bytearray for Binary
issue4637
review11091002
2015-03-16 19:28:34 +01:00
Cédric Krier d7db35c995 Fix selection_change_with
Initialize selection_change_with with en empty set. It must be a set to allow
later fields.depends to update it. The ModelAccess.check_relation must also
manage instance method.

issue4636
review14091002
2015-03-15 16:26:10 +01:00
Cédric Krier bcd28ca071 Remove safe_eval
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.

issue4416
review6971002
2015-03-09 19:40:41 +01:00
Cédric Krier 32001bc6d6 search_global yields record instead of id
It is better for customization to yield record instead of id to prevent to
instantiate a second times the record.

issue4519
review6871002
2015-02-04 13:37:02 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Robin Baumgartner 8b3557921e Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 13:57:12 +01:00
Cédric Krier a2c8111f26 Use context to check model and field access
* Model and Field access checked only if _check_access is set
* Add check_access to RPC
* Add check_access to Wizard and Report

issue4081
review8481002
2014-09-17 21:43:53 +02:00
Cédric Krier 6c793d540b Fix changeset d3caeb4c20d1 to use the new JSONDecoder instead of object_hook 2014-06-14 08:48:55 +02:00
Cédric Krier b955ab3070 Allow to sync XML data
- Adds menu entry for ir.model.data
- Remove write access on ir.model.data to administrator group
- Add sync button on ir.model.data
- Change storage format of values to be comparable

issue3918
review8351002
2014-06-13 19:14:48 +02:00
Cédric Krier 147d6c0ad8 Improve cache management on access right
issue3848
review5111002
2014-05-04 00:11:17 +02:00
Cédric Krier 335b0b6851 Add history revisions
issue3678
review3551002
2014-03-18 19:54:32 +01:00
Cédric Krier f72b983c0f Check relation access in fields_get and for default fields in read
issue3750
review4261002
2014-03-15 11:01:14 +01:00
Cédric Krier f52fe8e45f Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:44:01 +01:00
Cédric Krier a3fc52eacc Fix wrong update query syntax 2013-09-18 00:10:12 +02:00
Cédric Krier fc6c6cfdda Migration to python-sql
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method

review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier 59cee94c69 Skip model and field access for root
review1049002
2013-09-02 11:31:56 +02:00
Cédric Krier e14c671c4d Order ir.model by model instead of translatable name
ir.model as a core model is often as many2one but ordering by the translatable
name is quite slower because of the join with the translation table so better
to prevent the join by using the model field.

review954002
2013-06-26 22:45:36 +02:00
Cédric Krier 451e79d59f Fix typo in Model.check_module 2013-03-26 12:19:35 +01:00
Cédric Krier a95ae0dad9 Remove _inherits
review670002
2013-03-20 22:49:16 +01:00
Albert Cervera i Areny 25463800c9 Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:53:19 +01:00
Cédric Krier a3857167fd Don't use Model from res module in ir module
As ir module doesn't depend on res module, it should not use the Model of it.
2013-03-06 13:32:16 +01:00
Cédric Krier 7bea08c745 Fix coding for StringMatcher in global_search
StringMatcher requires to have the same type of strings

issue3029
review696002
2013-03-05 10:28:11 +01:00
Albert Cervera i Areny d3466b21c9 Remove _id suffixes from ir.model.field-res.group
review700002
2013-03-05 00:08:40 +01:00
Cédric Krier 5e01f5c068 Fix flake8 2013-02-27 22:50:31 +01:00
Cédric Krier fd01a724f8 Add Dict fields
review501007
2013-01-26 15:18:41 +01:00
Cédric Krier 515051ac21 Remove unique constraint on model and field access
Removing this constraint makes Tryton more modular.
As sometimes access must be added by module for technical reason, we should not
worry about duplication of such access entry.

review614003
2013-01-13 22:43:59 +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 a73a873c7f Allow to customize global search menu and fix menu search
issue2934
2012-12-17 13:38:56 +01:00
Cédric Krier c1fd506f77 Add global search
review582002
2012-12-05 13:25:18 +01:00
Cédric Krier cf0636e095 Add ModelFieldAccess.get_access
review598002
2012-11-28 22:42:51 +01:00
Nicolas Évrard 9c0922ac73 Also use user as the key for the Model access cache 2012-10-17 15:07:51 +02:00
Cédric Krier aa0c950587 Always quote every node name
As it is the quoted name that is used in get_node, we can not rely on the
automatic quoting of pydot.
2012-10-10 10:36:46 +02:00
Cédric Krier 096955b675 Instanciate directly with the id instead of using browse
Model.browse takes only list of ids now.

issue2820
2012-10-10 10:34:57 +02:00
Cédric Krier 0fe1b93864 Active Record 2012-09-24 22:16:53 +02:00
Cédric Krier 4509595762 Fix search button clause in ModelButton.get_groups
CVE-2012-2238
issue2757
review478002
2012-09-10 18:02:03 +02:00
Cédric Krier 9d0d689b67 Add create/delete field access
review398002
2012-06-28 14:46:47 +02:00
Cédric Krier b33288c141 Allow client to manage model access
review346001
2012-05-19 15:47:43 +02:00
Cédric Krier ee3be37a36 Fix pep8 and pyflakes 2012-04-01 23:08:15 +02:00
Cédric Krier be0e5c54a9 Simplify workflow engine
- Remove workflow module
- Add ir.model.button for access rights

review256001
2012-03-25 00:15:17 +01:00
Nicolas Évrard 584d516067 Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 17:52:36 +01:00
Mathias Behrle ab54a71984 Change select=1|2 to select=True
issue2305
review269003
2012-03-05 10:54:32 +01:00
Cédric Krier a94ceb4321 Add default database language code
The configuration option defines which translated value will be stored in the
main field.
The methods of ir.translation which were already publicly used are now public.
Setting the main translation mark translations of other languages fuzzy.

review198001
2012-01-27 21:11:06 +01:00
Cédric Krier 274ea7bee2 New wizard design
review167001
2012-01-02 17:48:17 +01:00
Cédric Krier 626627c00c merge 2011-12-27 15:03:54 +01:00