Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5600 Vizualizări

Odoo versin 11.0

Succeed to create sales order and its auto created purchase order in case of drop ship.

Now, i want to validate stock after confirm purchase order by script/code.

Or, how i can click on validate button of stock.picking module using code. 



Though, i know the method "button_validate" need to call but getting those error like,

  raise TypeError(\"cannot marshal %s objects\" % type(value))\nTypeError: cannot marshal <class 'odoo.tools.misc.frozendict'> 

Have an idea about this, any help would be appreciate..

Imagine profil
Abandonează

Would you please share your code?

Autor

//Validate and auto Receive PO process

//recive product

loRpcRecord.calling_workflow_method2(lsOdooDBName, liUserid, lsOdooDBPassword, OdooHelper.Models.PurchaseOrder, "action_view_picking", new int[] { Convert.ToInt32(loPurchaseOrder.stERPId) });

//Validate Shipment

int liShipmentERPId = getShipmentID(liUserid, lsOdooDBName, lsOdooDBPassword, loPurchaseOrder.stPONumber);

loRpcRecord.calling_workflow_method2(lsOdooDBName, liUserid, lsOdooDBPassword, OdooHelper.Models.Shipment, "button_validate", new int[] { liShipmentERPId });

//after validated shipment move to on done state.

int liImmediateTransferERPId = getImmediateTransferID(liUserid, lsOdooDBName, lsOdooDBPassword, liShipmentERPId);

loRpcRecord.calling_workflow_method2(lsOdooDBName, liUserid, lsOdooDBPassword, "stock.immediate.transfer", "process", new int[] { liImmediateTransferERPId });

Related Posts Răspunsuri Vizualizări Activitate
6
dec. 22
15386
4
mar. 24
12260
0
feb. 20
2909
2
ian. 20
7426
2
dec. 19
5615