Commit Graph
99 Commits
Author SHA1 Message Date
Cédric Krier 6d4b00403f Wizard must return a record when the active_id is zero
0 is a valid id for a record.

issue9885
review318921006
2020-12-04 18:40:26 +01:00
Sebastien Marie 036af9f47b Do not add id_ to checked wizard ids if not set
issue9491
review321961002
2020-08-18 09:47:23 +02:00
Cédric Krier 060a9da6bf Add model, record and records attribute on Wizard
issue9421
review309861012
2020-07-07 23:56:10 +02:00
Sergi Almacellas Abellana 9db7d27f17 Check model read access only on wizard with table_query models
issue9251
review297631002
2020-04-25 08:50:14 +02:00
Cédric Krier 828d444545 Skip check access on ir.ui.menu for wizard
User launching a wizard from menu should not need write access on the menu.

issue9173
review301161002
2020-03-26 00:12:43 +01:00
Cédric Krier 2c3ab3a3bd Enable check_access context when checking wizard access
issue9108
review261041002
2020-03-09 18:24:23 +01:00
Cédric Krier 0811414d49 Update button_action with returned values
issue8766
review268241002
2019-12-07 16:03:36 +01:00
Nicolas Évrard b8c582c002 Add validate information on wizard Button
issue8571
review260041002
2019-11-21 15:39:56 +01:00
Cédric Krier 4154b93a01 Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta

issue8567
review254091002
2019-09-07 23:45:08 +02:00
Cédric Krier 1738a4ec35 Add ir.message and use custom exceptions
issue3672
review35291002
2018-12-29 14:19:08 +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 e7ff9ee619 Use compact separators to dump json
issue6373
review33991002
2017-03-23 22:51:36 +01:00
Cédric Krier f9c0457416 Remove support for simplejson
On Python 3, simplejson has a different behaviour than the stdlib json,
especially for dumping bytes.

issue6010
review33601002
2016-11-05 19:54:12 +01:00
Cédric Krier 892e79da1e Do not check write access on model for wizard with groups
issue5884
review33371002
2016-09-27 12:06:11 +02:00
Sergi Almacellas Abellana 6477227a82 Skip already loaded rec_name in Wizard.get_default
Introduced on changeset e11df51790ba
issue5665
review32301002
2016-07-15 14:50:14 +02:00
Sergi Almacellas Abellana 4b2b8671b6 Add Many2One rec_name's in Wizard.get_default
issue5665
review25451002
2016-07-06 11:47:49 +02:00
Cédric Krier 29129855ec Add support for Python 3
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier a6c0702bd1 Add StateReport to Wizard
issue4896
review19361002
2015-08-14 17:58:47 +02:00
Cédric Krier 9f3b1271d3 Add wizard and state_name to StateView.get_view
This gives the same signature as for get_buttons and get_defaults. And so it
allows to customize the returned view base on the wizard state.

issue4406
review5861002
2014-12-16 22:17:34 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier 20fed6f5a2 Allow to define StateView without view id
issue4291
review8661003
2014-11-10 23:28:58 +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
Nicolas Évrard d83fc99f35 Allow to register different type for json/xmlrpc encoding/decoding
issue3839
review5021003
2014-06-06 12:57:27 +02: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 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