Cédric Krier
507a8e26fe
Add start value to PYSON Date and DateTime
...
This enable the customization of the starting point for delta operations.
issue8561
review264041002
2019-09-20 11:36:05 +02:00
Cédric Krier
def268915a
Add MultiSelection field
...
issue7851
review249911002
2019-09-20 11:32:56 +02:00
Sergi Almacellas Abellana
058a816879
Support dot notation on PYSON Eval
...
issue8528
review287841003
2019-09-19 14:11:17 +02:00
Sebastien Marie
afd08618f0
Import zero value as non null value
...
issue8658
review282121004
2019-09-17 23:12:51 +02:00
Cédric Krier
d782949f5a
Add tests for translation in ModelSQL
...
issue8632
review280081002
2019-09-17 00:05:09 +02:00
Sergi Almacellas Abellana
b60b01c569
Ensure view arch is defined on test_view
...
issue8603
review270141003
2019-09-12 18:54:25 +02:00
Cédric Krier
5e68f7c0ab
Test _changed_values with rec_name
...
issue8637
review280081004
2019-09-11 23:50:20 +02:00
Cédric Krier
be8ffa6f0c
Use new related API for _changed_values
...
The rev 596528aa0139 introduced a new API for related values. The rec_name set
by ModelView._changed_values must follow this new API to be used as cache by
the clients.
issue8637
review280081004
2019-09-11 23:49:34 +02:00
Cédric Krier
d9b4d71a11
Ensure context is correctly set when initializing Model
...
We make the assignation twice if any field has a context defined. This ensures
that the context will be evaluated with all initialized values when
the target records will be instantiated.
issue8586
review282041002
2019-09-09 22:41:54 +02:00
Cédric Krier
262f81979d
Do not call _changed_values on non ModelView instance
...
When the target is not a ModelView, we can not compute the changed values.
2019-09-08 22:11:31 +02:00
Cédric Krier
4154b93a01
Prevent assign unknown attributes on Model
...
by adding __slots__ on PoolMeta
issue8567
review254091002
2019-09-07 23:45:08 +02:00
Cédric Krier
845eee5ea1
Add test to use stored value for One2Many changed without initial value
...
issue8605
review265901016
2019-09-07 23:34:55 +02:00
Cédric Krier
d2bc591d18
Use stored value for One2Many changed without initial value
...
If the client does not send the value for the One2Many (it happens when it is
not modified), we must assume that it has the stored value unchanged. Otherwise
the current records are considered as to be added but with only their changed
values.
issue8605
review265901016
2019-09-07 23:34:20 +02:00
Cédric Krier
dd1626e5cf
Replace child_of target only if it is not a related field
...
issue8609
review285911002
2019-09-02 18:34:55 +02:00
Daniel Möller
38bbe4d820
Pass app and request to wsgi error handlers
...
issue8548
review271931002
2019-09-02 18:25:12 +02:00
Cédric Krier
c2bcf9368a
Return message id if pool does not have yet ir.message
...
When pool is initialized the ir.message may not yet be registered.
issue8631
review262061002
2019-09-02 18:21:41 +02:00
Cédric Krier
2b78f07a98
Use MagicMock for message when testing sendmail
...
Since issue8596, sendmail test message contains Date header so message must
implement the magic method.
2019-08-30 11:32:32 +02:00
Luciano Rossi (lukio)
8c1aa49492
Add missing Date header on email sent
...
issue8596
review272091002
2019-08-30 09:08:32 +02:00
Cédric Krier
340cb2f630
Loop over all expression of the relation domain to valid
...
When the field is a relation, the field name can not be used to inverse the
domain because the record evaluated it the Relation. So we inverse the domain
with all the field in the domain until find one invalid. If we find any then we
raise a generic error.
issue8597
review270141002
2019-08-28 22:31:22 +02:00
Cédric Krier
54e2d31843
Ensure to convert to string LazyString of selection
2019-08-25 20:51:31 +02:00
Cédric Krier
589e27cc87
Add lazy_gettext
...
issue8560
review283901002
2019-08-25 13:00:28 +02:00
Cédric Krier
c0c911ba7c
Catch all exceptions in sendmail
...
The connect and sendmail method may raise other exception like OSError or
socket.error
issue8590
review272071002
2019-08-25 12:48:16 +02:00
Sergi Almacellas Abellana
cbccac6841
Return name as report_content_name when template extensions is empty
...
issue8576
review287941002
2019-08-23 18:31:05 +02:00
Cédric Krier
9fff734230
Raise proper exceptions when context is missing in RPC
...
issue8565
review257921003
2019-08-22 22:48:13 +02:00
Cédric Krier
064f501aaa
Improve Report.format_timedelta
...
- Use static default converter
- Remove skip_zeros as alignment will not work any way
- Manage None value
- Translate labels
- Split tests
issue7443
review257891002
2019-08-18 19:08:11 +02:00
Sergi Almacellas Abellana
d98c009ad1
Inculde tryton rnc and rng files on distribution packages
...
issue8556
2019-08-09 17:03:11 +02:00
Sergi Almacellas Abellana
a338fa6478
Validate xml files definition on tests
...
Update tryton.rnc format and use grouped attribute on message.xml
issue8556
review272001002
2019-08-09 16:31:29 +02:00
Sergi Almacellas Abellana
8371cf568b
Add record name searcher for message
...
issue8557
review285711002
2019-08-08 08:59:37 +02:00
Cédric Krier
f56c5be5ad
Add minimal to_char for date and datetime on SQLite
...
We support only date and datetime with common pattern between SQL and Python.
issue8464
review261761002
2019-08-07 19:34:33 +02:00
Cédric Krier
1f2256d545
Call change_with selection method with an instance
...
issue8293
2019-08-07 17:12:33 +02:00
Xavier Codinas
c1a59b07e7
Add format_timedelta in report
...
issue7443
review42151002
2019-07-31 11:08:18 +02:00
Cédric Krier
ac9fc496df
Convert cache_name by TableHandler when used as database name
...
The name of the cache can be longer than the maximum length of database name.
2019-07-28 16:05:45 +02:00
Cédric Krier
e703f3f048
Setup default logging for WSGI application
...
issue8510
review263911003
2019-07-23 00:09:25 +02:00
Cédric Krier
d00e1bb00a
Remove duplicate button attributes and move warning at the end
2019-07-17 21:15:37 +02:00
EdbO
a8aea29de2
Add format argument to Report.format_date
...
issue8444
review279611002
2019-07-17 00:57:39 +02:00
Sebastien Marie
ed470bada7
Skip the Function field without setter in Data.sync()
...
issue8478
review251711002
2019-07-17 00:55:17 +02:00
Cédric Krier
52ecb8ef23
Change expand attribute into a factor
...
issue8308
review275331002
2019-07-13 00:14:39 +02:00
Cédric Krier
7f9191dece
Test unique pyson domain validation with greater IN_MAX
...
issue8474
review257701002
2019-07-13 00:08:56 +02:00
Cédric Krier
ca8e1a088d
Use non grouped domain when grouped record > IN_MAX
...
The break when grouped records are greater than IN_MAX, should break all the
loops in order to prevent use of the grouped domain.
issue8474
review257701002
2019-07-13 00:08:30 +02:00
Cédric Krier
3c5cec7bf1
Ensure count of grouped_slice is at least 1
...
issue8474
review257701002
2019-07-13 00:06:22 +02:00
Juanjo Garcia
a8fc7f0e50
Allow using yexpand and yfill attributes on notebook element
...
issue8418
review281681002
2019-07-09 23:42:43 +02:00
David Harper
83684b060e
Only encode report_content_html if it is not None
...
issue8476
review249621002
2019-07-08 21:49:05 +02:00
Cédric Krier
dd26e03001
Test 'id' not removed from read result when in context field
...
issue8470
review263841002
2019-07-08 21:31:26 +02:00
Cédric Krier
23dabd10b2
Always return 'id' key in the read result
...
The 'id' should not be removed from the result if a field use it as an extra
(e.g. for context).
issue8470
review263841002
2019-07-08 21:30:43 +02:00
Cédric Krier
190657e0ef
Make CurrentTimestamp transactional for SQLite backend
...
It must return the same timestamp during the all transaction.
issue8457
review271641002
2019-07-08 21:27:55 +02:00
Cédric Krier
7dbcc96b8e
Use separate connection to query cache table
...
The table is a hot spot for contention so we must minimize the duration lock
are kept on it. As at the start of a transaction, the cache may be sync and so
it locks all the row in the table, the transaction used for this query should
not be the main one that lasts a long time. Idem for the commit.
issue8447
review283591002
2019-07-08 21:24:33 +02:00
Cédric Krier
6a61910ea1
Review editable attribute
...
Use top for main tree and bottom when inside a field.
issue8430
review255581002
2019-07-08 17:10:34 +02:00
David Harper
6a995117df
Correct underline on passlib in config docs
...
issue8460
review273551002
2019-06-28 22:14:25 +02:00
David Harper
06ff476bbc
Correct name of bus class config option
...
issue8461
review265631003
2019-06-28 22:11:59 +02:00
Cédric Krier
c4dde4d466
Store database pool per process
...
The connection pool can not be shared between multiple processes.
issue8281
review285251002
2019-06-27 21:45:37 +02:00