Commit Graph
5181 Commits
Author SHA1 Message Date
Oscar Alvarez 59b63407fd Fix translation es_CO for domain_validation_record 2014-04-06 17:50:52 -05:00
Cédric Krier 80fc6aff30 Use copy of handlers set to prevent changed size during iteration 2014-04-04 23:38:21 +02:00
Cédric Krier 68127768cf Remove old backward Python <= 2.6 compatibility code 2014-04-04 23:34:56 +02:00
Oscar Alvarez f87656e899 Translation es_CO updated 2014-04-03 17:05:49 -05:00
Cédric Krier 6ca677e877 Update translation source per module
issue3775
review4491002
2014-03-21 23:43:59 +01:00
Sergi Almacellas Abellana 5c85442e93 Add reload menu and reload context to client actions
issue3740
review4231002
2014-03-19 23:30:07 +01:00
Cédric Krier 9dbc025011 Add restore_history to ModelSQL
issue3456
review1441003
2014-03-18 20:07:03 +01:00
Cédric Krier 6d1be2574b Allow to customize field column and fix numeric search for SQLite
issue3733
issue3648
review4421002
2014-03-18 19:59:04 +01:00
Cédric Krier 335b0b6851 Add history revisions
issue3678
review3551002
2014-03-18 19:54:32 +01:00
Cédric Krier 7c151984e0 Let raise user error in import_data
issue3767
review4441002
2014-03-18 19:49:51 +01:00
Cédric Krier 5082be317a Fix wrong Concat in the translation join for ir.model 2014-03-18 16:24:23 +01:00
Nicolas Évrard ff4edfb401 Add multiselection widget to rn[cg]
review3851002
issue3634
2014-03-16 21:10:34 +01:00
Nicolas Évrard 498bc47097 Use create multi in import_data
review3011003
2014-03-16 20:45:12 +01:00
Cédric Krier 9d1dc45b6e Skip domain validation for Dict field 2014-03-16 15:30:13 +01:00
Cédric Krier 20028f86ec Fix wrong assumption to compute relations in domain validation 2014-03-16 15:28:53 +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 4306811fe6 Remove auto-refresh on Action Window
issue3752
review4221004
2014-03-15 10:50:42 +01:00
Cédric Krier a130816cbd Add support of domain for non-relation field
issue3743
review4181002
2014-03-15 10:44:45 +01:00
Cédric Krier 64421ff64f Manage microseconds in JSON-RPC and XML-RPC
review3551002
2014-03-15 10:36:20 +01:00
Cédric Krier 88a4bce42d Ensure to read the last history record
history records for the same id could have the exact same timestamp so to always
read the same record, the last one inserted is used by ordering on __id.

issue3741
review4161002
2014-03-10 20:26:56 +01:00
Cédric Krier 0c6ba3a325 Remove back Many2One reference in copy test Many2Many
This reference is useless and create a circular dependency.
2014-03-10 10:17:32 +01:00
Cédric Krier f9188bd280 Fix register order of Models for copy test Many2Many 2014-03-09 18:25:37 +01:00
Nicolas Évrard 677353efb5 Use the original context in AttributeManager
Because the record instances keep a reference to the context the set_context
method should use the original context unchanged in AttributeManager

review4051002
issue3732
2014-03-09 17:20:05 +01:00
Cédric Krier fd25cd6434 Add copy test for Many2Many
Thanks to Laurent Defert

issue3506
review3221002
2014-03-07 20:02:07 +01:00
Cédric Krier f0a4bbcff7 Remove Sha field and add password widget
issue3713
review3791003
2014-03-07 19:38:01 +01:00
Cédric Krier 76cd64e6f8 Add Len to PYSON
issue3692
review3661002
2014-02-27 12:36:53 +01:00
Cédric Krier 9d1a3be65c Fix translation creation
changeset 1a94e9f76bca broke the translation creation because it misses lang
and module value.

review3861002
2014-02-26 09:34:54 +01:00
Cédric Krier f077411117 Fix typo in Menu.get_rec_name introduced in changeset 127981430238 2014-02-25 23:56:34 +01:00
Cédric Krier 97ad256c00 Add unique filter on the cache ids in ModelStorage.__getattr__
_ids must be kept with duplicates because it is important to keep the right
order/proximity of records in the cache. But when reading the values, the ids
must be filtered to be unique to not read it twice.

issue3710
review3781003
2014-02-25 19:12:02 +01:00
Cédric Krier 2190ca9f45 Better cache usage in Menu.get_rec_name
By re-using the field function, it takes better advantage of the global cache.

issue3709
review3781002
2014-02-25 19:11:02 +01:00
Sergi Almacellas Abellana 38d225f7c6 Refactor translation import and update to improve custom types support.
review2431002
issue3566
2014-02-25 10:58:21 +01:00
Cédric Krier c6c0ca4da7 Use bcrypt to hash password if possible
If bcrypt is not available, it fallbacks to sha1 but it will use bcrypt to hash
new password if available.
The storage uses a simple hashing scheme which eases to add new hashing method
and doesn't rely anymore on the specific Sha field but on Function field.

Thanks to Vishesh Yadav

review1039002
2014-02-24 19:48:03 +01:00
Cédric Krier 66a5f7b6f4 When saving record don't store target link for one2many to create
When saving an instance if the relation field of a one2many item is set, it
should not try to save it as it will be replaced by the current record. And in
the worst case, the target set could not be valid and so it prevents to store
the instance which doesn't need of this target.

issue3501
review3601003
2014-02-24 19:20:47 +01:00
Cédric Krier 2680d1b746 Use a sequence of ids, values to set fields
review3331003
2014-02-24 19:15:57 +01:00
Cédric Krier 275e612288 Wrong usage of "or" instead of "|" in PYSON of Trigger.on_time 2014-02-19 17:53:35 +01:00
Cédric Krier dce4d3f732 Client side actions on button and wizard
issue3343
review3231002
2014-02-15 18:34:22 +01:00
Cédric Krier 19f3ab64cb Fix error message "foreign_model_exist"
The value argument has no meaning for this error message and the way it is
retreived in changeset dbbbe6cae2bb is buggy.

review3381002
2014-02-14 00:22:45 +01:00
Cédric Krier 1e9673ea47 Improve module buttons
- Enforce origin state of modules
- Speedup on_write computation
- Better usage of record cache

review3361002
2014-02-14 00:18:27 +01:00
Cédric Krier 729aaa8a00 Better guess "selection_change_with" attribute
Testing on the instance for Selection field is not enough because some field
selection could come from a Function field.
So it is better to use a duck typing style in this case.

issue3649
review3451002
2014-02-14 00:04:31 +01:00
Cédric Krier 6b3f7fb250 Add sign function to SQLite backend
review3411002
2014-02-14 00:00:09 +01:00
Cédric Krier d9e064dde6 Add memoize to import data search functions
As during the processing of imported data, there is no creation of new records,
the result of the search calls could be cached.

review2981002
2014-02-09 23:58:45 +01:00
Cédric Krier 487381d700 Search also on source for some translation types when overriding
issue3637
review3221004
2014-02-09 23:53:10 +01:00
Cédric Krier 8a95fa6d5b No good reason to make get_translation_join private
review3241003
2014-02-06 22:59:42 +01:00
Cédric Krier 9ac1778066 merge 2014-02-06 22:31:29 +01:00
Cédric Krier 5a73f91a6d Add depends attribute to data tag
This is the counterpart of the Pool register of extras_depend modules for the
XML record creation. It allow to create records if some other modules are
installed.

review3041002
2014-02-06 22:30:11 +01:00
Cédric Krier 29358683cd Add tree_invisible attribute to button in tree view
review3041003
2014-02-06 22:25:43 +01:00
Nicolas Évrard eac48b2a50 Access sql related errors only if Model is a subclass of ModelSQL
review3111002
issue3628
2014-02-03 17:51:25 +01:00
Nicolas Évrard 96d4de1709 _validate records in bunch of RECORD_CACHE_SIZE
This is required in order to prevent invalidating the LRU cache too often

review3061002
2014-02-03 16:30:18 +01:00
Cédric Krier 2ba9526d37 Prevent unecessary update of record when loading XML
review3061003
2014-01-31 22:26:55 +01:00
Cédric Krier 4b7328a75d Add Content Name to ActionReport
This will ease the edition of the report template from the client.

issue3608
review2851002
2014-01-31 22:19:55 +01:00