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
Jean Cavallo
c24bcbdab1
Only update translation cache when necessary
...
issue6403
review28191002
2017-06-03 11:34:12 +02:00
Sergi Almacellas Abellana
a483471bf9
Invalidate get_keyword cache when modifying action window domains
...
issue6536
review37441002
2017-06-01 16:50:51 +02:00
Sergi Almacellas Abellana
0f5cc535b7
Avoid reading undefined senderrs variable when sendmail fails
...
issue6535
review41341003
2017-06-01 16:40:29 +02:00
Oriol Alfonso
aff8847db4
Fix typo in user application documentation
...
issue6493
review40311002
2017-05-31 19:27:26 +02:00
Cédric Krier
d1a971fb61
Decode username before logging it
...
The username of request authorisation is bytes encoded in UTF-8.
The logging module tries to decode it as ASCII by default.
issue6517
review34991002
2017-05-30 22:07:46 +02:00
Cédric Krier
677f2c213c
Remove duplicate ids when searching parent menu
...
This prevents to generate a too big SQL query and also avoid to fail in the
SQLite bug: https://www.sqlite.org/src/tktview?name=61fe97454c
issue6514
review34131002
2017-05-30 22:03:32 +02:00
Sergi Almacellas Abellana
b37dd9706b
Import cron after application is configured
...
Otherwise logging messages are not correctly emited
issue6532
review41341002
2017-05-30 17:07:12 +02:00
Cédric Krier
9136ecf206
Encode data name if it is an unicode
...
In Python3 hashlib works only with bytes.
2017-05-12 12:42:35 +02:00
Cédric Krier
4520afedd3
Convert into hash too long data name
...
Some back-ends have constraint on the length of data name, they usually
silently truncate them, but this can create collision. The solution is to hash
the name when it is too long.
issue4620
issue6494
review37381003
2017-05-12 12:00:44 +02:00
Sergi Almacellas Abellana
b1fbc675f1
Use correct target model on One2ManyFilterDomainTarget origin field
...
issue6492
review39361002
2017-05-09 10:08:19 +02:00
Sergi Almacellas Abellana
7ed3976d80
Use issubclass to test if foreign keys must be created
...
issue6491
review42321002
2017-05-08 12:00:37 +02:00
Cédric Krier
8770be28d6
Increase version number
2017-05-01 19:22:33 +02:00
Cédric Krier
5d6546eb00
Added tag 4.4.0 for changeset f253ce8ed02f
2017-05-01 19:18:15 +02:00
Cédric Krier
e16ef4adb1
Prepare release 4.4.0
2017-05-01 19:18:13 +02:00
Cédric Krier
d3960ecc04
Update translations
2017-04-29 18:53:35 +02:00
Cédric Krier
0478cd4456
Add test for nested ordered search
...
issue6458
review37341002
2017-04-26 19:34:11 +02:00
Cédric Krier
8479768619
Ensure Many2One target join is unique if Target has history
...
The joins added in tables must ensure to make a Cartesian product.
So when joining on a history table, the target id is not unique so the latest
must be used only for the join. Otherwise a search query may return multiple
times the same id.
issue6458
review37341002
2017-04-26 19:33:32 +02:00
Sergi Almacellas Abellana
d4028626d5
Add test for fields.depends decorator
...
issue6450
review40271002
2017-04-26 13:56:52 +02:00
Sergi Almacellas Abellana
7cc9585630
Ensure all _parent_ values are set on fields.depends
...
If the client does not sent all the values of the parent model fields, we must
ensure that the empty ones have None value
issue6450
review40271002
2017-04-26 13:56:30 +02:00
Cédric Krier
f7c1de84c4
Support instantiate model with _parent_ of _parent_
...
This is a valid depends value for a field but the __init__ method lose the
second _parent_ once it has been instantiated a first time.
Setting _parent_ value must be done recursively.
issue6441
review40261002
2017-04-19 10:31:45 +02:00
Nicolas Évrard
12824d6457
Reset the database list cache on the right class
...
issue6429
review35371003
2017-04-17 00:17:09 +02:00
Cédric Krier
2d1143fd26
Sanitize path in file_open against suffix
...
issue6361
review33191002
2017-04-03 18:23:41 +02:00
Cédric Krier
050f2070dd
Use byte password to find on mmap
2017-04-03 18:16:28 +02:00
Cédric Krier
f7a6da3328
Add constraint on user password
...
issue6379
review28091002
2017-04-03 17:05:23 +02:00
Sergi Almacellas Abellana
5b86281166
Add missing types mapping for Postgresql backend
...
issue6411
review34071002
2017-04-03 13:11:07 +02:00
Cédric Krier
a178546d0d
Use _field for sql_format of Function field
...
It is useful to allow to use sql_format on Function field when writing SQL
query that emulate the field.
issue6410
review34051002
2017-04-01 19:55:35 +02:00
Cédric Krier
826f30219d
Re-use method as default parameter of TableHandler add_column
...
There is no guarantee that the method will not raise a database error on the
first registration because it can rely on other tables being registered.
So the method must be called only when needed. This is when the table already
exists and has records. In this case other tables also already exist.
issue6409
2017-04-01 16:14:36 +02:00
Cédric Krier
62826903c2
Raise KeyError instead of generic Exception
...
This is a more specific exception that allows better catch.
issue6409
review34891002
2017-04-01 10:38:51 +02:00
Cédric Krier
a908e8cc74
Add MultiValueMixin and ValueMixin and remove Propery
...
issue2349
review23351002
2017-04-01 00:24:55 +02:00
Nicolas Évrard
aa9c9cc9e7
Use sql type instead of field related argument in the column creation
...
issue6348
review26231002
2017-03-31 13:21:51 +02:00
Nicolas Évrard
5cee718423
Move low level handling of the SQL type to the backend
...
This changeset defines on the field the (somehow) abstract SQL type a field
should use letting the duty of specifying the real SQL type the database
supports and the conversion to/from the python types to the backend.
issue6351
review33951002
2017-03-31 12:44:22 +02:00
Sergi Almacellas Abellana
95e000c9e8
Add filter to xxx2Many fields
...
issue4005
review32001002
2017-03-30 09:40:41 +02:00
Nicolas Évrard
c3f69d1db7
Add NULLS ordering
...
issue5858
review27651002
2017-03-29 23:12:01 +02:00
Cédric Krier
67dd854cb3
Add context domain on ir.action.act_window
...
issue5485
review28061003
2017-03-29 22:37:13 +02:00
Jean Cavallo
116c14497b
Use same key for get and set in translation cache
...
issue6365
review33221002
2017-03-29 00:14:53 +02:00
Cédric Krier
da2e9cc652
Allow None limit in action window
...
This value is supported by the ModelStorage.search so the client should not use
0 which is ambiguous.
issue6363
review33201002
2017-03-23 23:01:31 +01:00
Cédric Krier
01ea316689
Use pyson widget for Report email
...
issue6391
review34801002
2017-03-23 22:56:20 +01:00
Cédric Krier
e7ff9ee619
Use compact separators to dump json
...
issue6373
review33991002
2017-03-23 22:51:36 +01:00
Sergi Almacellas Abellana
220d35fb7f
Add tests for action windows
...
issue6377
review32171002
2017-03-22 13:43:47 +01:00
Sergi Almacellas Abellana
a78cffdad4
Support position argument of Trim function in sqlite
...
The position argument is not suported on sqlite but the LTRIM and RTRIM
function are used instead.
issue6378
review31221002
2017-03-22 11:59:29 +01:00
Sergi Almacellas Abellana
6575419cc9
Add window functions on Database
...
issue6355
review33961002
2017-03-22 10:49:26 +01:00
Cédric Krier
31bb48f5cb
Remove warnings in doc generation and some typo
...
issue6353
review32141002
2017-03-21 23:26:59 +01:00
Nicolas Évrard
f207968ba8
Remove assert on scheme from postgresql and mysql backends
...
issue6349
review27191002
2017-03-14 11:13:21 +01:00
Cédric Krier
6f5250bd60
Add custom __str__ to some TrytonException
...
issue6343
review34761002
2017-03-13 22:56:11 +01:00