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

Pass context to other models when fetching more data #69

Open a-willem opened 2 years ago

a-willem commented 2 years ago

When OdooRPC dynamically fetches more information (i.e. when accessing .partner_id.name), if the instance has been instantiated using with_context, this context is not passed along and can lead to unwanted results (i.e when using with_context(allowed_company_ids=[1,2,3]))

This fix allows to pass such context information.

marcwimmer commented 10 months ago

Why is this not merged yet ?