Commit Graph
18 Commits
Author SHA1 Message Date
Cédric Krier e18d53e99c Test if origin id is greater or equals to 0 before accessing the target record
Closes #13498
(grafted from 497490225779fc8dc210c9cee997cd5ce4b4381e)

--HG--
branch : 7.0
2024-09-09 12:46:16 +02:00
Cédric Krier 11fa3768bf Use today as planned date for assigned move
The inclusion of the assigned move in the computation must be coherent between
quantity and delta.

Closes #12914
(grafted from 0504da7e1abba6df691519b60c4fa8ac3a54e40a)

--HG--
branch : 7.0
2024-01-09 19:42:05 +01:00
Cédric Krier 409a2cec2f Allow assigned move of 0 quantity using view location and delete them
This is needed to be able to ignore assignation of move from a view location,
and to delete them before all moves are set to done.

Closes #12870
(grafted from 5ec6b6d3cd8cfffdb0f91ca350bc1ba65b5a5d8f)

--HG--
branch : 7.0
2023-12-26 16:00:06 +01:00
Cédric Krier 9f59c5ebf6 Do not compute internal quantity for stock move created without product nor unit
Closes #12716
(grafted from 5412054f7f7ed333a5e8f56fa18090e1727ae7c8)

--HG--
branch : 7.0
2023-11-06 18:02:23 +01: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 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 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 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 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 b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02: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 aa941c80a9 Group copy calls when trying to assign stock moves
Close #9802
2023-02-24 09:02:34 +01:00
Cédric Krier 567b504d4c Add stock invert context to compute quantity 2023-02-11 12:36:49 +01:00
Cédric Krier b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Cédric Krier 4de9b6480e Prepare migration to monorepo 2022-12-16 15:33:21 +01:00