Commit Graph
36 Commits
Author SHA1 Message Date
Cédric Krier 1f0b754785 Fill production moves with all default values
When used for on_change, we need to fill all the default values as the client
does create new record with default values.

Closes #12575
2024-12-26 16:12:10 +01:00
Sergi Almacellas Abellana 26abd6635d Improve labels input and output materials of production and BOM 2024-12-14 12:08:49 +01:00
Cédric Krier f358b1fc1c Set default state when production moves from BOM
The visibility of some fields depend on the state so it is better to set it.
2024-11-13 11:14:35 +01:00
Cédric Krier 70e1b5bfad Fill unit price required when creating production moves from BOM
Since 23a3a9ed13d7 the unit price is reset to None if the unit price is not
required.
So the client must known that the unit price is required to keep the value.

Closes #13674
2024-11-13 11:10:05 +01:00
Udo Spallek 8b252472c4 Replace usage of docstring of Model by __string__ attribute
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier 7fafdf6af8 Set planned date of moves for all productions at once
Closes #8873
2024-10-23 19:30:17 +02:00
Cédric Krier a3568f6bb0 Do not update planned date of production moves if it is not needed 2024-10-23 19:34:26 +02:00
Cédric Krier 8f570007f0 Set planned date when creating production moves 2024-10-23 19:27:28 +02:00
Cédric Krier afb909aa41 Fix missing target field in operand of domain 2024-10-28 21:23:57 +01:00
Maxime Richez dcef019d80 Allow cancellation of done shipments and productions
Closes #13489
2024-10-13 15:50:49 +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 3ee4a0febd Group numbering productions 2024-08-25 12:15:56 +02:00
Cédric Krier a2dfc4455b Refine index definition
- Set low and high cardinality to index usage
- Use Range usage for numerical expression instead of Equality
2024-07-27 18:36:14 +02:00
Cédric Krier 0c5ac00c69 Replace _explode_move_values calls by _move call of production 2024-03-16 21:07:22 +01:00
Cédric Krier fe4cec2189 Set currency and unit price of production move when unit price is required
Since 0b2e50445415 the unit price is always set when production is done, so
the unit price of output moves is not important before.
2024-03-16 21:03:13 +01:00
Cédric Krier 8666e82b80 Rename 'done' buttons to 'do' and label them as "Complete"
Closes #13039
2024-02-17 17:50:49 +01:00
Dimitrios Josef Moustos a327edd0a5 Fill production number only in waiting state
Closes #12904
2024-02-19 22:21:38 +01:00
Cédric Krier d3e086aace Order cancelled document without number last
Closes #12899
2024-01-05 15:33:57 +01:00
Cédric Krier aa20b2de71 Update planned date of assigned move from shipment and production
Closes #12867
2023-12-23 02:32:43 +01: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 cd9dcfd84c Rename Uom to Unit for bill of material
Closes #2221
2023-08-20 01:39:36 +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 b494a58475 Rename Uom to Unit for production
Closes #2221
2023-08-19 15:22:30 +02:00
Cédric Krier 0dbfe051e8 Copy pattern of production lead time before modification
We should not modify the caller mutable structure.
2023-07-22 18:53:50 +02:00
Adrià Tarroja Caubet cb7970a350 Reschedule planned date for late productions
Closes #11494
2023-01-18 17:34:20 +01:00
Sergi Almacellas Abellana cd81e8e793 Use on_change method to set production's planned_start_date 2023-07-06 10:07:31 +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 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 721ae8dc69 Rename product lead times to production lead times
#12133
2023-03-13 22:53:44 +01:00
Òscar Queraltó Aguilera 8e305c7dc3 Ignore cancelled moves to calculate productions cost
Closes #12093
2023-02-24 12:09:39 +00:00
Cédric Krier ee5cb27962 Create lot for output product when needed
When the output product has a sequence and a lot is required, we create a new
lot to set on the output move.

Closes #11923
2023-01-24 10:53:23 +01:00
Cédric Krier 69a1be6404 Assign all possible shipments and productions when trying
If assign_try fails to assign all the moves, we check if all the moves of each
shipment and production are assigned and then assign them.
Also we remove the boolean return which makes no more sense.

Closes #7006
2023-01-14 15:41:26 +01:00
Cédric Krier ec5f7b8890 Create move for produced product without bom as output
Closes #12024
2023-01-19 11:55:09 +01:00
Cédric Krier 1df14f932b Factorize explode bom to use depends
Closes #11916
2022-12-26 13:22:06 +01:00
Cédric Krier eae906615b Prepare migration to monorepo 2022-12-16 17:29:25 +01:00