Nicolas Évrard
ba9cbab0de
Allow to add tests in trytond through entry_points
...
issue6423
review35371002
2017-10-02 11:38:02 +02:00
Sergi Almacellas Abellana
74ef322993
Sync toolbar default value on rnc and rng files
...
issue6783
review44331002
2017-09-30 18:55:48 +02:00
Cédric Krier
83656053c8
Order operation on relational field to avoid constraints
...
The order on which the operations are applied can trigger constraints.
So it is safer to first delete then write and finally create.
issue6790
review43511002
2017-09-28 23:44:48 +02:00
Nicolas Évrard
a6688da3d3
Add missing fields import removed by merge of changeset 6089dcb6076a
2017-09-28 19:27:02 +02:00
Nicolas Évrard
13944b6b84
Remove useless computation of module on the translations creation
...
The .create() call for the ir.translation object guess the module of the
translations created when the module passed is not a value evaluating to True.
This could cause the unique constraint to fail when synchronizing translations
after a report has been overriden in the interface.
issue6732
review36581002
2017-09-28 18:42:29 +02:00
Nicolas Évrard
40d37f57bf
Add test for ModelSingleton inheritance order
...
issue6629
review43261002
2017-09-28 18:40:39 +02:00
Cédric Krier
c83e9b51e3
Allow to use report name or instance in get_email
...
issue6774
review38731002
2017-09-27 18:50:07 +02:00
Cédric Krier
1506fb82a8
Fix searcher methods for dot notation
...
issue6757
review40651002
2017-09-27 18:37:05 +02:00
Cédric Krier
375629dfd3
Support unicode in message and description of TrytonException
...
The easiest way to support both Python 2 and 3 is to implement __unicode__ and
encode the result for __str__.
issue6768
review39681002
2017-09-26 01:33:02 +02:00
Cédric Krier
9eafd65d2e
Add translated descriptor for Reference field
...
issue5667
review39671002
2017-09-26 01:25:26 +02:00
Sergi Almacellas Abellana
730ecb68b2
Implement alter_type and alter_size for sqlite backend
...
issue6730
review38591002
2017-09-20 11:29:12 +02:00
Cédric Krier
52ddc85f1a
Use entry point name instead of last module name
...
issue6761
review37681002
2017-09-19 23:21:55 +02:00
Cédric Krier
e159639af4
Extract strings from Flat OpenDocument content
...
issue6545
review43451002
2017-09-07 18:48:39 +02:00
Cédric Krier
db0b15e4e9
Add support for int and str on TranslateModel
...
In Python3, those methods are not resolved using __getattr__ machinery.
2017-09-03 11:53:19 +02:00
Cédric Krier
5a1bc137a3
Add a maximum size for request
...
issue6619
review38441002
2017-09-03 11:32:17 +02:00
Cédric Krier
f110fccf44
Add support for single record report
...
A single report render each record separately and return them in a zip file.
To ensure the uniqueness of the file in the zip, it uses the id of the record
but also the record name to be user-friendly.
issue6640
review37581002
2017-09-03 11:14:10 +02:00
Cédric Krier
9ad70213a3
Add get_email in trytond.report
...
issue6671
review36511002
2017-08-28 23:15:14 +02:00
Sergi Almacellas Abellana
f29f3c0085
Replace plain extension by txt
...
issue6676
review41501002
2017-08-24 15:42:05 +02:00
Cédric Krier
23828b8222
Ensure any connection is left open when dumping as template
...
issue6699
2017-08-17 19:08:51 +02:00
Cédric Krier
07d293caf8
Add support test database cache for remote postgresql
...
If pg_dump/pg_restore are not available, we create a copy of the database on
PostgreSQL server using the template option of "CREATE DATABASE". We still
create a file in the cache folder to know that there is a backup.
issue6699
2017-08-15 00:21:45 +02:00
Cédric Krier
eef26ece5d
Use char widget on translation list
...
This improve the performance on tryton as it can then use fixed column.
issue6697
review39591002
2017-08-11 22:56:28 +02:00
Cédric Krier
34cb03bd1e
Increase session randomness to 32 bytes
...
issue6682
review35521002
2017-08-02 23:11:34 +02:00
Cédric Krier
441677cf3c
Add set_user tools for test scenario
...
When changing the user of proteus, the context should be reloaded.
issue6652
review42551002
2017-08-02 19:37:32 +02:00
Nicolas Évrard
d634220a9f
Allow to specify datetime related values in XML files
...
issue6660
review35181002
2017-07-27 09:40:14 +02:00
Nicolas Évrard
6a762d9213
Remove obj from allowed expressions in XML's eval
...
issue6660
review35181002
2017-07-27 09:39:09 +02:00
Cédric Krier
6d783acf42
Make save parameter of set_multivalue public
...
It can be useful for performance when setting values for MultiValue field on a
large set of records.
issue6625
review39491002
2017-07-27 00:05:04 +02:00
Cédric Krier
965f8b0cdb
Add test to ensure rec_name is a char, text type
...
Model.default_get with 'default_rec_name' context relies on the fact that
rec_name is a string base field.
issue6630
review36501002
2017-07-26 23:44:00 +02:00
Cédric Krier
6b3551c834
Ensure rec_name is a char, text type
...
Model.default_get with 'default_rec_name' context relies on the fact that
rec_name is a string base field.
issue6630
review36501002
2017-07-26 23:43:00 +02:00
Sergi Almacellas Abellana
6f8582d168
Pass pattern argument on multivalue default field test
...
This allows to catch all the multivalue default methods which miss the
pattern argument.
issue6658
review40541002
2017-07-25 09:45:12 +02:00
Sergi Almacellas Abellana
7de2022a2d
Remove line breaks from password file
...
issue6657
review41461002
2017-07-25 09:35:50 +02:00
Cédric Krier
79fb0bcb7d
Use next to get first record instead of index
...
This allows to use set with ModelStorage.save.
issue6633
review40521002
2017-07-19 19:57:30 +02:00
Sergi Almacellas Abellana
6e92c8e3ba
Add environment variables to wsgi script
...
issue6344
review32131002
2017-07-19 10:10:04 +02:00
Cédric Krier
fe674cef55
Enforce unique list of records on method calls
...
An option is added on RPC definition to enforce uniqueness of records
instantiated. The key methods ModeView.button and Workflow.transition have an
assert to detect error in development code.
issue6184
review36411002
2017-07-16 23:49:15 +02:00
brunnenschacht
cb2d234230
Ensure the proper encoding for the authentication header response
...
issue6628
review36441002
2017-07-13 09:19:08 +02:00
Cédric Krier
fce24f3e4e
Add test for function field methods
...
It tests if getter, setter and searcher really exists on the model.
issue6616
review34241002
2017-07-12 19:58:13 +02:00
Cédric Krier
4130a14d48
Use _changed_values for added record on One2Many
...
This allows to have the 'rec_name' set for xxx2One and Reference field but we
need to ensure that even the initial values are returned because the instance
does not come from the client.
issue6579
review40471002
2017-07-10 23:59:26 +02:00
Sergi Almacellas Abellana
010043fbe0
Ensure egg modules path is absolute
...
Paths defined on sys.path may contain a relative path, so it must
be converted to absoulte path otherwise the starting comparison will
fail
issue6607
review39471002
2017-07-03 18:13:27 +02:00
Sergi Almacellas Abellana
e3455875fb
Add option to install module dependencies with trytond-admin
...
issue5696
review29361002
2017-06-30 09:50:49 +02:00
Sergi Almacellas Abellana
1aae453480
Don't use an sql query to delete target models if not ModelSQL
...
issue6525
review35431002
2017-06-30 09:46:21 +02:00
Cédric Krier
a53883484e
Update MPTT before the validation of created records
...
This prevent to fill the cache of the instances created with wrong values for
left/right fields. And it ensure that the validation code has valid MPTT
values.
issue6591
review34211002
2017-06-29 23:08:36 +02:00
Cédric Krier
96e8ceb7c7
Skip test_get_smtp_server_extra_parameters on python version < 2.7.4
...
Older Python version does not parse query for smtp scheme.
https://bugs.python.org/issue9374
2017-06-18 20:24:56 +02:00
Kurt Miebach
5af7ff1117
Improve password dialog and error messages
...
- Ask password of user "admin" instead of 'Admin'
- Use double quotes for user name and db name
- Terminate error messages with fullstop instead of exclamation mark.
issue6566
review35061002
2017-06-18 15:24:41 +02:00
Cédric Krier
1c92359998
Decode username only if it is bytes
...
The decoding is only needed on Python2 because bytes_to_wsgi returns always a
str but str on Python2 is not unicode.
issue6578
review41381002
2017-06-18 15:24:05 +02:00
Sergi Almacellas Abellana
71b8d38cef
Add ondelete cascade on export lines
...
Also make the export field required
issue6551
review34171002
2017-06-16 09:51:48 +02:00
Sergi Almacellas Abellana
5dfd3b0791
Add localhost_name and timeout as get_smtp_server uri parameters
...
This allows a better customization of the smtp connection
issue6540
review39411002
2017-06-16 09:47:39 +02:00
Kurt Miebach
b01181b76d
Convert max_attempt value from config file to integer
...
issue6565
review40451002
2017-06-15 22:41:49 +02:00
Sergi Almacellas Abellana
ae5fcfe03b
Delete missing modules not activated when updating module list
...
issue6472
review42271002
2017-06-13 09:55:44 +02:00
Nicolas Évrard
bd965457e7
Use correct way to specify inline view in test
2017-06-09 16:51:05 +02:00
Nicolas Évrard
ddf4e0fe3c
Remove empty pages from notebook
...
issue3295
review40421002
2017-06-09 16:07:03 +02:00
Sergi Almacellas Abellana
b637c503e7
Only convert dict fields when they are strings
...
issue6382
review28101002
2017-06-09 13:22:42 +02:00