Commit Graph
311 Commits
Author SHA1 Message Date
Cédric Krier 11ef2ba54c Replace deprecated datetime.utcnow usage
Closes #12647
2024-06-15 11:01:41 +02:00
Cédric Krier 38a3a8e68e Increase version number 2024-04-29 18:03:56 +02:00
Cédric Krier 2fc668b9f7 Prepare release 7.2.0 2024-04-29 17:31:11 +02:00
Cédric Krier 5e10e9df21 Add skip warning on trytond configuration
Closes #12954
2024-01-22 10:03:16 +01:00
Cédric Krier db1f9fcd4a Update proteus tests to use model field of model access as string 2024-04-07 12:17:36 +02:00
Cédric Krier 88ac130d2f Remove readthedocs 2024-02-18 18:35:54 +01:00
Cédric Krier 821be7e6dc Return test suite when loading proteus README 2023-12-31 16:59:39 +01:00
Cédric Krier 92c9467b9c Always include changed field when calling on_change_with
Since d142b33fa3ab the on_change_with relies on _changed_value.
So in order to correctly detect if a xxx2Many field has some record removed,
we need to have the value of the client.

Closes #12837
2023-12-15 19:10:38 +01:00
Cédric Krier 38da6a0451 Increase version number 2023-10-30 18:51:13 +01:00
Cédric Krier 65f477f731 Prepare release 7.0.0 2023-10-30 18:17:32 +01:00
Cédric Krier 4e010a988f Add support for Python 3.12 2023-10-22 19:40:55 +02:00
Cédric Krier fe66322ab1 Use on_change_result for on_change call
The ModelView.on_change method returns directly the changed values instead of
a list with the changed values.
2023-08-16 09:37:26 +02:00
Cédric Krier 6a06579e13 Use Sphinx book theme for documentation 2023-09-01 09:44:09 +02:00
Cédric Krier adc26533da Add .readthedocs.yaml configuration [skip ci]
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/

Closes #12344
2023-08-06 11:06:08 +02:00
Cédric Krier 041a3fb9b2 Support PYSON comparison of timedelta
Closes #10727
2023-06-15 17:06:13 +02:00
Cédric Krier d7aaac6740 Support encoding timedelta into PYSON TimeDelta
Closes #10727
2023-06-15 13:57:15 +02:00
Cédric Krier 6092ca035c Group call to on_change_with for later fields
Closes #12218
2023-04-14 17:04:01 +02:00
Cédric Krier 1a11e103bf Increase version number 2023-05-01 14:11:22 +02:00
Cédric Krier 1901135502 Prepare release 6.8.0 2023-05-01 13:19:11 +02:00
Cédric Krier 5cc5a8f672 Update tox.ini to set py311 and remove py37 2023-03-03 00:17:18 +01:00
Nicolas Évrard 039761e061 Remove support for Python 3.7 2023-01-29 20:36:51 +01:00
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Cédric Krier 79768b4890 Manage RPCReturnException in proteus
35ed4aa50b16 introduced this new exception so proteus execute the returned
action when configured with trytond.
2023-02-02 18:09:52 +01:00
Cédric Krier 68753ff402 Run action from button with proteus 2023-01-17 14:39:18 +01:00
Cédric Krier ea481922c9 Pass wizard config when converting action in proteus 2023-01-17 14:40:43 +01:00
Cédric Krier dd222215eb Lock table on transaction start
When trying to lock a table, we check if it was locked at the start of the
transaction otherwise we raise a TransactionError so the all transaction is
restarted over with the table added to the table to lock.
This ensures when a table is locked that we always read the last committed
values.

Closes #10870
2022-12-26 15:05:56 +01:00
Cédric Krier 2b786d8c44 Add coverage reports 2023-01-08 11:18:56 +01:00
Cédric Krier 62e8201d5a Add unit test reports 2023-01-08 01:55:20 +01:00
Cédric Krier 5f8b891f62 Increase verbosity of tox 2022-12-28 00:26:31 +01:00
Cédric Krier 98cbb23f58 Improve setup.py
get_required_version does not need to use .dev0 suffix anymore.
The download URL must be empty for development version.
Source Code must point to Heptapod repository.
Foundation email is used as author email.
2022-12-24 13:45:10 +01:00
Cédric Krier c35e1ad98d Use modulo on minor version to set latest series for documentation 2022-12-20 12:43:56 +01:00
Cédric Krier 5d3e4a39f2 Prepare migration to monorepo 2022-12-16 23:16:08 +01:00
Cédric Krier 7bafb47416 Prepare migration to monorepo 2022-12-16 14:49:00 +01:00
Cédric Krier afd411fd78 Do not expand boolean PYSON when using __and__ and __or__
It is not expected that the left operand is modified by such operations.

issue11836
review418551003
2022-11-05 09:51:17 +01:00
Cédric Krier 7e04038e64 Increase version number 2022-10-31 16:38:33 +01:00
Cédric Krier 4b1ac48a3e Prepare release 6.6.0 [skip ci] 2022-10-31 16:38:22 +01:00
Cédric Krier 76be70da2c Add straight values to wizard state view
issue11703
review431591006
2022-10-01 14:45:59 +02:00
Cédric Krier 47bce6b45a Add option to remove leading and trailing white spaces from char
issue7914
review340511008
2022-09-19 21:25:55 +02:00
Cédric Krier ae8c03d174 Remove same types restriction on PYSON If
issue11644
review419661003
2022-09-08 13:17:54 +02:00
Cédric Krier 337eb7169e Ensure ModelList contains only unique records
issue11230
review435351003
2022-07-16 23:59:09 +02:00
Cédric Krier f69c14b5a2 Increase version number 2022-05-02 16:26:35 +02:00
Cédric Krier 28f410c3fa Prepare release 6.4.0 [skip ci] 2022-05-02 16:26:17 +02:00
Cédric Krier 5e787c965b Replace test setuptools command by unittest discover
issue9215
review389851002
2022-04-16 18:30:20 +02:00
Cédric Krier 53cf977535 Add notification message
issue11065
review367951004
2022-04-11 23:41:21 +02:00
Cédric Krier 1bbd55d543 Manage None as value of PYSON In
issue11280
review393771002
2022-03-06 18:01:59 +01:00
Cédric Krier a57b45f25c Use first the dotted name variable in the PYSON context
issue11279
review382041002
2022-03-06 13:48:44 +01:00
Cédric Krier ed08542d13 Allow PYSON Expression as key for PYSON In with dict object
issue11278
review382031002
2022-03-06 13:46:49 +01:00
Cédric Krier 6814c3a367 Protect against XML vulnerabilities
issue11219
issue11244
2022-03-01 19:07:56 +01:00
Cédric Krier 05651288cc Use simplified parser for get_eval_fields
Instead of using the PYSONEncoder we can just iterate over the basic JSON types
and use the pyson method to retrieve nested PYSON instances.

issue11164
2022-02-22 18:04:31 +01:00
Cédric Krier da298af7e6 Support execute Report without models nor data
issue11111
review385691002
2022-01-03 22:37:15 +01:00