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
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
Cédric Krier
83e0b969b9
Allow digits with None values
...
issue6296
review30051002
2017-03-12 23:57:38 +01:00
Cédric Krier
9758b4bf05
Convert generators from ModelButtonClick.register
...
As ModelView.button could consume multiple times the clicks list, the generator
of groupby must be converted in to list.
issue6319
review33881002
2017-03-08 10:22:13 +01:00
Sergi Almacellas Abellana
715dba2090
Test size attribute in test_depends
...
issue6308
review34731002
2017-03-01 10:03:44 +01:00
Sergi Almacellas Abellana
bfcc8b6a8a
Add test for selection fields methods
...
issue6278
review26171002
2017-02-23 09:27:41 +01:00
Cédric Krier
1124d15853
Support complex domain with where clause on Many2Many
...
issue6272
review33841002
2017-02-20 23:16:54 +01:00
Sergi Almacellas Abellana
482931a3d6
Improve relate domain inversion when single record
...
issue5475
review33801002
2017-02-17 11:04:07 +01:00
Cédric Krier
05972ae818
Add exception as description of internal error of user_application
...
issue6255
review29991002
2017-02-14 23:37:16 +01:00
Cédric Krier
2569f4dd52
Allow Many2One on ModelSQL to target ModelStorage
...
issue6237
review26081002
2017-02-11 19:08:52 +01:00
Cédric Krier
631c9782a3
Use proper timezone value for MySQL
...
issue6224
review32021002
2017-02-11 19:05:18 +01:00
Cédric Krier
42e5bca015
Disable transaction cache when initialize database from command line
...
issue6216
review30001002
2017-02-10 11:05:02 +01:00
Daniel Möller
d9b37b2547
Change logging into warnings in __init__.py
...
The logging is not yet configured when __init__.py is run.
issue5455
review28921002
2017-02-08 11:10:52 +01:00
Cédric Krier
601b8218e3
Do not log, as error, exception in cursor execute
...
There are expected exceptions that should not be logged and the others should
be logged by the caller.
issue6211
review26101002
2017-02-08 10:22:40 +01:00
Sergi Almacellas Abellana
5278085a98
Disable transaction cache for database list
...
issue6216
review31071002
2017-02-07 17:06:39 +01:00
Cédric Krier
d8e7a041c5
Disable transaction cache also for database cache restore
...
issue6216
2017-02-02 13:31:01 +01:00
Cédric Krier
9a1e636954
Initialize earlier the ir_cache table
...
As now the cache is managed by the Transaction, when creating the database for
the tests, the ir_cache table should be present before the registration of the
ir module. Also the transactions to create or drop the database should not have
cache because either the database is not created at the start or dropped at the
commit.
issue6216
review29171003
2017-02-02 13:14:19 +01:00
Cédric Krier
3d0c21cbec
Add list of buttons on group form view
...
issue6229
review27931003
2017-02-02 12:09:28 +01:00
Cédric Krier
cc89a96c35
Do not copy clicks of ModelButton
...
issue6228
review26061002
2017-02-02 12:08:20 +01:00
Cédric Krier
7004574de7
Add logging on cursor execute
...
issue6211
review34651002
2017-02-02 12:06:55 +01:00
Cédric Krier
cdc5952145
Manage Cache in Transaction
...
issue6216
review33021002
2017-02-02 12:04:27 +01:00
Cédric Krier
aec4208225
Allow to register multiple exit functions on Transaction
...
Use Transaction.atexit for sleeping on login attempt to put back the
transaction as soon as possible.
issue6217
review27911002
2017-02-02 12:00:49 +01:00
Cédric Krier
2351008095
Fill cache with selected columns in ModelSQL.read
...
This minimizes missing cache on the instances when computing Function field.
issue6209
review31981002
2017-02-02 11:57:18 +01:00
Cédric Krier
afdc884277
Return 429 status when too many login attempts
...
This prevents to consume too much resource by sleeping over a very long period.
issue6215
review29161002
2017-02-02 11:55:44 +01:00
Nicolas Évrard
39c12cf496
Add set_rpc on Field
...
The __rpc__ attribute is currently filled by method in ModelView. Allowing
fields to define themselves what endpoints should be remotely callable make
this process more flexible.
issue4044
review30991002
2017-02-01 16:11:00 +01:00
Cédric Krier
37cd24210a
Use integer as default value for id when compare to 0
...
In Python3, it is no more allowed to compare None with integer.
issue6231
review27941002
2017-02-01 10:29:54 +01:00
Sergi Almacellas Abellana
8339247071
Ensure add_remove attribute is a valid domain
...
issue6230
review34671002
2017-02-01 10:15:12 +01:00
Cédric Krier
b5ea083f7b
Do not instantiate global DB nor POOL in test_tryton.py
...
The database is not yet created so it fails if the Database tries to connect.
This happens since changeset 5e8fc3bec7.
2017-01-29 02:16:28 +01:00
Cédric Krier
94be12542c
Return result after cache reset in with_transaction wrapper
...
issue6200
review34641002
2017-01-29 01:17:08 +01:00
Cédric Krier
1b3dbec3b4
Ensure only one connection pool is created per database
...
It is too complex and expensive to lazy create the connection pool because all
methods which uses the pool needs to acquire a lock. So it is easier to create
it when the instance is also created. In this case, on closing the database, it
should be unregistered from the instances dictionary.
issue6202
review32991002
2017-01-29 01:15:45 +01:00
Cédric Krier
c0aa69fa23
Make wsgi app returns Internal Server Error on exception
...
If no protocol convert the data into a Response and if the data is an exception
it should be returned as an Internal Server Error instead of a succeed
response.
The exception can be used as description for the Internal Server Error.
issue6201
review31951002
2017-01-29 01:11:57 +01:00
Cédric Krier
c2b76dd685
Use root user to init pool in with_pool wrapper
...
All requests do not have necessary a user id, for example request for user
application.
issue6199
review26041002
2017-01-29 01:07:33 +01:00
Cédric Krier
811cbb2ad4
Fix test to translate read field
...
The test was using the field name instead of the field instance.
It is better to keep the usual convention of using fname for name and field for
the instance.
issue6208
review33011002
2017-01-25 23:30:23 +01:00
Cédric Krier
c1b8ee10c6
Add has_select_for on Database
...
- Use has_select_for for ir.sequence.strict instead of lock
issue6134
review32911002
2017-01-25 23:21:57 +01:00
Cédric Krier
9ea02c7b5e
Test resource model using string
...
issue6091
review33701002
2016-12-28 23:18:17 +01:00
Cédric Krier
24f386cd58
Backed out changeset bd4fb1ec9ebb
...
issue6128
2016-12-26 19:36:22 +01:00
Cédric Krier
037780d5ae
Avoid to convert IntegrityError into string
...
Use message attribute instead of calling str because the message could be
non-ASCII encoded.
issue6128
review31831002
2016-12-26 18:56:07 +01:00