Commit Graph
5181 Commits
Author SHA1 Message Date
Cédric Krier 76ff508487 Skip translation hook for non translatable report
issue8937
review299481002
2020-04-19 16:32:12 +02:00
Udo Spallek 70e58d6f1d Clear report path when copying reports
issue9174
review299191002
2020-04-19 09:59:48 +02:00
Albert Cervera i Areny 2b609b8036 Add filename to translation export wizard
issue9216
review279011002
2020-04-13 23:49:48 +02:00
Sergi Almacellas Abellana 3378e283fd Add language configuration wizard
issue9172
review267031002
2020-04-13 20:47:17 +02:00
Cédric Krier 0081dc431d Allow copying attachments and notes to created records
issue9154
review266971002
2020-04-13 17:25:02 +02:00
Cédric Krier ad4a2bdf75 Add link button
issue9051
review280841002
2020-04-13 12:21:55 +02:00
Cédric Krier 3db81b1f5c Fix typo in test.export_data model name 2020-04-12 23:53:02 +02:00
Cédric Krier 4c664bf1b1 Skip invalid branch of domain without the inverted field
Those branches of the domain should not prevent to compute a proper inverted
domain for the field as the other fields will be fixed later.

issue9200
review311191002
2020-04-12 23:21:08 +02:00
Cédric Krier a48382124f Support explicit delete and remove for saving and on_change xxx2Many
issue4140
review291281002
2020-04-12 23:18:15 +02:00
Cédric Krier 5626018cd6 Add export CSV data route
issue9090
review261011002
2020-04-12 23:10:30 +02:00
Albert Cunillera Benet b232061235 Add order on User and Group
issue8704
review278161002
2020-04-12 09:19:36 +02:00
Cédric Krier 4fec4c82c6 Add more logging on database connection and testing
issue9120
review269021002
2020-04-11 00:24:37 +02:00
Cédric Krier dc1c789766 Properly test if report type in get_email
We must test if it is a subclass and not an instance of Report.

issue9196
review307221002
2020-04-10 18:26:35 +02:00
Cédric Krier a2c783371d Do not use only cache if context depends on other fields
We must read all the required fields to set a correct context on the field.

issue9187
review297391002
2020-04-10 18:25:03 +02:00
Sergi Almacellas Abellana bae2a3e718 Slugify filenames in report zip files
issue9203
review293371002
2020-04-06 13:12:26 +02:00
Cédric Krier b12d729c2d Add test on target of relation fields
issue9132
review291211004
2020-04-02 00:01:14 +02:00
Cédric Krier ab019772a7 Add width and height attributes on calendar view
issue9148
review250931003
2020-04-01 23:58:49 +02:00
Cédric Krier 748fe7212e Add database default name configuration
Some user may need to customize the default name used to run operation without
proper database name.

issue9121
review273021002
2020-04-01 23:56:17 +02:00
Cédric Krier cba3426f56 Add retry option to report convert
soffice fails sometimes. As it seems to be linked to the available resources,
we retry with some delay.

issue9175
review278911002
2020-04-01 23:52:08 +02:00
Sergi Almacellas Abellana 0cb3377825 Add depends fields on view_attributes
issue8862
review303161002
2020-03-30 09:33:15 +02:00
Cédric Krier b1e0c03707 Simplify trigger action
We use now a selection field to choose the action to trigger.
It is safer and more user friendly.

issue9096
review272961003
2020-03-28 23:56:19 +01:00
Cédric Krier 2ab5a7797d Remove unused time import
issue8342
2020-03-28 23:37:53 +01:00
Cédric Krier 5f9a7554ae Cast CurrentTimestamp into timestamp to remove timezone
issue8342
2020-03-28 23:37:18 +01:00
Cédric Krier 34e5c61a1a Run trigger in the queue
This ensures that internal changes that are reverted later in the same
transaction does not trigger an action.
Also we ensure that a record is triggered by the same trigger only
once per transaction.

issue8342
review280971002
2020-03-28 17:13:12 +01:00
Cédric Krier 72a71019c0 Do not copy Binary content with file_id
This avoid the filestore to reprocess the binary data as the file_id is
already copied.

issue9153
review297241002
2020-03-28 16:57:05 +01:00
Cédric Krier 7691b89822 Set saved tree width only if client save them
We rename also the option from save_width_height to save_tree_width which
correspond better to the current behavior.

issue9130
review258921051
2020-03-28 00:33:27 +01:00
Cédric Krier 828d444545 Skip check access on ir.ui.menu for wizard
User launching a wizard from menu should not need write access on the menu.

issue9173
review301161002
2020-03-26 00:12:43 +01:00
David Harper ba776f36a5 Replace memoize with functools.lru_cache
issue9081
review286781002
2020-03-25 17:34:35 +01:00
Sergi Almacellas Abellana 6b3eb52d17 Stop cron database retry after successful execution
issue9170
review297311002
2020-03-24 10:02:58 +01:00
Sergi Almacellas Abellana 6ac6424d88 Add option to send test email with trytond-admin
issue8983
review274681002
2020-03-18 12:36:48 +01:00
Cédric Krier e806ec55a8 Display login on LoginException message
issue9068
review266821006
2020-03-17 23:33:10 +01:00
Cédric Krier d450d09946 Add test for multiselection field in EvalEnvironment
issue9144
review285001004
2020-03-17 23:29:23 +01:00
Cédric Krier d0a82c8bdc Support multiselection field in EvalEnvironment
issue9144
review285001004
2020-03-17 23:28:57 +01:00
Cédric Krier 5e41ca21f9 Convert interval into seconds
The correct way to convert interval into seconds is to use
"EXTRACT(EPOCH FROM ...)". The "SECOND" gives only the value of the second
field.

issue9126
review297181005
2020-03-17 23:21:20 +01:00
Cédric Krier 62f2ce0198 Set all fields readonly for inactive records
issue3747
review295061011
2020-03-17 20:08:13 +01:00
Cédric Krier 92592d0d0d Add test for executing wizard without access
issue9108
review261041002
2020-03-09 18:24:54 +01:00
Cédric Krier 2c3ab3a3bd Enable check_access context when checking wizard access
issue9108
review261041002
2020-03-09 18:24:23 +01:00
Cédric Krier 456c4828c8 Replace assertTrue and assert False by assertEqual
When we must test that the actual value is True or False, we must use
assertEqual.

issue9093
review256651002
2020-03-06 23:20:35 +01:00
Cédric Krier 2041e4f5b8 Do not force value in OR-ed clause
When any other variable in Or-ed clause is not known, we can not force the
value of the variable.

issue9092
review272941002
2020-03-06 23:14:24 +01:00
Cédric Krier 065e18a9fb Return list instead of map object in get_action
The value must be converted into JSON.
2020-03-01 16:33:00 +01:00
Cédric Krier d7ed5f91f5 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:54 +01:00
Cédric Krier 62a24a6615 Manage readonly dates and editable calendar view
If any of the dates is readonly, the event can not be modified by drag and
drop.
If the calendar is not editable no events can be modified.

issue9012
review256451002
2020-02-29 23:43:50 +01:00
David Harper f0990baa49 Replace depreciated assert_ function with assertTrue
issue9077
review274891002
2020-02-21 09:15:12 +01:00
Cédric Krier 62ffa46867 Disable cache on default_get of ModelSingleton
The default_get is used by the clients as a read method to fill the form on
opening.

issue9045
review282931003
2020-02-15 01:43:11 +01:00
Cédric Krier a99931c5c4 Do use translation cache if records were modified after last synchronisation
On distributed setup, the cache is not synchronized instantaneously so we can
not use the cache if the record was modified by another process since the last
synchronisation.

issue9013
review262841002
2020-02-15 01:36:48 +01:00
Cédric Krier ac4edd0633 Read context fields if they are also in depends
This implements the real intention of changeset a892e7a649a5.

issue9036
review280791002
2020-02-12 00:15:15 +01:00
Cédric Krier d52dc594f5 Use a single instance to cache get_relation_fields
It is wrong to instantiate the cache in the __setup__ because it can be run
multiple time in the same process (but with new pooled classes).

issue9019
review253011003
2020-02-10 23:18:19 +01:00
Cédric Krier 89c737a819 Test memory cache with committed transaction as current
The tests did not correspond to a proper use case because the transaction
committed was not the current transaction. So this could lead to wrong cache
being reset and wrong cache being tested.

issue8502
review289171002
2020-02-10 23:13:26 +01:00
Cédric Krier 15ea6bf65b Add tests for types checking in PYSON Greater
issue9002
review276711002
2020-02-04 18:32:10 +01:00
Cédric Krier 3d20f1b64e Display the path of the database in error message
Instead of just the filename.

issue8995
review288881002
2020-01-29 00:05:32 +01:00