skilld-labs / go-odoo

Golang wrapper for Odoo API
Apache License 2.0
86 stars 62 forks source link

How to pass keywords to ExecuteKw() ? #36

Closed bhuisgen closed 1 year ago

bhuisgen commented 1 year ago

Hello,

For a specific action I need to pass keywords to ExecuteKw(). Is this case possible with the current code ? The XML RPC client seems to not support that or am I wrong ? If you have any advice to achieve this part, I would be thankful.

ahuret commented 1 year ago

hey @bhuisgen sorry for such long delay, it slipped my mind :/ I've been able to do such thing like this :

client.ExecuteKw("action_invoice_open", "account.invoice", []interface{}{ids}, nil)

for example here, it "validates" an invoice for all invoice ids mentionned. Does it answer your question ?

ahuret commented 1 year ago

closing it for now, feel free to ask if you have any question !