OCA / odoorpc

Python module to pilot your Odoo servers through JSON-RPC.
http://pythonhosted.org/OdooRPC/
GNU Lesser General Public License v3.0
231 stars 123 forks source link

More documentation? #49

Closed TheDailySpank closed 5 years ago

TheDailySpank commented 5 years ago

Specifically looking for documentation on how to link a product (which I can create through the API) to variants.

I am assuming the process is something along the lines is check for existing variant, check for value, create as necessary, link to product.

pedrobaeza commented 5 years ago

Sorry, but this is not part of OdooRPC, but Odoo data layout itself. You must learn how data is organized in Odoo, and how the ORM works for the business logic. Ask in Odoo forums for this kind of things.

sebalix commented 5 years ago

Indeed, maintain a documentation of data models (even simple) in OdooRPC is not optimal. Maybe porting this old feature of OERPLib (inspect service) could help to get a picture for developers who only need to requests Odoo without having a deep knowledge of its internals.

pedrobaeza commented 5 years ago

DB layout is only a minimal part of what Odoo means and I don't recommend to do things based on that data layout. I have seen external apps setting sale state in sales order as they want them to be confirmed. This is for anyone that knows a bit of Odoo a totally barbarity.

You must know Odoo first very well before doing things through external access library. And then you have also onchanges and so on that are not accessible externally...

TheDailySpank commented 5 years ago

Thanks for the info/suggestions. I will look into them.