Cédric Krier
bec3fff190
Handle invalid email in trytond-admin command
...
The email value is validated by the command line parser.
And the interactive input loop until a valid email is entered.
Closes #13294
2024-06-02 11:38:06 +02:00
Cédric Krier
d011e4149e
Add export translations option to trytond-admin
...
Closes #13231
2024-05-01 20:08:15 +02:00
Cédric Krier
6f349d7e7f
Do not test file exists when opening it
...
The file_open tools may be used to create a file so it may not yet exist.
Also io.open will raise the proper exception if the file can not be open.
Closes #13230
2024-05-01 20:03:17 +02:00
Cédric Krier
928ca1dae1
Use empty string as fallback value for module path
...
The module path is used later to join path so it must be a string.
Closes #13229
2024-05-01 19:59:17 +02:00
Cédric Krier
e45ff0098b
Do not rely on locale from context as fallback format for date
...
Since 6c5f4d760e54, the locale key is removed from the RPC context so the
fallback for the date format must come from the translation utilities.
Closes #13290
2024-05-31 11:13:06 +02:00
Cédric Krier
8f49454f08
Test if main menu screen is not empty before using it in callback
...
The callbacks could be triggered after the main menu screen has been removed.
2024-05-28 16:51:24 +02:00
Cédric Krier
be9cc4daee
Test importing translated data
2024-05-22 18:08:12 +02:00
Cédric Krier
a976b965d8
Do not convert to False when importing translated translated which is empty
...
Closes #13276
2024-05-22 18:07:32 +02:00
Cédric Krier
bffc2c6ac5
Add test case for email tools
2024-06-07 09:56:33 +02:00
Cédric Krier
2f26c7c067
Allow formatting non ASCII email address
...
Closes #13241
2024-05-07 16:57:59 +02:00
Cédric Krier
5f934d2f30
Fallback to normalized email if there is no ascii available
...
Closes #13241
2024-05-07 16:56:51 +02:00
Cédric Krier
b3fd5364dc
Document that _rec_name must point to a Char field
2024-05-22 15:33:55 +02:00
Cédric Krier
525dd32ffb
Test every kind of getter of Function field
2024-05-20 23:17:20 +02:00
Cédric Krier
530f6cbf7f
Return proper dictionary structure for instance getter with names
...
Closes #13136
2024-05-20 23:16:39 +02:00
Cédric Krier
307e9f73f5
Do not rely on assigned quantity to supply on stock first
...
Closes #13279
2024-05-24 15:20:43 +02:00
Cédric Krier
25d0cb7787
Do not commit readonly transaction even with channel
...
Even if the backend allows NOTIFY query on readonly transaction, it is strange
to commit readonly transaction because the backend may not enforce the
readonly.
Also commit performs other actions that may not be wanted like commit
datamanager or clear cache.
A procedure that requires to perform a NOTIFY should have a non-readonly
transaction.
Closes #12542
2024-05-23 14:22:42 +02:00
Cédric Krier
f0f2294d2c
Use a readonly transaction to load module without update
...
Closes #12542
2024-05-23 14:18:51 +02:00
Cédric Krier
bf70e12f8f
Remove print statement when catching check vies exceptions
2024-05-23 14:23:52 +02:00
Cédric Krier
b708f5ff48
Put textarea and richtext under an input-group
...
If the widget is translatable, the translate button is an input-group-btn
which must be under the same input-group as the principal input.
Closes #13238
2024-05-14 19:44:39 +02:00
Cédric Krier
bcf87266c3
Allow web_shop as key for product image
...
Closes #13258
2024-05-14 15:25:22 +02:00
Cédric Krier
441abbfbf8
Delete purchase request when the product is deleted
...
Closes #12917
2024-05-11 11:58:40 +02:00
Cédric Krier
b8c759594e
Clear translations with invalid placeholders
2024-05-01 11:18:06 +02:00
Cédric Krier
91e95c52b5
Always return a promise from _update_completion
...
Closes #13280
2024-05-25 20:40:56 +02:00
Cédric Krier
9e759e9604
Sort posted lines to reconcile at last by party
...
The lines may or may not have a party depending on the account.
So the order key must avoid compare party instance with None value.
Closes #13268
2024-05-21 10:12:46 +02:00
Nicolas Évrard
0cd6aaf298
Sort X2M fields according to the order
...
Since 40615f3e3e8e .browse calls have been replaced by a .read one but .read
does not respect the order of the ids.
Closes #13288
2024-05-30 19:30:14 +02:00
Cédric Krier
660eafe90c
Add test scenario for production split
2024-05-20 20:35:26 +02:00
Cédric Krier
e1a63d4c39
Rename uom to unit in production split wizard
...
Closes #13263
2024-05-20 20:35:07 +02:00
Cédric Krier
3359b76579
Search tax identifier from the invoice party identifiers
...
Closes #13265
2024-05-20 14:26:21 +02:00
Adrià Tarroja Caubet
d590139f93
Update TinyMCE to version 7
...
Closes #8683
2024-05-07 00:29:45 +02:00
Cédric Krier
af50a2fd64
Insert new modules in ir_module table before registration
...
The ir.model* Models have foreign key constraint for the module column.
Closes #13244
2024-05-10 23:45:00 +02:00
Cédric Krier
76190b9e9d
Remove NOT NULL from create_uid and create_date in PostgreSQL init SQL
...
Those fields are not required.
2024-05-10 23:23:13 +02:00
Cédric Krier
2bc7969652
Fallback to the default language if it does not exist for product data feed
...
This avoid to fill the cache with unsupported languages.
2024-04-16 18:33:38 +02:00
Cédric Krier
cccdc1f1f7
Add scheduled task to update cached feeds
...
On large data set, generating the feed may take too long for an HTTP request.
So in this case user may want to update the cache with a scheduled task so the
requests are always answered directly using the cache.
2024-04-16 18:43:37 +02:00
Cédric Krier
215834f78f
Add code to production BOM
2024-05-14 08:58:04 +02:00
Cédric Krier
c1f3ddcd10
Unify logging message of bus
2024-05-09 17:01:28 +02:00
Cédric Krier
a5fcf23ad0
Save images with 300 dpi
...
Closes #13206
2024-04-20 12:29:34 +02:00
Cédric Krier
cd41ab4c5e
Always convert image to RGB format
...
Closes #13206
2024-04-20 12:26:21 +02:00
Cédric Krier
3800523d11
Move language field to the party header form
2024-05-09 12:07:48 +02:00
Cédric Krier
dea9cea516
Add description for image
...
Closes #13226
2024-04-30 12:58:04 +02:00
Nicolas Évrard
d3e9f3ac5f
Use read to fetch reverse field value of x2M field in field get
...
This avoid to create instances for origin or target just to get their id.
Closes #13245
2024-05-25 12:59:45 +02:00
Nicolas Évrard
56d580ae5b
Optimize instance creation in ModelStorage.__getattr__
...
The kwargs and pysoned context are put in a cache to avoid rebuild them for
each similar instance.
Closes #13245
2024-05-25 12:50:02 +02:00
Nicolas Évrard
4df7a36de3
Set the language when parsing XML files
2024-04-22 10:42:28 +02:00
Nicolas Évrard
370e2f3b41
Use English when fetching records from the database
...
Closes #13204
2024-04-18 19:00:34 +02:00
Nicolas Évrard
907bcafd64
Fix typo in the name of the filesystem caching class of the XML parser
2024-04-19 15:40:23 +02:00
Cédric Krier
8e9d6712c9
Use sales field to relate from sale to invoices
2024-05-02 18:47:41 +02:00
Cédric Krier
97796eacd1
Use purchases field to relate from purchase to invoices
2024-05-02 18:47:16 +02:00
Cédric Krier
5b9cc03243
Add python-format flag to PO files
2024-05-01 19:13:04 +02:00
Cédric Krier
ed5f91a480
Forbid payment of zero amount
...
Closes #13031
2024-05-05 10:06:07 +02:00
Cédric Krier
196cfbeb0c
Do the marketing record activity in the queue
...
This avoid to block the cron for a long period if there is a lot of record
activities to process.
In case of failure the record activities will be retried. And in case of long
delay in the queue, the record activities will not be processed twice thanks
to the transition filter of the workflow and the lock when updating state
field.
Closes #13146
2024-03-30 12:03:30 +01:00
Cédric Krier
5035063b35
Check validity of description of move template
2024-05-10 16:06:31 +02:00