Commit Graph
76 Commits
Author SHA1 Message Date
Cédric Krier dce4d3f732 Client side actions on button and wizard
issue3343
review3231002
2014-02-15 18:34:22 +01: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 1f04ffffeb Fix missing rename of parameter from changeset 9e44b35013cd 2013-08-22 08:06:39 +02:00
Cédric Krier c194f230eb Fix documentation about session in Wizard 2013-08-21 22:28:48 +02:00
Cédric Krier 8710f2fd99 Fix Pool.setup to re-allow extra_depends behavior
review898002
2013-05-27 18:47:00 +02: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 caf073daaf Prevent Wizard State to start with '_'
review585006
2012-11-22 22:17:07 +01:00
Cédric Krier 0fe1b93864 Active Record 2012-09-24 22:16:53 +02:00
Cédric Krier eda0f93797 Wizard session record must not return BrowseRecordNull for list
When the target comes from a xxx2Many field, an empty list must not be
converted into a BrowseRecordNull.
2012-04-27 12:44:35 +02:00
Cédric Krier ee3be37a36 Fix pep8 and pyflakes 2012-04-01 23:08:15 +02: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
Cédric Krier d73fae86f5 Return BrowseRecordNull for relation field in wizard session
review250001
2012-02-24 11:06:40 +01:00
Cédric Krier 75931c4bf8 Set session state dirty if updated
When updating session with data from the client, the states must be mark as
dirty to be saved in the database at the end of the process.

issue2421
2012-02-07 17:35:21 +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 5ac6e6304a Convert tabs into spaces 2012-01-23 12:47:26 +01:00
Cédric Krier a2bc715560 Save session only if dirty
issue2388
review221006
2012-01-17 14:02:34 +01:00
Cédric Krier 274ea7bee2 New wizard design
review167001
2012-01-02 17:48:17 +01:00
Nicolas Évrard 6ba18631e8 Use relative imports 2011-12-14 17:00:13 +01:00
Cédric Krier c9ffdfffff Remove ir.action.wizard_size 2011-08-02 11:09:13 +02:00
Nicolas Évrard 3ad685e892 Add function to get object base URL 2011-07-20 19:04:52 +02:00
Nicolas Évrard 4293af5cef merge. 2011-07-20 18:38:11 +02:00
Nicolas Évrard 2f8c6a48d1 Use new fields_view_get signature
review44001
2011-07-20 18:34:11 +02:00
Cédric Krier 550aae8351 Change Pool into a Singleton
review42001
2011-07-03 13:20:58 +02:00
Cédric Krier 54e6a8c2fe Use md5 hash for indexing translation for issue1898 2011-04-09 12:36:01 +02:00
Nicolas Évrard 1766b36764 Add warning to wizards 2011-03-08 18:44:35 +01:00
Cédric Krier 086d1ade8a Use xmlrpclib MAXINT instead of sys.maxint to be platform independent for issue1736 2010-10-24 00:49:50 +02: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 39b90e741b Prevent KeyError when testing user of wizard 2010-04-07 08:14:05 +02:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +01:00
Cédric Krier b46c5fd424 Guidelines 2009-08-28 15:01:15 +02:00
Cédric Krier bd02e85cee Don't use hardcoded true/false in SQL queries to be more database independant 2009-07-07 19:22:56 +02:00
Cédric Krier af5349a301 Add ir.action.wizard_size to store prefered wizard size 2009-06-19 13:57:50 +02:00
Cédric Krier b0f7aae1fd Fix when deleting wizard datas if it doesn't exist 2009-03-24 16:01:31 +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 a4b9258b71 Rename _rpc_allowed into _rpc and add commit behavior 2009-02-25 12:25:01 +01:00
Cédric Krier c16d5baca4 Clean up values from default_get for related fields 2009-02-17 12:08:58 +01:00
Cédric Krier fdabfb6f57 Use ModelView for WizardOSV 2009-02-12 19:09:22 +01:00
Cédric Krier b75d10cd20 Use a new pool for object
Move workflow method in ModelWorkflow
Move workflow service in workflow module
Remove Service and LocalService
Remove web_service and use a dispatcher in protocols
New netrpc/xmlrpc syntax to be easier to introspect
2009-02-11 14:52:22 +01:00
Cédric Krier f63aaa316d Remove sql_db and add database in backend 2009-02-04 15:29:28 +01:00
Cédric Krier 1196eaf293 Add modelstorage and modeldb 2009-02-02 13:08:25 +01:00
Cédric Krier 5218c3545f Add model 2009-01-29 19:22:03 +01:00
Cédric Krier 8f7b83e8e7 Test exception.args before using it for issue734 2009-01-07 12:41:11 +01:00
Cédric Krier a299370686 Add user warnings 2008-12-09 15:52:35 +01:00
Cédric Krier 0eb9fb4883 Log exception that are not 'UserError', 'ConcurrencyException' nor 'NotLogged' 2008-11-27 15:49:01 +01:00
Cédric Krier 7f8f0d569e Fix clean error message translation from wizard 2008-11-16 14:32:40 +01:00
Cédric Krier 0bfc4d75e8 Remove unused CLASS_POOL 2008-10-10 13:16:26 +02:00
Cédric Krier eb24a3eceb Call _field_create on WizardOSV for issue366 2008-09-17 11:57:47 +02:00
Bertrand Chenal cb4971ac6e Logging refectoring:
* simplified mechanism

* reverted color on error, warning and critical messages in
  console. (inspired by openerp rev. 1085)
2008-09-12 19:57:33 +02:00
Cédric Krier e13c63081d Fix typo in call _get_source for button wizard translation for issue346 2008-09-10 15:01:22 +02:00
Cédric Krier 0988ecda1d Fix sql_error on wizard and report 2008-09-04 17:22:53 +02:00