Cédric Krier
7dfd4292e9
Remove extra query that retrieve cache timestamp twice
2024-03-30 16:09:07 +01:00
Cédric Krier
c028397262
Try to update next call of skipped cron tasks
2024-05-08 10:07:09 +02:00
Cédric Krier
a84cb45141
Compute next call of cron task using actual now
...
If the cron task took more time then the repeating delay, it is not useful to
reschedule it in the past.
2024-04-03 16:30:46 +02:00
Cédric Krier
339ee1867d
Use process pool to run cron
...
Closes #13053
2024-04-03 16:28:22 +02:00
Cédric Krier
f9b50f16bf
Lock only running cron record
...
A single transaction is used to lock, run and update the cron record.
Only the cron run is locked so other cron processes could run other cron
tasks.
When fixing transaction, we ensure that the same cron record is selected again
otherwise we restart with an empty transaction setup the selection process.
If a cron record fails to execute, it is ignored from the selection for this
run.
The run stops once there is no cron record that can be selected.
Closes #13158
2024-05-07 19:44:35 +02:00
Cédric Krier
3369d98de2
Add option to skip tests that require network
2024-05-20 12:20:00 +02:00
Cédric Krier
822e716070
Add language support per field in export data
...
Closes #13266
2024-05-19 19:58:16 +02:00
Cédric Krier
e98b1f2559
Add translated descriptor for Char and Text fields
2024-05-18 19:06:00 +02:00
Cédric Krier
76b60d19ec
Do not close import window on error
...
Closes #8202
2024-05-27 16:32:58 +02:00
Cédric Krier
7e0caccd67
Include row and column in error message when importing data
2024-05-27 16:24:47 +02:00
Cédric Krier
922925c151
Remove support for :id suffix in import data
...
Closes #13189
2024-05-27 16:25:33 +02:00
Cédric Krier
db97bdca70
Raise user error when import data with wrong number of columns
2024-05-27 14:54:03 +02:00
Cédric Krier
57e59ac67d
Add secondary unit to purchase amendment
...
Closes #13256
2024-05-21 18:56:20 +02:00
Cédric Krier
bbd5e521f3
Add secondary unit to sale amendment
...
Closes #13256
2024-05-21 18:56:03 +02:00
Cédric Krier
6ffe8bcea0
Enforce secondary unit rate and factor on sale and purchase line
2024-05-21 16:30:46 +02:00
Cédric Krier
77363b377f
Optimize and simplify search query for invoice amount
...
There is no need to include record rule clause in the searcher.
And the grouping can be done only once.
2024-04-28 17:28:58 +02:00
Cédric Krier
1c9740fd2f
Do not use a Form to get the menu Screen
...
When the screen is created by a Form, it fetches the resources when a record
is selected. But this is not needed for the menu as it has no menu bar.
2024-05-10 16:32:31 +02:00
Cédric Krier
43599f9927
Use SQL query to compute reconciliation lines of invoices
...
Closes #13260
2024-05-16 16:06:49 +02:00
Cédric Krier
c54d3e89ec
Extract SQL query for lines to pay of invoices
2024-05-16 14:47:22 +02:00
Hartmut Goebel
dd01b75956
Update documentation of LDAP authentication
2024-06-20 13:13:17 +02:00
Cédric Krier
7acc539f85
Do not test network client in unittest
...
The services are not reliable enough to be tested as unittest.
Closes #13264
2024-05-22 09:20:01 +02:00
Cédric Krier
b00015d85a
Do not update shipment cost method to Null if it is already Null
...
The migration update the sales already updated each time the sale is
registered. On large table, this can be slow.
2024-06-13 17:26:01 +02:00
Cédric Krier
e58215ae2b
Set focus to the first focusable child of the cell
...
Closes #13327
2024-06-10 20:04:39 +02:00
Cédric Krier
31653d99a3
Disable input and buttons on form view when there is not record displayed
...
The input icons are replaced by button so they can be disabled.
The search filter is hidden in xxx2Many widgets when there is no record to
display.
Closes #13287
2024-06-05 18:16:03 +02:00
Cédric Krier
74d3d230bd
Fix python formatting for missing account revenue message in Spanish
...
Closes #13322
2024-06-10 17:31:00 +02:00
Cédric Krier
1d906921b3
Eager load other fields only if they share the same views
...
We do not want to eager load fields that are only set on form view even if it
cost a second read for the fields that are only on the list view.
Closes #13281
2024-05-26 15:55:09 +02:00
Cédric Krier
03408fe463
Do not re-select all records if current record is empty and selection is checked
...
This happens when the current record is removed when it is deleted.
Closes #13325
2024-06-10 17:23:18 +02:00
Cédric Krier
bac3536b4c
Store readonly attribute on Screen with a default value
...
Otherwise the attribute value may be undefined instead of being a boolean.
Closes #13324
2024-06-10 17:17:27 +02:00
Cédric Krier
342d5eb6ed
Always update state of delete and undelete buttons in window form
...
Closes #13323
2024-06-10 17:13:03 +02:00
Cédric Krier
26896b5da6
Use only the readonly from group in Window Form
...
Since 12e08efd3872 the readonly of the Screen depends on the selected records.
But we still wants to save the modification from the Window Form even if a
deleted record is selected.
Closes #13321
2024-06-10 17:09:41 +02:00
Cédric Krier
c86bfec305
Set 100% width to input-group of form-text and form-richtext
...
Otherwise if the widget is not translated, the textarea does not expand.
Closes #13320
2024-06-10 17:02:56 +02:00
Cédric Krier
47e0befb92
Set EV_BACKENDS_DIR to the backends directory of evince
...
Closes #13309
2024-06-07 20:48:09 +02:00
Cédric Krier
5c9e6c44eb
Add logging when Evince can not open a document
2024-06-07 20:45:33 +02:00
Cédric Krier
fe432dab2d
Do not fail to remove temporary files at exit
...
On Windows PermissionError may be raised.
Closes #13308
2024-06-07 20:44:51 +02:00
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