Cédric Krier
f065ef4ff9
Use file from the Binary field to display document
...
On Windows the file used to create the Evince document must be kept after the
initialization.
Also reusing the file cache mechanism of the Binary field, prevents to create
temporary files on each call of display.
Evince document needs to have the proper extension to be sure to load the
proper backend. So the cache file must be retrieved with the requested
extension.
And finally we use Document.factory_get_document_full so if leading with the
filename extension does not work, it will try to guess from the data.
Closes #13307
2024-06-07 20:42:40 +02:00
Cédric Krier
6fc993f82a
Always use an offset of 2 to update visible cells
...
View Tree has always two table header for the selection state and the tree
menu.
2024-06-19 16:16:04 +02:00
Cédric Krier
801d087411
Replace to_hide and to_show jQuery object with .add result
...
jQuery.add returns a new jQuery object from the union and do not modify the
existing ones.
2024-06-19 16:14:55 +02:00
Cédric Krier
8903615bfa
Find table cell from tbody
...
View Tree does not have a body attribute.
2024-06-19 16:12:16 +02:00
Nicolas Évrard
30eb297753
Use move_to_end to update key recency of memory cache
...
This is faster than popping and setting the item.
2024-06-19 00:40:38 +02:00
Cédric Krier
acaeaf1eff
Do not correct normalized delta when start date is February 29
...
Closes #13310
2024-06-08 12:10:40 +02:00
Cédric Krier
6e4f8a09c3
Set custom string on label of the form instead of field
2024-06-03 13:24:19 +02:00
Cédric Krier
f0936ef64c
Ignore production request when searching for draft production moves in the past
...
Closes #13269
2024-05-27 23:46:47 +02:00
Cédric Krier
ac75f5f371
Add searcher to production of stock move
2024-05-27 23:45:48 +02:00
Cédric Krier
98f057e41b
Apply access rules when searching for draft production moves in the past
...
Closes #13284
2024-05-27 23:34:31 +02:00
Nicolas Évrard
be0ea9e6b7
Update visible columns at the end of tree's redraw
...
Updating the visibility of all the cells at once allows the browser to compute
the style and layout once instead of once per row.
Closes #13200
2024-04-04 20:56:21 +02:00
Sergi Almacellas Abellana
732af53046
Replace Accounting Party by Accounting group
...
There is no need to use a dedicated group for party fields as it can use the
Accounting group
2024-05-13 14:11:20 +02:00
Cédric Krier
09976345fe
Convert image in RGBA to add background using alpha composite
...
Closes #13316
2024-06-09 01:49:57 +02:00
Cédric Krier
347a816156
Do not include WHERE clause to constraint if it is None
...
Closes #13315
2024-06-09 01:45:21 +02:00
Cédric Krier
dfb3bc9337
Test Shopify fulfillment status to be fulfilled when backorder is cancelled
...
Shopify has changed the fulfillment status when products are removed from the
order.
Closes #13221
2024-06-08 13:29:30 +02:00
Cédric Krier
4466c4305a
Search records for calendar view using date value if the field is a date
...
Since bb3cb0d30686, it is not allowed to use a datetime value on a Date field.
Closes #13300
2024-06-05 19:32:50 +02:00
Cédric Krier
db9becfd6d
Exclude records without dtstart or dtend from calendar view
...
Closes #13302
2024-06-06 10:01:55 +02:00
Cédric Krier
36dee8a853
Bind callback to the attachment window when dropping file as attachment
...
Closes #13182
2024-06-05 18:38:58 +02:00
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