Commit Graph
316 Commits
Author SHA1 Message Date
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 b8caaf22cc Added tag 4.0.0 for changeset 403f21dd1bb7 2016-05-02 15:36:47 +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 96865bc6a4 Added tag 3.8.0 for changeset 1e741a18e2a1 2015-11-02 15:48:33 +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
Cédric Krier 30d8e79aaf Fix COPYRIGHT statement and include copy of GPLv3
issue5014
review16651002
2015-10-10 17:45:21 +02:00
Nicolas Évrard feca6e696a Add StateAction support to Wizard
review22271002
issue4825
2015-07-09 12:32:32 +02:00
Cédric Krier 5c39097341 Tests require party module to test README 2015-06-01 23:53:18 +02:00
Cédric Krier 3c567795cc Fix unittest when runs from setuptools 2015-06-01 23:48:09 +02:00
Cédric Krier 811fa68d1e Add test for README and docstring
issue4779
review7181002
2015-06-01 22:52:59 +02:00
Cédric Krier ecc0dd5fbe Return correct exit code when running tests 2015-06-01 22:52:30 +02:00
Cédric Krier 2e05ff62c5 Rename ir.module.module* into ir.module*
issue4764
2015-05-28 23:47:12 +02:00
Cédric Krier f431f81252 Increase version number 2015-04-20 15:11:21 +02:00
Cédric Krier e785bde713 Added tag 3.6.0 for changeset 2a2503ebd258 2015-04-20 15:11:03 +02:00
Cédric Krier d8e62f1819 Prepare release 3.6.0 2015-04-20 15:11:02 +02:00
Cédric Krier 01067e9a59 Manage bytes and bytearray for Binary field
issue4637
review15291002
2015-03-16 19:29:15 +01:00
Cédric Krier 56c5e14a55 Manage instance button
issue4397
review7001002
2015-03-16 12:57:54 +01:00
Cédric Krier f164ae4a60 Add XML-RPC support for timedelta
issue4026
review15091002
2015-03-15 16:22:19 +01:00
Cédric Krier 01ba344609 Missing migration to list of names used in grouped on_change
The loop on fields still use the old name parameter instead of the list of
names. The issue is hidden by the loop before which uses also a variable named
name. So the tests are changed to use set operators.

issue4550
review7031002
2015-03-15 16:14:20 +01:00
Cédric Krier 37137e08ea Fix removing record from xxx2many
- Don't register as deleted unsaved record
- Register as deleted record removed via on_change

issue4628
review9091002
2015-03-15 16:13:12 +01:00
Cédric Krier 61d4e06b8b Add support for PyPy
issue4408
review11081002
2015-03-15 15:53:37 +01:00
Cédric Krier b59c9ba80c Add noeval to PYSONDecoder
issue1616
2015-03-10 23:51:02 +01:00
Cédric Krier d5e4a193d6 Add __repr__ to PYSON
issue4607
2015-03-10 23:44:12 +01:00
Guillem Barba b865d48947 Allow to provide ssl_context to set_xmlrpc()
issue4592
review6951002
2015-03-07 09:32:23 +01:00
Cédric Krier 1731525415 Use the grouped on_change method
instead of calling on_change_* for each field

issue4550
review10901002
2015-02-14 18:31:57 +01:00
Cédric Krier 8026958cf1 Improve type checking in PYSON
- convert long type to int
- convert str and unicode to basestring
- use isinstance when possible

issue4405
2015-02-14 18:05:50 +01:00
Cédric Krier f6c3573e0c Add Len to PYSON
issue3692
2015-02-14 18:04:50 +01:00
Cédric Krier 342654663e Don't store TRYTOND_CONFIG in default method argument
The current design prevents to import proteus
before setting correctly the environ.

review13911002
2015-02-10 00:10:35 +01:00
Cédric Krier f353094a12 Add support for fields.TimeDelta
issue4026
review14821002
2015-02-09 23:00:07 +01:00
Cédric Krier 18cac63d24 Skip test_model_graph if pydot is not installed
As pydot doesn't always install correctly, we don't want the test to fail
because of it.
2015-01-18 22:58:52 +01:00
Cédric Krier 73fe5bd102 Install pydot from drone
The report test requires pydot.
2015-01-18 22:36:52 +01:00
Cédric Krier 282456c77c Add tox and drone
issue4431
review9981002
2015-01-18 22:25:43 +01:00
Cédric Krier 249947c848 Reload models at the end of wizard
issue4418
review6751002
2014-12-20 19:20:07 +01:00
Cédric Krier 8fbd80ac08 Add unittest for repr of TrytondConfig
issue4395
review14761002
2014-12-16 22:15:45 +01:00
Cédric Krier 9a6fa73bfe Fix __repr__ of config
- Wrong argument number for TrytondConfig
- Use repr for argument

issue4395
review14761002
2014-12-16 22:15:10 +01:00