summaryrefslogtreecommitdiff
path: root/addons/purchase/tests/test_create_picking.py
AgeCommit message (Collapse)Author
2018-05-23[MOV] purchase: move file in purchase_stockjem-odoo
2018-05-17[IMP] stock: remove force_assign methodNirali Sapra
This commit remove force_assign method in every tests of point_of_sale, purchase, sale_mrp, sale_stock, stock and stock_account . This method is not longer used since V11. This commit is related to task ID 59417
2018-03-09[MERGE] forward port branch saas-11.2 up to 42659dc70c2Christophe Simonis
2018-03-02[FIX] stock: merge move with a mix RFQ/POArnold Moyaux
Use case to reproduce: - Create a Product MTO that should be buy - Create a SO with this product and confirm it - Confirm the RFQ - Increase the ordered quantity on the SO - Confirm the new RFQ - Receive product from the 2 PO -> Unable to reserve the quantity on the destination moves It happens because the link between the reception move from the second PO and the delivery move is missing. Update the quantity on the SO will create a new move with the missing quantity that will generate the new RFQ then this move is merged in the main move. However the reception move is only created when the RFQ is confirm and the move_dest_ids is stored on the purchase order line during this time. Thus merge moves will unlink the new move with its reference on the purchase order line and the link is lost. This commit do not merge move that have different RFQ/PO in order to avoid losing MTO information.
2018-02-26[IMP] product: rename product.uom into uom.uomXavierDo
Also rename product.uom.categ into uom.category to give it a decent name.
2018-02-19[FIX] purchase, sale_stock: propagation of UOMSimon Lejeune
Before this commit, the uom defined on the sale order line and on the purchase order line was propagated to the moves. This is not the behaviour of v8-10 and may confuse the stock operator (one time he's working in dozen, another time in units for example). It also leads to rounding issues if the configuration is not adapted correctly (product's uom is in units, sale order line is in dozen, the rouding precision on the uom is left to their defaults, now if a dozen is partially available there's a good chance converting back and forth form dozen to units will break). An ir.config_parameter was added to restore the behaviour before this commit.
2017-11-27[FIX] purchase: cancel rfq set destination move to mtsArnold Moyaux
Use case to reproduce: - Create a SO with a product MTO and confirm the PO -> PO -- Stock -- SO - Cancel the SO -> PO -- Stock canceled SO - Set the quotation to draft and confirm it again -> PO -- Stock RFQ -- Stock -- SO - If the user cancel the RFQ we will get this diagram: -> PO -- Stock Stock -- SO The user can't reserve the chain correctly. Also a new RFQ will be generated each time the user delete the existing one even if the PO already exists. It happens because the move keep the procure methode MTO although the moves origin and destination links are broken. This commit changes the move destination from purchase order line to MTS if the RFQ is deleted. This implies that RFQ are not automatically generated by the scheduler.
2017-09-18[IMP] stock: merge movesamoyaux
The rationale for the need of a merge move mechanism is that, with the new default view, having multiple stock move for the same products is confusing. The idea is that if a move is confirmed in a picking already having a move with the same characteristics, we update the existing move and unlink the new one. That’s why it’s done at the end of `_action_confirm`. In some cases, merging moves is unwanted (backordered moves for examples). Therefore, we chose to add a kwarg to `_action_confirm` in order do control the mechanism.
2017-07-14[REF] stock: adapt to rename of stock.pack.operation into stock.mode.lineSimon Lejeune
2017-07-14[IMP] purchase,stock: edit PO line quantityPierre Masereel
This commit adapt purchase to be able to edit purchase line ordered quantity and propagate it to the related picking after the request for quotation validation. These are the supported use case - When you increase the quantity on a purchase line, an extra move (and an extra picking if they are all done or canceled) is created with the difference between old and new value and the push rules are applied on it. - When you decrease the quantity of a purchase line, different behaviors can occurs: * If you plan to decrese the ordered quantity under the received quantity, you get a user error saying tht you have to make some return before. * Else the moves not done or cancelled are decreased by starting with move having no procurement_id. The decrease is not propagated through push or pull rules. * If you decreased the quantity under the invoiced quantity, a next activity is created to remind you to do a refund.
2017-02-21[IMP] mail: improve notification management, either email either inboxAline Preillon
Currently partners have a boolean field to choose whether to receive notifications only in their Odoo inbox or to receive them in their inbox and by email. This leads to several issues : * if a customer is configured to not receive emails he will not receive any notification on sales orders, leads, ... This is not clearly indicated to the salesman and it is not easy to know how to change that behavior * if an user chooses to receive emails and does not use its inbox a lot of notifications stay in Odoo. The user has to manually set them as done to make them disappear which is redundant. This commit changes that behavior. From now on customers will always receive all notifications by email. Indeed Odoo is not a customer oriented mailbox. Moreover sales orders or discussions on leads send to customers should always be sent by email as it is the standard communication mechanism. Users will be able to choose to receive notifications in Odoo or by email. The choice is no longer inbox or inbox + email, but inbox or email. Choosing one option or the other one depends on the way the user wants to work. Technically the field is moved on the users model and selection keys are renamed. Notification process is modified * notified_partner_ids contains as before specified recipients as well as followers matching the subtype * customers and users working with emails are notified. During that process customers notifications are marked as done to be able to track the email state without having needaction. Users notifications are currently deleted as we do not track their email state. The removal of partner field implies changes in various addons that define partner data with this field set in the values.
2016-11-24[FIX] purchase: double validation minimum amountPierre Masereel
When we enable in the settings 'Get 2 levels of approvals' with a 'Double validation amount', and then create a request for quotation. When we confirm it, even if the total amount of the request for quotation is below the amount set in the settings, the purchase order needs to be approved. We excpect that if a purchase order has a total amount below the validation amount setting, the purchase order is automatically confirmed. So to fix it, we compare the amount when the user click on the button confirm. And immediatly call the function 'button_approve' if the amount is below the double validation amount set in settings. Bug introduced in rev: https://github.com/odoo/odoo/commit/9d4efc81a opw - 694381
2016-08-05[MIG] purchase: Migrate to new APIDenis Vermylen (dve)
2016-08-02[IMP] purchase: Editable PO + minor fixesFabien Pinckaers