Commit Graph
161 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana ceefdeb72f Manage staging moves on shipment workflow
Staging moves are automatically assigned when purchased so
we should remove them when packing a shipment as they are
not part of the shipment.

We also skip moves with zero quantity because they will
always succeed.

issue9448
review313951002
2021-03-06 19:19:53 +01:00
Cédric Krier b8a8b9ebf0 Add test on context of company multivalue target fields
issue10067
review333851026
2021-03-05 15:49:20 +01:00
Sergi Almacellas Abellana e297db950c Add header grouping on shipment report
issue10133
review343751002
2021-02-26 09:15:14 +01:00
Cédric Krier ccfec0345d Default to ordering documents by date
issue10079
review339831002
2021-02-25 21:13:56 +01:00
Sergi Almacellas Abellana 8307d6511f Make outgoing moves editable for same storage and output zone
issue9960
review347401002
2021-02-15 13:59:13 +01:00
Dimitrios Josef Moustos e663496637 Add delivery usage to contact mechanism
issue9991
review320581002
2021-02-13 22:10:53 +01:00
Maxime Richez 6bc5f2dfa3 Delete outgoing_moves with zero quantity on packing customer shipment
issue9737
review316291002
2020-10-27 21:13:58 +01:00
Maxime Richez da396b4223 Do not assign on pick and do not synchronize on pack
Assigning on pick prevents to edit the outgoing moves.
Synchronize on pack could undo user modification of outgoing moves.

issue9725
review304481002
2020-10-21 23:48:57 +02:00
Maxime Richez c09fb12c43 Add picked step to customer shipment workflow
issue9634
review329071002
2020-10-12 23:19:54 +02:00
Sergi Almacellas Abellana 7eca5377da Add cron task to reschedule past shipments
issue9264
review325191002
2020-10-12 19:20:33 +02:00
Sergi Almacellas Abellana 95b4dae623 Allow lost and found on inventory moves
issue9156
review323431002
2020-10-11 23:46:10 +02:00
Cédric Krier f6eb3790f3 Use a single assign wizard
issue9422
review299961011
2020-07-25 08:19:31 +02:00
Cédric Krier 671e1b2599 Enforce unit price on drop and customer return moves
Those values are interesting information for reporting or to compare with the
cost price.

issue9402
review327421002
2020-07-04 23:49:25 +02:00
Sergi Almacellas Abellana b0cd64e7ca Set moves planned dates when updating internal shipment planned date
issue9334
review299681002
2020-06-17 14:09:55 +02:00
David Harper 51b4786235 Rename move state from cancel to cancelled
issue8927
review297851002
2020-06-06 10:30:11 +01:00
David Harper 1bcd282c0d Rename shipment states from cancel to cancelled
issue8927
review301711002
2020-06-06 10:17:30 +01:00
Maxime Richez 20f9cf5dc3 Delete inventory moves before receiving supplier shipments
issue9315
review315451002
2020-05-14 23:45:16 +02:00
Sergi Almacellas Abellana fba865726e Fix create/write antipattern in loop on shipment
issue9208
review278961002
2020-04-12 09:03:25 +02:00
Cédric Krier 186f5d9658 Add employee on document for some states
issue8969
review276621002
2020-04-10 18:53:44 +02:00
Cédric Krier 80f08743b2 Filter empty date when computing maximum planned date
and properly call _get_move_planned_date.

issue9141
review303061002
2020-03-17 20:06:43 +01:00
Cédric Krier 3260b80cd8 Fill planned date for inventory move
Shipments that create inventory moves should fill a planned date for them as we
have a method to compute it. The probability is high to inventory the product
once received.

issue9043
review272871002
2020-03-06 23:53:19 +01:00
Cédric Krier 5c12d36b7d Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:54 +01:00
Cédric Krier 1babe42799 Add visual context on tree view
issue8562
review261951002
2019-09-20 11:47:15 +02:00
Cédric Krier 46e3596d95 Set correct date on internal shipment moves
The outgoing move must have the planned start date and the incoming move must
have the start date.

issue8655
review254291002
2019-09-16 23:58:02 +02:00
Thierry Bruyere 40a403c77b Add a global method to set default warehouse
issue8396
review277371003
2019-09-07 23:13:33 +02:00
Cédric Krier 2429ddadea Improve moves synchronisation on shipments
By using the origin as synchronisation key, the code is simplified but also it
allows to follow when products are changed.
The same design is applied to the internal shipment which allows to synchronise
also the lots.

issue8363
review261811002
2019-08-18 19:22:43 +02:00
Cédric Krier 24238e92fb Use only incoming or outgoing moves for origins
Since issue8253, other moves may have another stock move as origin which is
not interesting as shipment origins.
2019-07-09 15:29:12 +02:00
Cédric Krier 73e16504dc Allow move as move's origin
issue8253
review269251028
2019-07-08 17:18:14 +02:00
Cédric Krier a75b725636 Unify _get_inventory_move on shipment
Define them as instance method to provide more flexibility.

issue8255
review287251002
2019-04-11 18:54:55 +02:00
Cédric Krier a67d1952a7 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier d5ac1e8337 Fix shipment report when locations are the same or transit location is used
The inventory moves is empty when the locations of the shipment are the same.
The other moves field must be used.
When a transit location is used for internal shipment, the moves field to use
depend of the state. If it is already shipped then the incoming moves is used
to know where to store products and if it is not yet shipped than the outgoing
moves is used to pick the products.

issue7881
review50641002
2018-12-17 23:08:09 +01:00
David Harper 93f3022413 Add help text
issue6401
review34861002
2018-12-04 12:25:45 +01:00
Cédric Krier 194cf8f97b Use int and Decimal instead of lambda
issue7816
review74401002
2018-10-31 18:17:35 +01:00
Cédric Krier 1ce22ad7c1 Use tryton-back icon for draft transition on waiting shipment 2018-10-26 22:29:18 +02:00
Cédric Krier f7414a8674 Replace self by cls in classmethod
issue7630
review74341002
2018-09-19 00:15:59 +02:00
Cédric Krier a04143efc6 Improve ModelStorage.copy
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default

issue5576
issue7648
review72291002
2018-09-01 01:02:04 +02:00
Cédric Krier 04690f6a59 Use material design icons
issue474
review60291002
2018-08-19 20:02:58 +02:00
Cédric Krier 31f96f8c38 Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier 973dd92330 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier 5061618d5b Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:55 +02:00
Cédric Krier 42595dcce0 Manage same input and storage location in customer return shipment
issue7401
review51261002
2018-05-10 20:19:23 +02:00
Cédric Krier 3ddac8bf77 Replace "Shipment Out" by "Customer Shipment"
issue7346
2018-04-14 18:02:56 +02:00
Sergi Almacellas Abellana 70cd9d81c2 Manage same input and storage location
In this case there is no need to create inventory moves

issue6892
review42801002
2018-03-24 12:01:58 +01:00
Cédric Krier d7bc616a43 Always raise exception in table handler
issue7175
review40161002
2018-03-15 00:46:59 +01:00
Cédric Krier a289e86cc9 Assign supplier return shipment using children when location is a view
But also allow external customization.

issue7158
review41111002
2018-03-15 00:30:15 +01:00
Sergi Almacellas Abellana 94e9d784fb Add depends on Button
issue6919
review40811002
2018-02-19 11:41:53 +01:00
Cédric Krier 6a655d5a58 Limit move locations 'child_of' constraints to specific shipment states
In order to allow to move locations, the constraint must be limited to states
where the move can be still be modified.

issue6577
review35081002
2017-07-26 23:57:39 +02:00
Cédric Krier 265b8952ee Add missing button decorator to ShipmentInternal.ship
issue6582
review42441002
2017-06-27 12:36:18 +02:00
Cédric Krier fbdfb3ff39 Assign only move that requires assignation
issue6436
review32241002
2017-06-24 10:34:21 +02:00
Cédric Krier 2cab496862 Fix typo in ShipmentIn number label
issue6437
review30251002
2017-04-14 11:27:30 +02:00