Commit Graph
5181 Commits
Author SHA1 Message Date
Cédric Krier 750ad14bb2 Skip trigger using contextual key
Relying on the user is not flexible enough.

issue8993
review260841002
2020-01-29 00:03:40 +01:00
Cédric Krier 7875590cf3 Add xalign and yalign to group
issue8956
review258581002
2020-01-24 00:18:19 +01:00
Cédric Krier 15254980a6 Add some random on the login delay
issue8936
review262681002
2020-01-21 00:36:34 +01:00
Cédric Krier 03b07a60e9 Use more appropriate HTTP status for Tryton exceptions
issue8929
review252781002
2020-01-20 22:25:12 +01:00
Cédric Krier 4920c59650 Allow to use dotted notation in Model.get_id
issue8890
review282481004
2020-01-20 22:18:27 +01:00
Cédric Krier e118cb894a Apply Exclude where clause when searching other records
When we simulate the Exclude constraints, we must apply the where clause also
to existing records.

issue8954
review284651002
2020-01-13 23:58:14 +01:00
Cédric Krier 606bdb7ce9 Ensure all SQL functions are supported by the backend's
issue8942
review270751002
2020-01-13 23:47:17 +01:00
Nicolas Évrard e2d8b6b295 Add MultiSelection entry to Dict field
issue8903
review284571003
2019-12-30 14:26:14 +01:00
Cédric Krier 6b14518eff Position new record based on order
We sent an order to the client for action and xxx2Many so its screen has
always a default order set.
To position a new record on non editable tree, we use the order of the 'id'
column if presents.

issue8880
review276501003
2019-12-28 18:16:28 +01:00
Cédric Krier 973e428caa Replace advisory lock by SKIP LOCKED in queue pulling
It is simpler and closer to standard SQL.

issue8910
review288701002
2019-12-28 18:05:25 +01:00
Cédric Krier 35fec78c17 Load WSGI middleware from configuration
issue8807
review270521002
2019-12-28 18:00:01 +01:00
Cédric Krier 5a340c90cb Replace assert in unit test
issue8904
review250351002
2019-12-18 22:41:53 +01:00
Cédric Krier 1ede807a81 Do not prefetch view of xxx2many using multiselection widget
The view is not required by the widget and it allows non ModelView relation to
be used.

issue8894
review288631002
2019-12-18 21:40:42 +01:00
Nicolas Évrard d8637c0530 Get relation fields of DictSchema when the configuration is set or absent
issue8920
review268631002
2019-12-16 17:31:15 +01:00
Cédric Krier 6250b08db5 Test wizard button points to existing state
issue8901
review282511002
2019-12-14 10:44:55 +01:00
Cédric Krier 0ff927977d Add help text to Dict keys
issue8801
review284371002
2019-12-11 22:25:51 +01:00
Cédric Krier e0b48d3f21 Skip eager loading if field is already in the cache
The Many2One and Reference fields are stored in global cache. If they are
already in the cache, the other eager fields should also be in the cache and it
is highly probable that no read will be needed. So it is better to skip the
eager loading.

issue8863
review272541003
2019-12-11 22:19:04 +01:00
Cédric Krier 015189acca Instanciate the first argument of get_action_value
get_action_value is a method so it is the first argument that must be
instantiated so the index 0.

issue8911
review272651002
2019-12-11 18:43:27 +01:00
Cédric Krier 61be3957c7 Update default value of expand attribute to match client behavior
issue8889
2019-12-11 18:36:49 +01:00
Cédric Krier 0811414d49 Update button_action with returned values
issue8766
review268241002
2019-12-07 16:03:36 +01:00
Cédric Krier cd694996f5 Import backend before transaction
because transaction import backend which can import transaction back. This
raises an ImportError as transaction is not still importing.

issue8836
2019-12-07 15:39:23 +01:00
Nicolas Évrard 8fb13634ea Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:47 +01:00
Sergi Almacellas Abellana af464488aa Add weasyprint support
issue5964
review266361002
2019-12-03 18:40:28 +01:00
Cédric Krier 11e678a8cc Avoid to import backend before loading configuration
otherwise the backend loaded is always SQLite.

issue8749
review276511002
2019-12-02 11:35:47 +01:00
Sergi Almacellas Abellana 2709bf2fa9 Adapt file mode depending on data type in soffice conversion
issue8848
review278211002
2019-11-29 15:16:11 +01:00
Cédric Krier 7722041e8a Fill by default the name of dict keys with slugified string
issue8776
review288441002
2019-11-26 22:28:00 +01:00
Cédric Krier cb33d326ca Add slugify tool
issue8776
review288441002
2019-11-26 22:27:36 +01:00
Cédric Krier 4f377825c7 Add __href__ and is_secure, host and http_host to url module
This ease the composition of URL pointing to Tryton route.

issue8767
review264461005
2019-11-26 22:16:00 +01:00
Nicolas Évrard 4085e589d6 Cache some performance sensible config values at the module level
issue8749
review284271002
2019-11-25 14:50:33 +01:00
Nicolas Évrard b61cbba5e9 Update tests to include check on 'validate' key
issue8571
review276391003
2019-11-22 14:42:29 +01:00
Nicolas Évrard b8c582c002 Add validate information on wizard Button
issue8571
review260041002
2019-11-21 15:39:56 +01:00
Nicolas Évrard df9483d4dc Use ConfigParser instead of RawConfigParser
issue8840
review274321002
2019-11-20 11:14:32 +01:00
Sergi Almacellas Abellana 3c27ee876b Use fields_names keyword on fetch action's search_read
issue8832
review250281002
2019-11-18 15:23:35 +01:00
Cédric Krier f7e5c68664 Do not consider as changed the reverse field of One2Many
issue8742
2019-11-17 23:42:02 +01:00
Cédric Krier 922c420fae Return bad request for Tryton exception instead of internal error
Those exceptions are expected behavior so it is the fault of the client, not
the server.

issue8768
review276221002
2019-11-17 17:36:07 +01:00
Cédric Krier f4a7c8d395 Do not try to save reverse field of One2Many
Even if the record is already created, the _save_values should not process the
reverse field otherwise it creates an infinite loop.

issue8742
2019-11-16 15:49:50 +01:00
Cédric Krier ec24fc7727 Fill the reverse field in the One2Many setter
issue8742
review262301002
2019-11-16 14:34:29 +01:00
Sergi Almacellas Abellana bc0c6f13f9 Drop support for skiptest attribute on xml files
issue8735
review270351002
2019-11-15 20:43:33 +01:00
Nicolas Évrard 5f49ca09a7 Remove implicit field names in ModelStorage.search_read
issue8569
review285801003
2019-11-15 11:58:43 +01:00
Cédric Krier b8af68cf59 Do not check timestamp when it is None
issue8779
review268321002
2019-11-05 10:33:25 +01:00
Cédric Krier 34678d2be6 Backed out changeset f08b9ce07a7b 2019-11-04 16:05:28 +01:00
Cédric Krier 65650004c9 Update release number 2019-11-04 16:01:28 +01:00
Cédric Krier c15cc1aacd Increase version number 2019-11-04 12:45:29 +01:00
Cédric Krier b5516b2119 Prepare release 5.4.0 2019-11-04 12:45:10 +01:00
Cédric Krier 0b5dc3e389 Compare timestamps as Char for inequality
Databases are too random about rounding when casting epoch into numerical
value. So it is better to check against inequality of the string.

issue8779
review254571002
2019-11-03 17:49:03 +01:00
Cédric Krier 24407bddf8 Update translations 2019-11-02 18:07:45 +01:00
Cédric Krier 801a9fd10f Add Indonesian
issue8184
review285461002
2019-11-01 23:35:00 +01:00
Cédric Krier 7729badb30 Cast timestamp epoch into FLOAT to avoid rounding
On PostgreSQL-12, the epoch FLOAT is now 6 digits but rounded to 5 digits when
cast into NUMERIC.

issue8779
review264501002
2019-11-01 23:04:50 +01:00
Cédric Krier d0e95329a3 Replace __unicode__ by __str__
The unicode method is no supported by Python3. There is only __str__.

issue8769
review262341002
2019-10-30 14:09:20 +01:00
Cédric Krier 442fa2a1da Display decoding error in HTML editor
If the bytes can not be decoded in UTF-8, we should display a nice error
message instead of failing with a 500.
Also if the text is not a string, we must return a 400 as it is a wrong
request.

issue8577
review264451002
2019-10-30 13:26:38 +01:00