I know the functional flow of the sale order in which a MO is created for a product that is configured to be manufactured in product master
Below I have descried in brief the Functional flow:
when we create a product and set it as manufacturing we then create a BOM for that respective product, which results in the creation of a Manufacturing Order after confirming a sale order for that product, and the origin field in MO contains the sale order name too.
My question is, Which Method in the backend is responsible for the creation of MO from sale order? actually, the MO is created in the confirmed state and I want it to be created in draft when it is created from Sale Order. so I like to know which method is responsible for that
Manufacture Orders are created as part of the procurement planning system by the Stock Rule object in the method called _run_manufacture
Link to the line where the confirmation takes place.
https://github.com/odoo/odoo/blob/7ec6ae3863da4c7355c4a22ef799815a38188402/addons/mrp/models/stock_rule.py#L55
Related
We are trying to understand the purchase process in Moqui. We are using the PoP Commerce sample data.
We created a purchase order in the name of "ZiddlemanInc: Ziddleman & Sons Suppliers Inc." for item "Demo Product One-One" : 1000 quantity. We were shown a warning about payment which was ignored and order was placed.
We created an incoming shipment of "Demo Product One-One" from "ZiddlemanInc". We updated the shipment as "shipped".
We were shown a warning while creating the shipment. The screen shot of warning has been attached.
Is there any alternate option to create a shipment linked to purchase order? Further, how do we link this shipment, not linked to purchase order, to the purchase order?
Here is the general documentation for Procure to Pay (ie purchasing):
https://www.moqui.org/m/docs/apps/POPC+ERP+User+Guide/Procure+to+Pay
This document does not have step by step instructions but mentions looking up a PO and creating a shipment which should be done from the Order Detail screen.
This is similar to the fulfillment process (uses the same screens but a different flow for shipping vs receiving a Shipment) and the doc for that has more detail and you can see the documentation for that here:
https://www.moqui.org/m/docs/apps/POPC+ERP+User+Guide/Order+to+Cash/Ship+Sales+Order
While trying to understand Odoo model for delivery slips I have realized that some stock_moves rows do have procurement_id populated and others do not.
Why is this? When is procurement_id populated?
Procurement_id is populated when the stock move is generated by a procurement. Stock moves created by a sale order are created throught a procurement. A stock move created by purchase order will not have a procurement id because purchase orders do not create stock moves.
I have an invoice with 2 products (product A and B), I need to do a payment only for the product A, is there any way to do that ?, and after see the product A with the correct moves in the accounting.
I know how to do the change in code but will be better if Odoo has this functionality
Thanks a lot
That can be done if you shipped all products separately and keep
invoice policy based on shipment. Then you can create separate invoice
for each products.
While you click on Create Invoice button in sales order then it will create invoice for eligible shipments with it's all delivered products.
So your purpose will be resolved by just change the configuration other there is no more option in odoo you have to write code to achieve it.
I would like to know how does e-commerce sites maintain their databases?
Let say they are selling a product name X from a marchant M
Now the merchant increases or decreases the cost of the item. It is manually edited in the e-commerse backend ? Is this part automated?
If there is an id associated with the item, is id given by the merchant or the e-commerce site?
There can be 10 same product items provided by 10 different merchant. Now the specification of the product is same but the amount varies from each merchant. if let say every merchant change the cost of the item and tell us the cost. How can we in automated fashion edit the backend in such a situation
The shop owner with the website is adjusting their prices independently of the wholesaler. This can be done manually in an online product admin interface, or it can be done through some kind of data feed of all products like XML or CVS. The data feed can be coming directly from a retail point of sale system. If the wholesaler raises the prices - the shop owner still has stock on hand of the product they bought at the previous price. When the shop owner takes delivery of the new stock and enters that inventory into the system - at that point they would adjust the prices.
A product has a UPC code (or EAN if in europe) which is universal for that product. For example all products on Amazon have a UPC code which is how they organize different sellers for the same product
VERSUS a SKU or Product ID - which is unique to the shop owner. That is what the shop owner uses to track inventory and prices. The universal UPC plus unique SKU is how amazon determines the product that is sold.
In your last example - you are talking about functioning as a "marketplace" like Amazon.com Amazon lets merchants determine their own prices - but very important to know the price is ranked as price + shipping cost. Because some merchants will lower the product price to try and come out on top but then they inflate the shipping cost to make up for it.
How to create delivery order for confirmed Manufacturing Orders in openerp in custom module?Exactly like creating delivery order for confirmed sale/purchase order..
When confirming the sale order a delivery order will be created. When confirming purchase order, a incoming shipment is created.Like that when confirming manufacturing order, an internal move is created.