Commit Graph
100 Commits
Author SHA1 Message Date
Cédric Krier 3f11b8f6b5 Delete inventory moves when shipment is reset to draft
Closes #12826
2023-12-14 10:28:12 +01:00
Cédric Krier 8d9156df84 Add ondelete RESTRICT on Many2One of party ValueMixin
Closes #12809
2023-12-07 23:24:37 +01:00
Cédric Krier fb1f515011 Add location code to record name of location
Closes #12804
2023-12-06 16:42:24 +01:00
Cédric Krier 80fac3b031 Add confirmation when cancelling shipments
Closes #9667
2023-12-02 18:45:20 +01:00
Cédric Krier 86c2350271 Add default location property to pick product as fallback 2023-11-21 10:57:38 +01:00
Cédric Krier 0d625d4010 Remove usage of set_user to skip check access
Since ce8d7a19766a the access rule are enforced only if check access is set.
2023-12-01 21:14:37 +01:00
Cédric Krier 7fb5a0c6b8 Do not compute internal quantity for stock move created without product nor unit
Closes #12716
2023-11-06 18:02:23 +01:00
Cédric Krier 38da6a0451 Increase version number 2023-10-30 18:51:13 +01:00
Cédric Krier 65f477f731 Prepare release 7.0.0 2023-10-30 18:17:32 +01:00
Cédric Krier c577fad900 Update translations [skip ci] 2023-10-28 14:15:23 +02:00
Cédric Krier 420e0a48d6 Add pairwise_longest tools 2023-10-18 23:11:07 +02:00
Cédric Krier 7e2c1f8cbd Do not raise StopIteration when calling pairwise with empty iterable
Closes #12652
2023-10-18 18:28:04 +02:00
Cédric Krier 4e010a988f Add support for Python 3.12 2023-10-22 19:40:55 +02:00
Cédric Krier 2d6c34db34 Always fill product and template of cost price revision
If an error is raised when computing the new cost price, the management tries
to display the product name. So the product and the template must be set
explicitly because the revision is not yet saved in the database.

Closes #12616
2023-10-05 13:06:22 +02:00
Cédric Krier 639ead79a6 Add number and reference fields to ShipmentMixin 2023-10-07 17:17:32 +02:00
Sergi Almacellas Abellana a22de3c794 Make shipment reference not readonly
Closes #11879
2023-05-17 09:04:54 +02:00
Maxime Richez ea052f9930 Set inventory moves readonly for picked customer shipment
Closes #12613
2023-10-05 13:33:29 +02:00
Maxime Richez 76921bfccc Add menu entry to list warehouses
Closes #12608
2023-10-09 12:43:39 +02:00
Cédric Krier a30ff416a2 Remove group access on action window
Since d41d48d68cdf the read access to the target model of action window is
checked.
2023-09-20 09:48:14 +02:00
Cédric Krier 96a24bcaf6 Remove extra button group access
Since ab05d05bb811 there is no need to have access defined on button if they
are the same as the write access on the model.

Closes #12578
2023-09-20 09:45:20 +02:00
Cédric Krier 555102f942 Display shipment state on internal shipment report
Closes #12501
2023-08-26 12:54:44 +02:00
Cédric Krier 8eb0fb4ecf Display shipment state on supplier restocking list
Closes #12501
2023-10-03 13:01:59 +02:00
Cédric Krier bf84ee262b Display shipment state on customer return restocking list
Closes #12501
2023-08-26 12:53:42 +02:00
Cédric Krier 65e1180d34 Display shipment state on picking list
Closes #12501
2023-08-26 12:52:53 +02:00
Cédric Krier 7cc2b40942 Display shipment state and warehouse country on delivery note
Closes #12501
Closes #5224
2023-08-26 12:51:51 +02:00
Cédric Krier f4f4a9cec1 Check outgoing product quantities for internal shipment 2023-08-23 19:45:33 +02:00
Cédric Krier 85712761dc Check inventory product quantities for customer return shipment 2023-08-23 19:37:13 +02:00
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