odoo_xmlrpc_twisted.functions.get_available_states

Give back all available states for given country and language.

Functions

get_available_states(country, language_code)

Get the available states from Odoo system for a given country by getting it from the 'res.country' model.

odoo_xmlrpc_twisted.functions.get_available_states.get_available_states(country, language_code)[source]

Get the available states from Odoo system for a given country by getting it from the ‘res.country’ model. Select each state with a 2-character code and replace with a language-specific version if applicable. Result is an array with id and name of the states.