Τη Παρασκευή, 5 Φεβρουαρίου 2016 - 10:54:24 π.μ. UTC+2, ο χρήστης Αργύρης
Ξηρός έγραψε:
>
> After some quick tests I manage to build migration scripts of the
> companies (At least for the entries I am interesting for).
>
> Although I ran into a syntax issue while using XMLrpc in python.
> I try to create a 'Supplier Shipment' (or 'stock.shipment.in') but I
> can't relate the stock incoming moves of the shipment.
>
> For example:
> I have an array of the incoming moves:
> moves = [1, 2, 3]
>
> How am I suppose to link them with a specific 'Supplier Shipment'?
> I tried:
> getattr(self.server.model.stock.shipment, "in.write")(
> [supplier_shipment_id],
> {'moves' : moves},
> self.context
> )
>
> but I get from the server:
> xmlrpclib.Fault: <Fault 255: ''>
>
>
>
Never mind, I manage to figure it out.
for move in moves:
self.server.model.stock.move.write(
[move],
{'shipment' : "stock.shipment.in,"+str(supplier_shipment_id)},
self.context
)
Thank you very much
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/6b6ea5cb-0ef3-48c5-a7dd-d678fa72ce9d%40googlegroups.com.