skilld-labs / go-odoo

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

type "not found" error + do it in low level functions #46

Closed ahuret closed 6 months ago

ahuret commented 1 year ago

right now "not found" error are "soft", we should get it hard by typing it and do it in low level functions to not repeat every time the same code. We should keep BC too.

eg not found error definition: https://github.com/skilld-labs/go-odoo/blob/master/account_bank_statement_cashbox.go#L81

where it should be instead: https://github.com/skilld-labs/go-odoo/blob/master/odoo.go#L291

right now here is output of odoo ExecuteKw method when it doesn't find :


resp: []interface{}{}
err: interface{}
ahuret commented 6 months ago

closed by https://github.com/skilld-labs/go-odoo/commit/462cbb120be4d405b5ded9e351a42ec9618a2cc7