Commit Graph
5628 Commits
Author SHA1 Message Date
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
Cédric Krier 51c99aaa12 Allow SQL expression as value of fields
issue6460
review279431002
2019-06-26 21:56:16 +02:00
Cédric Krier 604046d271 Allow customizing Dict keys order
We add a sequence attribute to the key definition and use it for sorting.
This attribute is filled by the field sequence if it exists (using
sequence_ordered) or by the key name.

issue8373
review275431002
2019-06-16 19:24:15 +02:00
Cédric Krier 57fd329250 Use threads to initialize pool at startup
This speeds up when the server starts listening or working.

issue8370
review261531002
2019-06-16 19:19:30 +02:00
Cédric Krier 2d4f6766b1 Improve domain validation error from server
We add to DomainValidationError the invalid domain and the field definition so
the client can format and append it to the description of the error.

issue8288
review255351002
2019-06-16 19:04:55 +02:00
Cédric Krier 2d0002d8e9 Allow to search on related field in search box
The server adds to the definition of the fields, the definition of relation
fields up to specific deep level.
The clients use this relation fields definition to extend the domain parser
with those fields using a dot notation. But those "dotted fields" are not
shown in the search filter to not bloat the popup as it is dedicated to
learning.
In addition, Dict fields are also filled with relation fields coming from the
keys defined in the schema model. As the size can very large, it is possible
to deactivate this feature from the configuration.

issue8293
review259391005
2019-06-16 15:44:14 +02:00
Cédric Krier ea8f8c21c7 Make model on view required for all view except board
issue8417
review259641002
2019-06-16 12:39:20 +02:00
Cédric Krier dbda770234 Skip tests relying on assertion when python is optimized
issue8381
review271471002
2019-06-12 19:15:00 +02:00
Cédric Krier 97bbaa5213 Allow to delete trigger
For that, we add missing on delete CASCADE on log.

issue8383
review261541002
2019-06-12 19:01:13 +02:00
Nicolas Évrard 57c53f429a remove useless breakpoint() introduce in f6fe262d310f 2019-06-05 18:34:23 +02:00
Nicolas Évrard 94c2a212c8 Allow to store SEPA Message content on the file system
issue7295
review44851002
2019-06-05 18:32:08 +02:00
Udo Spallek 9e4a622569 Remove unused msg_cron_email
issue8310
review287381002
2019-06-04 14:11:32 +02:00
Cédric Krier 0490726b24 Use same definition format for dict key than field
This will allow to use the dict keys as relational fields and allow the client
to use them for domain parsing.

issue8295
review273311002
2019-06-03 15:37:49 +02:00
Cédric Krier 1890542974 Sort keys of PYSON XML value
The value must be constant because it is compared with the previous one.

issue8369
review257481004
2019-05-30 09:37:52 +02:00
Cédric Krier 5e6638c072 Remove useless callables dictionary 2019-05-28 10:03:40 +02:00
Sebastien Marie 8038cfce77 Evaluate n_sign_posn and p_sign_posn as integer instead of char in XML
issue8375
review269561002
2019-05-27 23:20:04 +02:00
Cédric Krier 867b7e14e7 Always update ir.model.data if the filesystem value is different
We must compare against the filesystem value instead of the old value because
it is the actual target.

issue8353
review261471002
2019-05-22 18:29:04 +02:00
Cédric Krier 155043fb72 Remove Python 3.4 classifier 2019-05-09 09:33:17 +02:00
Cédric Krier 5e0be86c2d Increase version number 2019-05-06 14:45:35 +02:00
Cédric Krier 35087d9da0 Added tag 5.2.0 for changeset ef34e4e92d45 2019-05-06 14:45:15 +02:00
Cédric Krier 845451050a Prepare release 5.2.0 2019-05-06 14:45:15 +02:00
Cédric Krier da5b0daf68 Fill ModelView.__change_buttons in __post_setup__
Since the refactoring from a57cd35eec06, we loop only on fields in __setup__
so button_change are not processed. And __change_buttons is not filled.
We fill it in the __post_setup__ when the _buttons dict is filled when values.

issue8329
2019-05-06 11:34:11 +02:00
Cédric Krier 1f4015ae60 Update translations 2019-05-01 18:05:27 +02:00
Cédric Krier cc74e8b4bb Add Finnish
issue7237
review44951002
2019-05-01 16:38:57 +02:00
Cédric Krier 4e60a835f7 Add Turkish
issue6745
review48261002
2019-05-01 16:18:50 +02:00
Cédric Krier f7e0d57508 Add Estonian
issue7804
review45781002
2019-05-01 16:08:55 +02:00
Cédric Krier 5c2782626b Use freezed context in order function
The hash method can no hash tuple containing unhashable element like a list.

issue8265
review265341002
2019-04-25 15:24:01 +02:00
Cédric Krier 5b355f37d0 Check access on target only if related field has a target
The Dict field can use the relate syntax to access keys but it does not have
any target model to check.

issue8298
review251291002
2019-04-24 23:46:59 +02:00
Cédric Krier 12376f30e5 Order by target name and context hash
None can not be compared to a class so we always use strings to order before
grouping. Also dictionary can not be compared neither.

issue8265
review253351002
2019-04-24 23:40:46 +02:00
Cédric Krier e63b43b0bb Improve cron form view 2019-04-22 15:46:45 +02:00
Cédric Krier e39129ee3d Add sort and translate options to Reference field
As Reference field uses the SelectionMixin, they could have the same options.

issue8278
review253331002
2019-04-15 16:11:00 +02:00
Cédric Krier 3764a8c44e Do not create empty translations
issue5452
review267251002
2019-04-15 16:07:52 +02:00
Cédric Krier e1cb85ddad Replace dsn by params to connect to postgresql
It is safer to use explicit params than construct DSN string.

issue8270
review269321002
2019-04-15 15:56:03 +02:00
Cédric Krier 96a1ed80d7 Instantiate rule group id with RuleGroup class 2019-04-13 23:13:52 +02:00