Commit Graph
5976 Commits
Author SHA1 Message Date
Cédric Krier 044c51baaa Add header grouping on report
issue6760
review351221002
2021-02-21 19:19:26 +01:00
Nicolas Évrard e53724a775 Protect trusted devices against brute force attack
issue9386
review321511002
2021-02-21 16:23:11 +01:00
Cédric Krier 3592175067 Use column to order when translation value is empty
issue10094
review331871002
2021-02-20 00:58:39 +01:00
Cédric Krier fffb8efb5a Ensure to join with only one translation row
If there are multiple translations for the same record, the join will generate
result with multiple times the same id on ModelSQL.search.
As DISTINCT ON is not always supported, we must also ensure that duplicated
translations are all updated.

issue10061
review351261002
2021-02-20 00:48:50 +01:00
Cédric Krier fee02f9af2 Support secure URL when SSL is delegated
issue9986
review353161002
2021-02-15 19:09:44 +01:00
Cédric Krier 77dbb6df2f Make ModelView.parse_view public
issue10073
review333851028
2021-02-14 15:56:18 +01:00
Cédric Krier b9092a29e8 Return string on Base64Converter.to_url
issue10083
review353321002
2021-02-14 15:54:29 +01:00
Cédric Krier dcdd1707b4 Check record rule in button decorator
In order to relax internal control of record rules, they must be enforced on
the button entry point.
This is done by just reading the id of the records already stored.

issue7638
review349381002
2021-02-14 15:47:00 +01:00
Cédric Krier 964fc0a74b Add help for each value to selection and multiselection
issue9649
review320021002
2021-02-14 14:28:55 +01:00
Cédric Krier 0a7268f6ef Do not instantiate other fields loaded eagerly
It has a cost to instantiate such fields and there is not guarantee that they
will be used. But as their values are stored in the cache, if they are needed
they can be instantiated using only the cache values.
Also there is no real benefit in instantiate two fields together.

issue10026
review341251002
2021-02-13 11:15:16 +01:00
Cédric Krier ff2cc6dd21 Use safe_join in SharedDataMiddlewareIndex
issue10068
review333851027
2021-02-12 10:01:22 +01:00
Cédric Krier 82c10edcfd Depend on werkzeug before 2.0.0
issue10077
review324981002
2021-02-10 23:52:22 +01:00
Cédric Krier cedcc60890 Use menu name for window opened from menu
issue9937
review315011002
2021-02-09 00:32:18 +01:00
David Harper 6fec6444fc Add trigonometric functions to sqlite backend
issue9996
review333731002
2021-02-06 10:47:06 +00:00
Adrià Tarroja Caubet 2ba3e1bdb6 Allow skipping user warnings globally
issue7442
review318871002
2021-02-05 00:21:10 +01:00
Cédric Krier 4dc66f6f7c Allow distinct FROM addresses for envelope and header
issue9948
review324741004
2021-02-03 23:26:07 +01:00
Cédric Krier 4b34962c63 Add validate option to trytond-admin
It validates a percentage of the listed models or all and report the errors.

issue9782
review312751002
2021-01-25 22:56:02 +01:00
Cédric Krier c587d74dc4 Refresh pool of other processes
When a process change the list of activated modules, the others must refresh
their pool. We do that by just stopping the pool for that database, the next
request will load the new pool.

issue8988
review302861002
2021-01-20 00:52:07 +01:00
Cédric Krier c6fc31ecee Test copy translation
issue9866
review353091002
2021-01-18 23:20:40 +01:00
Cédric Krier 37d80d6f7f Update translate field of all copied records
The same record can be passed multiple times in the list. So we must update all
of the new records with the translated value of the fields.

issue9866
review353091002
2021-01-18 23:20:15 +01:00
Cédric Krier 421ec76c49 Clear all cache after module loaded
As we rollback the cache modification when loading a module, we must clear all
of them at the end to ensure to not keep outdated data.

issue9759
review339421002
2021-01-13 00:26:53 +01:00
Cédric Krier 2ab80aff35 Clear cache when the links between user and group are modified
The caches does not depend on the Group records but on the link with the User.

issue9964
review319051002
2021-01-11 00:06:13 +01:00
Cédric Krier 8e6173c257 Support Genshi element directives in HTML editor
issue9510
review331591002
2021-01-11 00:04:35 +01:00
Cédric Krier 6d1bc282b7 Remove extra '/' in request path in logging messages 2021-01-10 23:41:24 +01:00
Cédric Krier cbd2cc3da5 Ignore invalid intervals to compute next call of cron
issue9842
review333571002
2021-01-08 22:52:03 +01:00
Nicolas Évrard 750b597043 Use created_at text for create_date field
issue9902
review308761002
2021-01-07 10:52:08 +01:00
Cédric Krier 2738cf56b8 Update installation documentation to new tools
issue9957
review347121003
2021-01-03 13:07:39 +01:00
Cédric Krier bc22445e3d Raise explicit message when view is missing XML
issue9940
review316651002
2021-01-03 13:06:13 +01:00
Cédric Krier 18fc13fb15 Use autocommit connection to LISTEN
This is needed to receive notification in a timely manner.

issue9966
review333541002
2021-01-03 13:00:26 +01:00
Cédric Krier d766a67fbb Use cache to fill Reference selections
issue9235
review335301003
2020-12-27 00:19:30 +01:00
Cédric Krier f40d16a89e Document Cache.drop as classmethod 2020-12-26 21:49:29 +01:00
Maxime Richez d64ae06e19 Add summary to line list
A function field summary is added which takes the first line of description
field. This is useful to identify line without product (only with description)
in the list.

issue9695
review292431002
2020-12-25 17:14:57 +01:00
Cédric Krier 3b005787d3 Document ModelView._buttons states keys
issue9954
review292951002
2020-12-22 00:27:17 +01:00
Cédric Krier b267d0080d Add support for Python 3.9
issue9685
2020-12-19 17:08:48 +01:00
Cédric Krier b16604550c Skip access check on ModelStorage instances
There is no need to enforce access right on instances because only internal
code can use them and the design is to only check on the external calls.

issue7765
review322581002
2020-12-18 00:09:03 +01:00
Cédric Krier eeeee85d1b Use root user to evaluate user environment
The user attributes may be restricted by other record rules so to evaluate the
domain, we must have access to all attributes.

issue9901
review333341002
2020-12-16 20:41:21 +01:00
David Harper 5ad93fad89 Test long_description using twine check
issue9781
review337181002
2020-12-15 11:42:57 +00:00
Cédric Krier e32a98c589 Manage local version in tox and do not set local_version when no CI
issue9928
2020-12-11 13:51:54 +01:00
Nicolas Évrard 1d29cbe2b8 Compute once selection field's value when possible
issue9222
review309331002
2020-12-11 11:57:10 +01:00
Cédric Krier 70eda603bc Add support for local_version on trydevpi.tryton.org
issue9928
2020-12-10 23:05:58 +01:00
Sergi Almacellas Abellana 06346f0c76 Eager load Function field with same multiple getter
issue9561
review314201002
2020-12-06 18:34:19 +01:00
Cédric Krier e18501c644 Support other methods for button_change decorator
issue9871
review314871002
2020-12-05 12:09:27 +01:00
Cédric Krier 1618881692 Allow copying Python instances of Model
issue9869
review337071002
2020-12-05 11:58:41 +01:00
Cédric Krier 0e770ef4e1 Add pyson widget to recipients secondary and hidden
issue9892
review316541002
2020-12-05 11:49:50 +01:00
Cédric Krier 28ab759f2e Display default language name in error message
issue9872
review314891002
2020-12-05 11:45:45 +01:00
Cédric Krier 0aa6c7c80b Add all buttons to default form view
issue9870
review333231002
2020-12-05 11:43:59 +01:00
Cédric Krier 6d4b00403f Wizard must return a record when the active_id is zero
0 is a valid id for a record.

issue9885
review318921006
2020-12-04 18:40:26 +01:00
David Harper 31a0ee2ec4 Use double backticks for literals in documentation
issue9827
review335091002
2020-11-29 11:35:29 +00:00
David Harper 6badc77143 Document One2One.get_relation method
issue9826
review331201002
2020-11-29 11:30:45 +00:00
David Harper 7604a6ce35 Replace TODO directive with comment in documentation
issue9826
review292751002
2020-11-29 11:23:26 +00:00