Commit Graph
58615 Commits
Author SHA1 Message Date
Cédric Krier 68d093189a Consider as loaded the fields marked as modified
As the load method skips setting modified fields, so they are not and will
never be marked as loaded.
2024-10-02 12:07:48 +02:00
Cédric Krier 6f372e2b92 Check load of only fields being validated
Closes #13556
2024-10-02 12:05:16 +02:00
Cédric Krier db99bb6801 Do not copy origin of stock moves in each shipment
The ShipmentMixin is also used by the production which does not have a moves
field.

Closes #13555
2024-10-01 18:32:18 +02:00
Cédric Krier a87be1db6a Do not return empty for planned deliver date of purchase line when it is in the past
Closes #13298
2024-09-07 14:00:50 +02:00
Cédric Krier 48568f7856 Do not return today planned shipping date of sale line when in the past
Closes #13298
2024-09-07 13:59:57 +02:00
Nicolas Évrard 6907ea5b7b Add warning when using implicit rec_name target for relational domain 2024-09-07 00:39:55 +02:00
Nicolas Évrard 618f20d453 Return the display promise when creating a new record from the screen
This is necessary because otherwise it could result in concurrent update of the
models of the models used by the underlying widgets.

Closes #13545
2024-09-24 16:37:50 +02:00
Cédric Krier 514495cf1e Rename "Product Quantities By Warehouse" into "Stock Quantities By Warehouse" 2024-09-14 13:07:43 +02:00
Cédric Krier 26f1f8fda6 Remove "Lots By Warehouse" relate
It is not very useful and the same view can be opened from the stock location
relate.
2024-09-14 13:00:53 +02:00
Cédric Krier ca6bb39948 Rename "Locations * Quantity" into "Stock Locations *" 2024-09-14 12:51:16 +02:00
Cédric Krier 62e2e4f62e Document viewing stock levels of lots 2024-09-14 12:39:28 +02:00
Cédric Krier 916a3ef855 Rename "Lots by Locations" into "Lots"
As the locations are added to the tab name, there is no need to specify that it
is "by Locations".
2024-09-14 12:39:07 +02:00
Cédric Krier a65c9879dd Rename "Products by Locations" into "Products"
As the locations are added to the tab name, there is no need to specify that it
is "by Locations".
2024-09-14 12:38:24 +02:00
Cédric Krier d9b275e181 Move "Open Lines" button to product price list module
Closes #13527
2024-09-18 18:14:58 +02:00
Cédric Krier e54322910c Filter shipment moves before sorting them in the getters of Function field
This way the filtering can benefit of the cache alignent before the order of
the list is modified.

Closes #13526
2024-09-18 13:51:16 +02:00
Cédric Krier 1f0afd17a7 Iterate only once to sort records by order clauses
Instead of sorting the list multiple times applying order clause one by one in
reverse order, the list is sorted only once using a key composed of all the
order clauses.
An operator is used to reverse the comparison instead of using the reverse
keyword argument of sorted.

Closes #13525
2024-09-18 13:46:10 +02:00
Cédric Krier e0be630f42 Do not export selected records by default when there is no record selected 2024-09-17 18:17:58 +02:00
Cédric Krier 15c468a860 Use dedicated buttons for CSV import and export
Closes #10115
2024-09-17 17:24:36 +02:00
Cédric Krier 4e37fb2039 Keep CSV export window opened
Closes #13521
2024-09-17 16:50:50 +02:00
Cédric Krier dba33cbb64 Prevent modification of the stock lot of stock move done or cancelled
Closes #13520
2024-09-17 15:49:46 +02:00
Cédric Krier 37022fff21 Prevent deletion of stock lot used for stock move
Closes #13519
2024-09-17 15:48:01 +02:00
Cédric Krier 67daf2085b Use correct binary operator for PYSON Greater and Less
Opposite binary operators were commit in b71b2417c4bc.
2024-09-28 16:51:26 +02:00
Cédric Krier 2e9117f6c4 Synchronise PYSON code to represent params
Different versions of the code were commit in e2bb5ac20d22
2024-09-28 16:50:07 +02:00
Cédric Krier c0077445d0 Check that rec_name is searchable on searchable model 2024-09-10 15:40:19 +02:00
Cédric Krier 16136ab2af Add searcher for name of sale reporting per region
Closes #13466
2024-09-10 15:38:44 +02:00
Nicolas Évrard afd48ab128 Add method to the backend to estimate number of rows
Such that each backend can rely on its own statistics.

Closes #13118
2024-09-28 18:02:31 +02:00
Cédric Krier 68ae551752 Add test for fmany2one field 2024-09-19 13:34:15 +02:00
Cédric Krier f147c94118 Fill the source value of fmany2one in create and write methods
We can not rely on the Function field setter to set the value because it may be
too late if the source field is required and for composite key, a partial
update may not be a valid foreign key.

Closes #13522
2024-09-19 13:31:59 +02:00
Cédric Krier 513043dd6a Always validate record synchronously
Closes #13497
2024-09-06 17:47:00 +02:00
Sergi Almacellas Abellana a87099396c Clear employee fields when duplicating invoices
Closes #13471
2024-09-28 15:19:35 +02:00
Sergi Almacellas Abellana da4f361d23 Show complete button on shipped shipments
Closes #13455
2024-08-21 10:32:12 +02:00
Sergi Almacellas Abellana e411698df0 Clear packages when copying shipments
Closes #13454
2024-09-28 14:24:03 +02:00
Adrià Tarroja Caubet 68d4cc4cc7 Save party configuration after replacing vat identifiers
Closes #13387
2024-07-03 14:14:49 +02:00
Cédric Krier 8d9da767bb Do not try to assign currency id to the invoice if the currency has not be found
Closes #13538
2024-09-20 15:52:43 +02:00
Cédric Krier 6bda7c336f Do not format discount with currency if there is no currency
Closes #13531
2024-09-19 19:30:06 +02:00
Cédric Krier 8523552c12 Test invoice of invoice line before using it to compute remaining quantity
Closes #13534
2024-09-19 19:14:31 +02:00
Nicolas Évrard 5cbedc1afd Add tests on PYSON default value 2024-09-27 15:30:47 +02:00
Nicolas Évrard 4a8300f0b2 Handle PYSON default value in Eval for repr
Closes #13533
2024-09-19 16:16:20 +02:00
Sergi Almacellas Abellana 38dbf23c3d Remove unexisting model keyword from msg_size_validation catalan translation
Closes #13516
2024-09-17 10:42:45 +02:00
Cédric Krier 6e798f98fc Test if origin id is greater or equals to 0 before accessing the target record
Closes #13498
2024-09-09 12:46:16 +02:00
Cédric Krier 04f378c503 Add example for connection to PostgreSQL with OS user name 2024-09-24 10:09:46 +02:00
Cédric Krier 3d8fcb97bd Start PostgreSQL URI path with a '/'
Since https://github.com/python/cpython/issues/76960 if the path of the URI
does not start with a '/', the netloc is removed.

Closes #13543
2024-09-24 10:19:57 +02:00
Cédric Krier 19153c0ab5 Do not copy origin of stock inputs and outputs when duplicate productions 2024-09-06 13:32:08 +02:00
Cédric Krier eeb9ba5650 Do not copy origin of stock moves when duplicate shipments
Closes #13496
2024-09-06 13:31:44 +02:00
Cédric Krier 899d9db2ee Format quantities of over shipment warning message with the unit 2024-09-06 10:09:14 +02:00
Cédric Krier 52a03f03df Do not format quantities with digits in over shipment warning message
The rounding, due to the number of digits, may display an confusing message
for which both quantities are the same.

Closes #13495
2024-09-06 10:08:09 +02:00
Cédric Krier 60683dc14d Round up the measurements for package shipping APIs
Closes #13494
2024-09-05 13:47:53 +02:00
Maxime Richez c7177facfe Do not reset non-existent fields on requisition in draft state
Closes #13532
2024-09-19 13:55:32 +02:00
Cédric Krier 62b079225f Remove $ before series in formatted document URL without base URL 2024-09-03 17:55:42 +02:00
Cédric Krier 858757c5d7 Update scenario for the merge of warehouse_location and storage_location in order point
fb59b06d251b merged both fields into a single location field.

#13476
2024-09-24 18:41:47 +02:00