跳至内容
菜单
此问题已终结
3 回复
1049 查看

Hi All,

The standard funtionality of Odoo should provide a box at the top of the Sales order screen that shows the related purchase order count for any linked purchase orders.


Unfortunately I am unable to get this to work.  However I found that if I set the Procurement Group manually within the Replenishment rules to a hardcoded SO Number then any new Purchase order created with this replenishment rule will then set the related document to the hardcoded sales order and then show the purchase order link on the Sales order.


Therefore can I make the Procurement Group dynamically set with the Sales Order number.

If I set the Propagation of Procurement Group within the related route to "Leave Empty", it actually sets the source document on the Purchase order to the SO number, however it is putting another number starting with "PO" in front of it (e.g. OP/02793 - S00496), because of this it is not linking.


Please help... thanks

形象
丢弃
最佳答案

Hi,

If you need to create a purchase order related to sale order the sale order, You can first unarchive the Route "Replenish on order (MTO) from Inventory -> configuration -> Routes -> unarchive "Replenish on order (MTO)"


Then open a product and enable the option Mto inside the product fromProduct ->  Inventory -> operations ->replenish on Order(MTO)also enable the Buy option


Also, add a vendor inside the product from the purchase tab.
Finally, create a sale order with the same product with a quantity more than the on-hand quantity



Hope it helps


形象
丢弃
编写者

This is work! Thank you so much.

最佳答案

Hi,
Yes Odoo will generate PO against SO if the configuration is done so and once the PO is generated there will be a smart button in so to navigate to related PO. Upon checking the same, it seems to still working as expected in the runbot.




See at the TOP, you will see two smart buttons, one for delivery and one for the purchase order.

Thanks

形象
丢弃
编写者 最佳答案

Thanks for your reply.  Yes, I understand that I should have the Purchase order box showing in the top. However unless i explicitly update the "Procurement group" value within the replenishment record to the Sales order number before generating the PO, it will not link.

Basically the scenario that works is, raise SO, go to replenishment record, insert the new SO number into the Procurement Group field 

Then once the PO is created the source document will be set to the SO number as per what was entered into the Procurement group field.

In this case I will then see the Purchase order button appear in the SO header

However if I don't do this and I leave the procurement group blank it will instead create the PO and make the source document equal to the value 


I don't know if it is related but it creates with OP number before the SO number.

I have tried all combinations of Propagation in the route and not working.  

Any thoughts on what I may have setup wrong?


形象
丢弃