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
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
Cédric Krier
fe974fed5f
Remove language from set_trytond
...
This parameter is no more used.
issue4403
review11701002
2014-12-16 22:11:48 +01:00
Cédric Krier
5ecf5185f7
DictDescriptor must return a copy of the dictionary
...
Dictionary are mutable so to prevent modification of the internal value of the
Dict field, a copy of the value must be returned.
issue4389
review5841002
2014-12-11 22:28:12 +01:00
Cédric Krier
2f7a8633e1
Fix flake8 errors
...
review8801002
2014-12-03 16:05:10 +01:00
Jean CAVALLO
68f4d19ed3
Fix condition in _on_change_set method
...
If _on_change_set is called with a None value for a XXX2Many field, the test
designed to check for creations / updates raises an Exception because of
missing parenthesis.
issue4284
review10591002
2014-10-23 18:10:55 +02:00
Cédric Krier
d71d529a96
Remove password on set_trytond
...
issue4264
review9781002
2014-10-23 21:06:28 +02:00
Cédric Krier
fa4708c3e9
Manage some methods as class and instance method
...
issue4242
review9771002
2014-10-23 20:19:55 +02:00
Cédric Krier
8379c01819
Increase version number
2014-10-20 15:25:47 +02:00
Cédric Krier
635fff6f72
Prepare release 3.4.0
2014-10-20 15:25:23 +02:00
Cédric Krier
267016e2ed
Use TRYTOND_CONFIG environ as default config_file
...
To follow the same behavior as trytond.
issue4233
review11541002
2014-10-10 09:57:56 +02:00
Cédric Krier
ff29a83517
Use ProteusTestCase for the new TestReport
2014-09-04 22:41:36 +02:00
Cédric Krier
e69dfa3a4a
Follow the tryond configuration refactoring
...
issue3627
review11381002
2014-09-03 23:32:22 +02:00
Cédric Krier
3844823465
Add Report
...
issue4038
review9471002
2014-07-16 17:43:46 +02:00
Cédric Krier
870b98e654
Allow to register different type for xmlrpc decoding
...
issue3839
review14301002
2014-06-22 17:20:11 +02:00
Cédric Krier
df5dc2f6c7
Allow to support unknown field type
...
issue3996
review11311002
2014-06-22 17:19:13 +02:00
Cédric Krier
05761deb60
Call on_change's after setting default values
...
issue3923
review8361002
2014-06-08 00:36:45 +02:00
Cédric Krier
e4f002f191
Skip relation field for on_change value of One2Many
...
This prevents infinite recursion when the parent has many one2many fields.
issue3907
review14281002
2014-05-17 18:39:23 +02:00
Cédric Krier
7fb8ea252e
Be lazy when setting on_change value
...
issue3903
review9341004
2014-05-10 20:32:31 +02:00
Cédric Krier
fabd2cf425
Use a tuple model, dictionary for Reference field
...
issue3902
review9341002
2014-05-10 20:30:31 +02:00
Cédric Krier
7e70331856
_parent_name and _parent_field_name must always be strings
2014-05-09 14:44:34 +02:00
Cédric Krier
34f4501d18
Fix wrong parent field name in EvalEnvionment
2014-05-09 14:42:31 +02:00
Cédric Krier
523da5e175
Don't set parent_name in One2Many values
...
issue3900
review9311003
2014-05-09 14:35:59 +02:00
Cédric Krier
0b613a6d3b
Use parent_field_name instead of relation_field to skip on_change values
...
relation_field is not reliable see issue3899
issue3819
review10291002
2014-05-09 14:29:29 +02:00
Cédric Krier
a88a2c4a17
Explicitly set value of parent field
...
issue3819
review5071002
2014-05-06 22:56:35 +02:00
Cédric Krier
d6eb27fc93
Replace False by None in test
2014-05-04 11:43:02 +02:00
Cédric Krier
99a874a0c2
Remove bad usage of False
...
issue3841
review5051004
2014-05-04 00:09:03 +02:00
Cédric Krier
3eb1a6263d
Add duplicate method
...
issue3831
review4961002
2014-05-04 00:05:51 +02:00
Cédric Krier
dd1f28a2db
Increase version number
2014-04-21 20:31:27 +02:00
Cédric Krier
05b9c1480b
Prepare release 3.2.0
2014-04-21 20:31:08 +02:00
Cédric Krier
e9552e577e
Add fake user to XML-RPC config
...
issue3840
review5051003
2014-04-12 23:44:14 +02:00
Cédric Krier
6b84d7e4e7
Force reload in click method
...
click can not rely on save to always reload the record.
issue3832
2014-04-11 17:42:40 +02:00
Cédric Krier
5569703bff
Fix on_change_set test to use index for add operation
2014-03-17 16:26:56 +01:00
Nicolas Évrard
7ef68453b3
Add index to one2many's on_change add
...
review2071002
issue3539
2014-03-16 21:05:58 +01:00
Cédric Krier
8bd679aa7d
Returns only read values for on_change
...
issue3749
review4251002
2014-03-16 15:48:28 +01:00
Cédric Krier
1f8e0fbb1f
Model cache should depend on user
...
issue3748
review4251002
2014-03-15 10:58:25 +01:00
Cédric Krier
d91b37bf52
Manage microseconds in XML-RPC
...
review4021002
2014-03-15 10:41:31 +01:00
Cédric Krier
401400ac52
Remove sha field
...
issue3713
review3841002
2014-03-07 19:39:12 +01:00
Sergi Almacellas Abellana
31f224339c
Allow to pass the action which calls a wizard
...
issue3675
review3921002
2014-02-28 20:31:46 +01:00
Cédric Krier
6be6fe8f2a
Don't set default value for on_change and set id
...
issue3487
review2501003
2014-01-26 14:31:12 +01:00
Cédric Krier
1367be7e9b
Force value of parent Many2One, Reference fields
...
review2601002
2014-01-12 19:51:20 +01:00
Cédric Krier
7f6f5ce4b3
Rename unlink for remove
...
issue3457
review2281002
2013-12-20 12:36:00 +01:00
Cédric Krier
986988cb93
Fix wrong write call in One2Many field
2013-12-20 01:28:43 +01:00
Cédric Krier
0a73bb470e
Use a sequence of records, values in write
...
issue3499
review1911002
2013-12-19 14:46:58 +01:00