Commit Graph
57613 Commits
Author SHA1 Message Date
Cédric Krier 47df4da88f Add statement_timeout to postgis get_connection
173ecc4f452d add a new parameter to get_connection so it must also be defined
for postgis.
2023-12-01 12:03:55 +01:00
Cédric Krier e195a0fb93 Add DatabaseTimeoutError to postgis backend
173ecc4f452d add a new database error so it must also be defined for postgis.
2023-12-01 11:32:57 +01:00
Cédric Krier 2cc7faec53 Update tutorial to use PEP517 when installing in editable mode
Closes #12701
2023-11-20 00:00:26 +01:00
Cédric Krier fd652d4b4f Update documentation of sale opportunity 2023-11-05 21:35:48 +01:00
Cédric Krier 24fc9d1caa Open sales converted from opportunity 2023-11-05 00:02:18 +01:00
Cédric Krier bf6cb46170 Restrict convert button of sale opportunity to sale group 2023-11-05 00:03:21 +01:00
Cédric Krier 87470e9180 Fill sale with default addresses and payment term if not filled on opportunity
Closes #12671
2023-10-26 09:58:49 +02:00
Cédric Krier e58a569f23 Do not force value for single list on multi-value field
Fields based on multi-value must not be forced to the single value of a list.

Closes #12737
2023-11-14 00:00:15 +01:00
Cédric Krier ba7badec6e Retry to send email when server unexpectedly disconnect
Closes #12790
2023-12-01 09:54:40 +01:00
Cédric Krier b7fe8b8c1a Always round unit price when recomputing it for stock move
Closes #12787
2023-11-30 15:59:31 +01:00
Cédric Krier e63fe001cb Do not scroll into view empty element
Closes #12783
2023-12-03 01:51:48 +01:00
Cédric Krier e70d24d375 Return values instead of changed result when testing payment term
Since 0db956eb2505 the returned value of on_change_with is set on the field.

Closes #12775
2023-11-27 12:43:31 +01:00
Sergi Almacellas Abellana 93beb80269 Explain where available companies and employes are defined 2023-11-20 09:51:12 +00:00
Sergi Almacellas Abellana afa4a20176 Make record rules documentation more explicit 2023-11-23 15:04:06 +01:00
Nicolas Évrard 300bad3f6b Assert that only one thread is active in trytond.application 2023-11-22 01:37:11 +01:00
Nicolas Évrard 50c102a2e5 Do not start threads before the end of the evaluation of trytond.application
When uwsgi forks workers it can happen that python execute the code from one of
the launched thread (eg: the cache listener or trytond-status). In that case
python will keep executing the thread and never switch to the main thread. Thus
preventing to listen for incoming connections.

Closes #12758
2023-11-16 23:37:19 +01:00
Cédric Krier 4779c72913 Limit size of database cache dump to 40 chars
Each backend has their limit. 40 chars is picked as limit to match the size of
mercurial hash.

Closes #12754
2023-11-26 17:12:40 +01:00
Cédric Krier 459795e2f3 Do not fail on missing colli_tracking_number in Sendcloud parcels
Closes #12782
2023-11-29 15:12:05 +01:00
Cédric Krier 3dc49cc1ae Set product to None on supplier invoice when product name is not found
Closes #12774
2023-11-25 21:28:50 +01:00
Cédric Krier c6335a368c Update trees of chart of accounts with 2 passes
When a new parent is added to a tree template like types, taxes or tax codes,
the corresponding record of the new template parent is not yet created.
So we need to use a default value for the parent and update again the tree
after creating the new records.

Closes #12755
2023-11-16 16:32:43 +01:00
Cédric Krier 3af76aa548 Select first record when refreshing attachment preview
Since ab82d479eca1 no record is set when displaying screen.

Closes #12756
2023-11-16 18:23:14 +01:00
Cédric Krier 1b1bbc5390 Use screen methods to activate or not the next/previous buttons of attachment preview
Closes #12756
2023-11-16 18:22:04 +01:00
Nicolas Évrard e1e6492a40 Add a test on search of historical records 2023-11-23 17:56:11 +01:00
Nicolas Évrard bd5e4d6714 Filter history lines matching search when they're too old
Closes #12687
2023-11-03 19:07:11 +01:00
Cédric Krier c3a8f6bea9 Fix call to Sao.Logger.error
Closes #12778
2023-11-27 21:35:24 +01:00
Cédric Krier b93f265fcd Submit form only if scan_code is submit
Close #12764
2023-11-20 20:41:34 +01:00
Cédric Krier cd18803452 Use list price instead of gross price in sale reporting
The sales are computed without taxes so the sales from point should use the
same kind of price.

Closes #12703
2023-11-03 13:00:12 +01:00
Cédric Krier b55e8c71ec Do not remove starting wildcard when searching bank account number
The start number of bank account are often the same for account from the same
bank.

Closes #12769
2023-11-22 11:01:31 +01:00
Cédric Krier 00f6195b48 Enforce uniqueness only on bank account number active
Closes #12768
2023-11-21 18:07:11 +01:00
Cédric Krier b794bcb0fe Use production warehouse to select product location
Closes #12765
2023-11-21 11:35:44 +01:00
Cédric Krier 7e9d69f07f Set state to done when all lines of sale or purchase are cancelled
So when the shipment and invoice state are None and all lines have an 100%
progress, then the order should be considered as done.

Closes #12698
2023-11-01 16:37:23 +01:00
Cédric Krier da3c68d0c0 Add invoice progress on sale and purchase line 2023-11-01 16:34:42 +01:00
Cédric Krier 92a3ddb9ee Set shipment state of sale and purchase to None when all stock moves are cancelled
Closes #12697
2023-11-01 16:32:41 +01:00
Cédric Krier fe921d6406 Support writing None on Shopify identifier
Closes #12760
2023-11-20 12:04:37 +01:00
Cédric Krier 88dc4b90dd Prevent to delete lines and origins of statements not cancelled or in draft
Closes #12678
2023-10-28 14:31:35 +02:00
Cédric Krier 1b5fa9a892 Clear tax identifiers on invoice when they are no more valid
Closes #12748
2023-11-15 11:09:44 +01:00
Cédric Krier 41df1f1d7e Do not expand checkboxes group in party form
This gives more space for the name and code.
2023-11-09 15:11:50 +01:00
Cédric Krier 37e43d6573 Optimize update of customer move when drop shipment is set to waiting
By using One2Many fields, it is possible to avoid custom search and use nested
single loop to update the customer moves.
2023-10-25 18:11:34 +02:00
Cédric Krier 4344f77ac5 Do not convert width and height URL parameters of product image into boolean
Since 8cba7039bc3c there are 2 new arguments w and h.

Closes #12745
2023-11-14 15:07:54 +01:00
Cédric Krier 84d4f09f56 Increase the size of expander
Closes #12733
2023-11-11 19:37:53 +01:00
Cédric Krier adea79e356 Prevent switching row when double click on expander
Closes #12732
2023-11-11 19:34:27 +01:00
Cédric Krier 389d7a1143 Do not execute action on row active if there is no selected id
Closes #12731
2023-11-11 19:31:35 +01:00
Cédric Krier fb034737db Set grab cursor only on draggable-handle class
Closes #12730
2023-11-11 19:27:03 +01:00
Cédric Krier a918b8245d Hide tree-menu column on sao menu
Closes #12729
2023-11-11 19:24:19 +01:00
Cédric Krier 7b454b7284 Set height of street text widget for 3 lines
Closes #12723
2023-11-09 10:07:47 +01:00
Cédric Krier e6d8dbd359 Use default access for ModelSQL based on table_query when method is extended
When the create/write/delete methods are extended, we should assume that
developer has implemented such access.

Closes #12757
2023-11-16 18:55:47 +01:00
Cédric Krier ca253a388c Do not include locale of build system
They should not be needed as tryton uses only its own strings.
2023-11-04 19:52:58 +01:00
Cédric Krier f25c90e284 Do not copy tryton data and plugins in frozen build
Since d94c92c1de67 the library is no more compressed so those package data are
already in the usual place.
2023-11-04 19:51:52 +01:00
Cédric Krier 95fae18a2a Include shared libraries in lib folder for darwin build
cx_Freeze 6.15.10 store included files in Resources folder and make a symlink
in MacOS folder for lib and share.
So we must include shared libraries in the lib folder to be available.
2023-11-04 19:48:03 +01:00
Cédric Krier aba92d0126 Replace etc directory by share for frozen build
cx_Freeze 6.15.10 store included files in Resources folder and make a symlink
in MacOS folder for lib and share.
So we need to store etc content in share to be available.
2023-11-04 19:44:09 +01:00