Commit Graph

2104 Commits

Author SHA1 Message Date
Josse Colpaert 30b5285c9d [IMP] Add composite indexes for stock_move and stock_quant and do manual query for history_ids when splitting quants to avoid unnecessary full table scan on stock_move
[IMP] Improve indexes

[IMP] history_ids opti

[IMP] Clean and document

[IMP] Clean
2015-02-12 10:08:29 +01:00
Josse Colpaert d42af010ce [IMP] Do manual query in search for negative quants to avoid ORM ordering by id and as such always using the wrong index
[IMP] Simplify code

[IMP] Negative quant search should include child locations also

[IMP] Comment

[IMP] Could be child_of also
2015-02-12 10:08:29 +01:00
Josse Colpaert 73899fd2dd [FIX] Store for moving package with inner packages. Further Fixes #5125
[IMP] Search quant instead of underlying packages
2015-02-10 17:46:49 +01:00
Leonardo Pistone 0715a408e8 [FIX] stock: propagate owner from pack to stock operation
Using pack instead of picking for more precise tracking of the owner.
Fixes #5165
2015-02-10 16:53:07 +05:30
Josse Colpaert 05e1b3d5ea [FIX] Simplify destination package and don't write package info on quant when moving entire packages Closes #5125 2015-02-09 14:19:59 +01:00
Nicolas Piganeau 7f8b12619b [FIX] Quants in a pack added to a parent pack remain in their child pack 2015-02-09 14:19:59 +01:00
Josse Colpaert 9b749d4d79 [FIX] Propagate of propagate_from on quants should be done with superuser (courtesy of Jos De Graeve) 2015-01-26 10:12:21 +01:00
qdp-odoo 0cbba7c222 [FIX] stock: display the pack operations in the same order than the stock move (if possible) 2015-01-20 12:02:16 +01:00
Josse Colpaert d849c55599 [FIX] Correct resupply pull rules to have the correct warehouses to propagate / serve so it works with MTO rules also 2015-01-15 17:59:56 +01:00
David Monjoie 87e509ad8c [FIX] stock: product_packaging field domain should look for product template 2015-01-12 16:23:21 +01:00
Somesh Khare 28833f070f [FIX] stock: owner on picking not propagated on quants
The owner of an incoming picking was not propagated to the generated quants
Fixes #4136, opw 619854
2015-01-07 13:57:52 +01:00
Josse Colpaert 6ea0cc41b9 [FIX] Drop shipping invoice correction
When invoicing from dropshipping picking, choose the correct partner.
Also, change the partner on the picking to be the partner of the purchase.
Change the picking report to include the destination partner or the warehouse address on the right.

[IMP] Only put partner_id on move from purchase when really necessary

[FIX] Default value of partner on stock move should be False
2015-01-06 15:21:35 +01:00
Josse Colpaert 52f7fad109 [FIX] Factor should be compared with factor, not id 2014-12-29 11:20:02 +01:00
Josse Colpaert 8a26a88033 [FIX] When all_op_processed False it should still create the links #4149
Fixes #4149
2014-12-11 00:25:23 +01:00
Cedric Snauwaert a834bd208f [FIX] stock: when putting product in pack from barcode interface, should return package_id instead of True 2014-12-09 14:25:19 +01:00
Josse Colpaert 8c8056d95f [IMP] Query should pass through orm and as such the refreshes can be removed in the code, which will go faster as it is done automatically by the new api 2014-12-02 16:38:36 +01:00
Josse Colpaert c255fe3384 [IMP] Add a method half-up for uom conversion in case we want to convert from default UoM to something else + remaining_qty round + default factor on UoM 2014-12-02 15:51:58 +01:00
Josse Colpaert 49c8fc21ba [FIX] When creating a procurement from a move, respect the right UoM conversions 2014-12-02 15:51:58 +01:00
Josse Colpaert bb45636ba7 [IMP] When preparing pack operations, use the smallest UoM of the moves if they are smaller than the default UoM. Otherwise use default UoM.
The same is done when extra moves are generated.  It is going to check if the UoM of the operation is smaller if it has one.

Throw an error when a key can not be found in action_done because there were links on a move
that was not supposed to be done (e.g. 0.5 Dozen when Dozen is rounded at 1)

[IMP] Throw an error when a key can not be found because of UoMs/picking + extra float_compare

[IMP] Integrate remarks qdp
2014-12-02 15:51:58 +01:00
Josse Colpaert 77f8732680 [IMP] Rounding should be done on move immediately to default UoM and quants should be rounded to the default UoM + remaining_qty
[FIX] Remaining qty should each time be in the default UoM of the product

Even with different UoM we want a consistent matching between moves and pack operations.
When calculating the remaining qty on move/pack operation we always start by converting the
qty on the move/operation to the default UoM and afterwards we subtract the links between them
which will also be in the default UoM of the product.
In order to create backorders / extra moves these quantities are used.
2014-12-02 15:51:58 +01:00
Josse Colpaert 244c8ee625 [FIX] Propate propagated_from_id when reconciling negative quants to the quant that loses it
When a negative quant is created but the positive quant counterpart is reconciling
a negative quant that of course also has a positive counterpart, the latter should eventually
let its field propagated_from_id tell that it originated from the very first negative quant as the
second negative quant will have disappeared through reconciliation.
2014-12-02 15:51:57 +01:00
Josse Colpaert cf16632b44 [IMP] No digits_compute on product_qty of move + rounding on qty_available fields + add float_compare 2014-12-02 15:51:57 +01:00
Josse Colpaert 2f5ca4380a Revert "[IMP] Remove unnecessary refresh statements because of new api"
This reverts commit b213438176.
2014-11-17 09:44:10 +01:00
Josse Colpaert b213438176 [IMP] Remove unnecessary refresh statements because of new api 2014-11-17 09:24:06 +01:00
Josse Colpaert 94b768d30f [IMP] Update comments for inventory from import 2014-11-13 11:50:02 +01:00
Josse Colpaert d667d60c45 [IMP] When an inventory has lines already, don't delete them, that way we can import them
[IMP] Put the theoretical quantity when importing an inventory
2014-11-13 11:50:02 +01:00
Josse Colpaert 3dff2877a1 [FIX] Operation does not necessary have product for extra move 2014-10-24 18:21:01 +02:00
Josse Colpaert 383f2b2c43 [IMP] Make sure invoice_state of picking is used when creating extra moves and take price of related move if there is one
When we would copy, it gives problems as it won't be invoiced the correct way on sale, so we provide for a simpler solution.
2014-10-06 09:10:09 +02:00
Josse Colpaert 3dcb020373 [IMP] Change documentation + new action_consume/qty/origin corrections
Simplify the action_consume of the consumption lines after the corrections
by Kevin Wang.  Also the UoMs are revised as the action_consume uses the default UoM
of the product.

We have to avoid circular boms where a child bom should not contain the product that
represents the parent bom, but it is possible for example to use another product of the parent bom in
the child bom.

As the consume line move has no procurement rule, its origin will have no description.  So, when there is
none it will also check the description of the previous move (when passed to procurement for example) This way
the chained moves or purchase order for example will have the MO-number as origin and not nothing.

[IMP] Change assignation

[IMP] UoM changes continuation

[IMP] Make sure we can use 2 times the same product in a BoM

[IMP] Source document for consume lines to procurement
2014-09-30 10:31:33 +02:00
Josse Colpaert c6c622542b [IMP] UoM in mrp + rereserve of partial 2014-09-30 10:31:33 +02:00
Josse Colpaert ac2d50d27a [IMP] Assign all destination moves at once, add packaging 2014-09-22 11:29:39 +02:00
Josse Colpaert 277c870de7 [FIX] Previous move subtleties 2014-09-22 11:29:39 +02:00
Thibault Delavallée 7cad4baa84 [FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys.
Indeed using fromkeys with a list / dict as argument leads to the creation
of shared list / dict. This could create some ugly side effects when
used in loops. This commit fixes or cleans this kind of statement to avoid
unwanted side effects.
2014-09-18 11:18:30 +02:00
Josse Colpaert 066af964bf [IMP] Purchase on incoming shipments with services added 2014-09-17 21:41:42 +02:00
Josse Colpaert 636294e1ef [IMP] Scheduled time, weights, remove routing on lines 2014-09-17 21:41:41 +02:00
Josse Colpaert ae2eb43e30 [IMP] Implement comments on pull request 2014-09-12 13:49:42 +02:00
Josse Colpaert cd462b7c8d [IMP] Invoice_state on move and search custom picking type 2014-09-12 13:49:42 +02:00
Josse Colpaert 1512534320 [FIX] When purchase, do not overwrite price 2014-09-12 13:49:42 +02:00
Josse Colpaert 246c425226 [WIP] Pricelist of purchase is not in stock only and remove product_manufacturer module in view + manufacturer 2014-09-12 13:49:42 +02:00
Josse Colpaert a0d855ffad [IMP] Inter-company pricing: put price on move when only partner and not connected to sale or purchase + invoice_state inverse function 2014-09-12 13:49:41 +02:00
Josse Colpaert 064b1a3a40 [IMP] Old hack where uom_id had to be empty in on_change
[IMP] Add purchase order origin on picking

[WIP] Picking type on move for location on routing

[IMP] Provide extra function for custom buttons on picking

[IMP] Action assign optim

[IMP] Push apply should take invoice_state into account.  Propagation of cancel of stock moves should depend on procurement rule
2014-09-12 13:49:41 +02:00
Martin Trigaux d6fd96d0e9 [FIX] stock: multicompany warehouse creation
When creating a new warehouse, the linked locations should have the same company as the warehouse.
The company_id field is required on warehouse (not necessary in vals as could be added by default values) while it is not for stock.location (meaning global location, also filled with default value).
2014-09-11 13:31:16 +02:00
Josse Colpaert 4a0b6f6c41 [IMP] Add possibity to add rereserve button and optimize action assign 2014-09-10 11:23:48 +02:00
Josse Colpaert 30a64c1d32 Merge pull request #2178 from odoo-dev/8.0-wmsmultiop-jco
[IMP] Courtesy of kevin3274 issue 1258: orderpoint should have float mul...
2014-09-04 10:32:48 +02:00
Josse Colpaert 8502d3854c [IMP] Courtesy of kevin3274 issue 1258: orderpoint should have float multiple instead of integer 2014-09-03 22:25:00 +02:00
Josse Colpaert f6650f0da7 [IMP] Clean 2014-09-03 19:18:17 +02:00
Josse Colpaert 9b34358196 [IMP] Adapt mrp workflow and moves + Differ between Bose speakers and Custom Computer 2014-09-03 19:18:17 +02:00
Josse Colpaert 924ebcf04b [IMP] No propagation when destination move is done/cancel 2014-08-25 10:07:41 +02:00
Josse Colpaert 201f1c323f [IMP] Use correct field for showing red lines for late pickings in tree view 2014-08-21 17:31:25 +02:00
Josse Colpaert 5405883d5d [IMP] Location of extra moves should be matched 2014-08-21 17:23:54 +02:00