Commit Graph
123 Commits
Author SHA1 Message Date
Cédric Krier da8f2d7c2d Check outgoing product quantities of customer shipment 2023-08-24 09:36:16 +02:00
Cédric Krier 742725d333 Do not prevent to pack customer shipment with cancelled inventory moves 2023-08-23 18:18:20 +02:00
Cédric Krier 9b2564145e Check inventory quantity of supplier shipment
Closes #4545
2023-08-23 19:04:28 +02:00
Cédric Krier 5de4f639db Store original planned date of shipments to compute delay 2023-09-10 21:27:51 +02:00
Cédric Krier a20b805f16 Store original planned date of stock move and compute delay 2023-09-10 21:28:51 +02:00
Cédric Krier b0ea6003e9 Fallback to original copied value of assigned stock move
The default values used by 9d4aff3c72e2 to group copy calls may contains keys
that are not in the modified values because of the union.
In order to keep the copy call grouped as much, we just need to fallback to
the original data value for the fields that are not modified.

Closes #12290
2023-09-17 19:55:50 +02:00
Cédric Krier 2ed89ae14c Rename uom into unit in customer return restocking list report
Since 7129f417a22c uom on stock move is renamed into unit.
2023-09-19 10:15:03 +02:00
Cédric Krier 2df68915d8 Remove quantity UoM digits on stock location 2023-08-20 12:49:38 +02:00
Cédric Krier a4cb3f9f61 Normalize Unit of Measure labels
For short label, we only use UoM with an help text showing with capital letter
the meaning of UoM.
2023-08-20 12:17:27 +02:00
Cédric Krier cb08557fad Rename Uom to Unit for move and inventory
Closes #2221
2023-08-22 13:18:33 +02:00
Cédric Krier 8d7e1b6b83 Do not try to duplicate moves for transit if internal shipment has no move
Closes #12541
2023-09-04 16:47:49 +02:00
Cédric Krier 7f9550e9ba Return 0 as default recomputed fixed cost price
Closes #12535
2023-08-29 14:24:58 +02:00
Cédric Krier 523bcd4011 Use module name to build path for readthedocs requirements 2023-09-03 12:03:49 +02:00
Cédric Krier 6a06579e13 Use Sphinx book theme for documentation 2023-09-01 09:44:09 +02:00
Cédric Krier 98eeb1727a Remove unused _location_amount from customer shipment
The method was introduced by a3aa9d985589 for the assign_try method but it is
no more used.
2023-08-20 01:18:11 +02:00
Cédric Krier 855a0aaeab Update origin of outgoing moves for internal shipment
When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.

Closes #12272
2023-08-25 18:08:17 +02:00
Maxime Richez f082344b66 Update origin of inventory moves for customer shipment
When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.

Closes #12272
2023-08-25 16:34:06 +02:00
Cédric Krier b32eeae46a Store synchronized moves of customer shipment even when quantity is not updated
ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.

Closes #12503
2023-08-18 14:47:39 +02:00
Cédric Krier ad0b2411c8 Order number fields first by length
This is more natural for incremental field.
2023-08-03 15:53:18 +02:00
Cédric Krier 301cb13dca Evaluate also parent shipment to make readonly dates and buttons of stock move
Closes #12404
2023-07-23 21:07:34 +02:00
Cédric Krier adc26533da Add .readthedocs.yaml configuration [skip ci]
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/

Closes #12344
2023-08-06 11:06:08 +02:00
Cédric Krier 7b9a61c624 Add product cost price to move
It is used to store the cost price of the product when the cost price of the
move is not the same.
2023-06-16 13:43:09 +02:00
Cédric Krier c1d4a667bd Do not try to assign shipments that do not need to be assigned
Closes #12311
2023-06-07 16:53:24 +02:00
Cédric Krier abf3167bcb Allow to use storage location as input or output location
When the input or output location is the same as the storage location, it can
be of type view.
2023-06-05 18:55:41 +02:00
Cédric Krier b2abd35dca Allow to store view location as warehouse storage on shipments
It is allowed to have a view location as storage for a warehouse so the
shipment should support it.

Closes #12307
2023-06-05 18:20:44 +02:00
Cédric Krier 74fb2982d6 Remove computed unit digits fields for stock quantity
The unit field can be used directly as digits.
2023-06-12 16:23:25 +02:00
Maxime Richez df3aca4022 Add location and date to inventory name
Closes #12188
2023-06-09 09:15:31 +02:00
Maxime Richez b4ab5413ac Disable unaccented search for inventory number 2023-06-07 15:37:17 +02:00
Cédric Krier d0b24968c8 Delete delivered to warehouse when party is deleted 2023-06-02 17:46:11 +02:00
Cédric Krier 08639d8b9b Add company to context model of stock quantity models
Closes #12268
2023-05-30 13:05:34 +02:00
Cédric Krier b4e809df2a Instantiate transaction only once when computing stock quantity 2023-05-30 13:03:55 +02:00
Cédric Krier 0c9269d6b2 Do not compute stock quantity for user without company
User without company should not see the stock quantity of all the companies
except for root user (as it is used to check for empty location).
2023-05-30 13:02:19 +02:00
Cédric Krier 59759f9b87 Do not repeat "Location" in the string of location type
This is redundant and is awkward when typing a filter by type on stock move
like "From Location.Location Type".
2023-05-10 08:51:23 +02:00
Cédric Krier 8da59ae521 Use sum_tree for stock reporting margin 2023-05-11 16:35:03 +02:00
Sergi Almacellas Abellana c594bc67df Manage empty stock end date values on location quantities
Closes #12289
2023-05-25 15:55:40 +02:00
Cédric Krier 399b443831 Remove timezone info after converting datetime in UTC
The datetime are always in UTC without tzinfo so they can be compared with the
data from the database.

Closes #12262
2023-05-10 10:07:34 +02:00
Cédric Krier 5335a2022d Convert sum attribute into boolean 2023-05-06 14:25:22 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier 74540107b1 Handle evaluation error in get_cost_price of cost price revision
The method can be called with unsaved record so the check has not yet been
called.

Closes #12216
2023-04-13 16:40:09 +02:00
Cédric Krier 1a11e103bf Increase version number 2023-05-01 14:11:22 +02:00
Cédric Krier 1901135502 Prepare release 6.8.0 2023-05-01 13:19:11 +02:00
Cédric Krier 3a15e586ca Delete on cascade locations
Closes #3689
2023-04-22 18:43:45 +02:00
Cédric Krier 84a2b5e271 Update translations 2023-04-29 10:07:40 +02:00
Cédric Krier b0b173f84d Convert product cost datetime in UTC from the company timezone
Closes #12026
2023-04-11 00:30:00 +02:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier b719d8aed1 Add rstcheck 2023-03-15 16:33:19 +01:00
Cédric Krier ac4d4a7fbb Use multivalue API to access product multivalue fields
Closes #7474
2023-03-19 19:57:30 +01:00
Cédric Krier 6be816d947 Set order for stock moves on shipments
On shipment a good default order is by target location and product, but we add
the id to have deterministic result and remove the target location if by
design it is always the same.
On report with sequence on location, the order is fixed by the sequence of the
location.

Closes #7819
2023-02-22 16:58:23 +01:00
Cédric Krier d1f1d0b023 Add account_stock_eu module for intrastat report
Closes #11837
2023-03-12 22:21:54 +01:00
Cédric Krier aa941c80a9 Group copy calls when trying to assign stock moves
Close #9802
2023-02-24 09:02:34 +01:00