Commit Graph
307 Commits
Author SHA1 Message Date
Cédric Krier 3872f858bf Add transactional queue and workers
issue7406
review45461002
2018-07-27 09:32:28 +02:00
Cédric Krier 20670bdc7d Implicit conversion to boolean in PYSON statement
issue7528
2018-07-10 16:56:34 +02:00
Cédric Krier fed6345ffc Remove cdecimal dependency
It is no more needed as it is standard under Python3
2018-06-27 11:54:35 +02:00
Cédric Krier c3ca6e4afd Do not compare sequence value against index if it is None
issue7539
review46571002
2018-06-27 11:52:30 +02:00
Cédric Krier 669f7e3d92 Migrate docstring to Python 3
issue7497
2018-06-26 19:48:20 +02:00
Cédric Krier eba847d0ac Remove support for Python 2.7
issue7497
review42231002
2018-06-26 19:13:12 +02:00
Sergi Almacellas Abellana bfacf1c640 Include not modified values when sending wizard form data
issue7527
review60261002
2018-06-21 16:10:02 +02:00
Cédric Krier 891527bc47 Increase version number 2018-04-23 17:14:40 +02:00
Cédric Krier f9290cd6bd Prepare release 4.8.0 2018-04-23 17:14:29 +02:00
Cédric Krier cb32b001c3 Use the context for the ModelList when instantiate record to be appended
Since changeset 9ed64cecb732, we ensure that the context of the instance is
the same as the context of the ModelList.

issue7384
review50301002
2018-04-23 14:00:39 +02:00
Cédric Krier 8c3d73de2b Support Decimal in PYSONEncoder
issue7291
review44971002
2018-04-17 17:59:53 +02:00
Cédric Krier c38afbc1ea Disable active test when searching user
issue7329
review37231002
2018-04-09 10:48:21 +02:00
Cédric Krier 1d23e73e59 Always use the context and config of the instance
issue7144
review38101002
2018-03-30 18:10:25 +02:00
Nicolas Évrard 1a01c967c3 Add support for search_* attributes on ModelList
issue6081
review25981002
2018-03-21 18:03:14 +01:00
Cédric Krier 8f6f421e52 Use method name instead of instance when calling is_instance_method
issue7053
2018-01-16 01:10:21 +01:00
Cédric Krier 878283f5e6 Use is_instance_method tool compatible with Python3
issue7053
review37921002
2018-01-15 23:04:10 +01:00
Cédric Krier 58d9db7fe4 Fix style of import order 2018-01-12 13:54:35 +01:00
Cédric Krier ecb2d2b8e3 Increase version number 2017-10-30 14:47:33 +01:00
Cédric Krier 0458fd9d54 Prepare release 4.6.0 2017-10-30 14:47:14 +01:00
Maxime Richez 928c7d2efe Add method set_sequence on ModelList
This method register the current order into sequence field.

issue6133
review43501002
2017-10-02 16:18:15 +02:00
Cédric Krier 789b8483b7 Update removed/updated sets when adding record to ModelList
issue6784
review38771002
2017-10-02 16:10:08 +02:00
Cédric Krier d0174021f7 Move import on top of the file 2017-09-30 00:22:52 +02:00
Cédric Krier b0ae6355ee Add __int__ to Model
issue6661
review35191002
2017-08-02 19:33:13 +02:00
Cédric Krier d3475c0190 Allow to use keyword arguments with trytond configuration
issue6647
review41451002
2017-07-20 19:34:34 +02:00
Cédric Krier e8ebc0d686 Increase version number 2017-05-01 19:24:16 +02:00
Cédric Krier 422eace638 Prepare release 4.4.0 2017-05-01 19:23:07 +02:00
Cédric Krier 70ad14017d Remove explicit Cache management
The Cache is now managed by the Transaction.

issue6216
review33031002
2017-02-02 12:05:10 +01:00
Cédric Krier 322dda7223 Increase version number 2016-11-28 16:01:54 +01:00
Cédric Krier 1c387cda13 Prepare release 4.2.0 2016-11-28 16:00:47 +01:00
Cédric Krier f20aebef57 Remove support for simplejson
On Python 3, simplejson has a different behaviour than the stdlib json,
especially for dumping bytes.

issue6010
review28991002
2016-11-05 19:56:13 +01:00
Cédric Krier 8fc47f5de0 Rename en_US into en in tests
issue5443
2016-10-20 11:40:26 +02:00
DanielH c9e5f3d41c Do not call _stringify
xmlrpc.client._stringify is only available on Python2 and it is a private
method. trytond already does not call it.

issue5942
review29621002
2016-10-15 20:57:25 +02:00
Cédric Krier 32dc1b7bad Allow to instantiate Model with xxx2many as list of dictionary
The method _on_change_set could try to instantiate such record.

issue5367
review29401003
2016-08-04 23:49:27 +02:00
Cédric Krier ddb36d6f05 Fill default Report data
issue5730
review29411002
2016-07-29 10:40:39 +02:00
Cédric Krier 6e4443245e Call on_change also when value is a list of ids
issue5727
review30341003
2016-07-23 21:25:35 +02:00
Cédric Krier a686741e67 Allow None in Greater/Less PYSON
issue5711
review32311002
2016-07-19 07:45:18 +07:00
Cédric Krier 300abc0a38 Add reversed operators to PYSON expressions
issue4856
2016-07-19 07:44:59 +07:00
Cédric Krier 7b86173a99 Increase version number 2016-05-02 15:37:39 +02:00
Cédric Krier a14b5a39fe Prepare release 4.0.0 2016-05-02 15:36:44 +02:00
Nicolas Évrard a0f4d5df62 Correctly get action_id when instanciating a Wizard
In case a Wizard is instanciated with an action (eg. when being called from a
StateAction from another wizard) the data structure received is a dictionary
and not an instance of Action.

issue5465
review25031002
2016-04-12 08:23:13 +02:00
Nicolas Évrard 758adbe6be Run actions in wizard even if a view is specified
issue5468
review17221002
2016-04-09 14:20:23 +02:00
Nicolas Évrard 938b5d82a4 Follow PEP-0249 for Transaction
issue4949
review23751002
2016-03-03 22:06:27 +01:00
Cédric Krier 75fe2908f9 Add missing __ne__
changeset 153863383394 replaced __cmp__ by __eq__ and __hash__ but it should
also add __ne__.

issue5347
review23851002
2016-02-24 21:18:38 +01:00
Cédric Krier f08250089c Add Python3 support
issue3211
review24761002
2016-02-19 23:16:43 +01:00
Cédric Krier 96e72e29c5 Don't dump bytes as base64 in xmlrpc if bytes is str
issue5113
review18781002
2015-11-15 11:17:38 -03:00
Cédric Krier 9bae83ed95 Increase version number 2015-11-02 15:49:14 +01:00
Cédric Krier 0e054b2395 Prepare release 3.8.0 2015-11-02 15:48:24 +01:00
Jean Cavallo 732c0d5090 Properly handle recursive One2Many values in on_change
_on_change_set assumes that One2Many fields add or create
operations will have a list of ids as parameters, when they
can be dictionaries.

issue4985
review18611002
2015-10-13 22:39:45 +02:00
Cédric Krier c023c3870a Use group to test delete instead of user
Since changeset 5b4de22d72ea of trytond, user can no more be deleted.
2015-10-10 18:12:16 +02:00
Nicolas Évrard feca6e696a Add StateAction support to Wizard
review22271002
issue4825
2015-07-09 12:32:32 +02:00