tinyerp / odooly

Python library and CLI to interact with Odoo and OpenERP.
https://odooly.rtfd.io/
Other
60 stars 33 forks source link

Error while trying to use create multi with products #20

Open hd24-rmenendez opened 2 months ago

hd24-rmenendez commented 2 months ago

I am trying to do something like client.env['product.product'].create(values) where values is a list of dicts like [{'name': 'AAA'}, {'name': 'BBB'}]

I was expecting to be able to make it work but I see the create method is expecting only a dict, and not a list of dict. Speccially the method _unbrowse_values.

Any idea on how can I use create multi?