Hello my friends,
I have created 2 fields "State" and "country" as follows :
- state = fields.Many2one('res.country.state', string='La cité', required=True)
- country = fields.Many2one('res.country', string='le Pays', required=True)
My question is : how to make the choose of the state according the city. Do you have solution for that ? thank you.
* I have tried this solution, but it dosen't working for me in Odoo 10 :
state = fields.Many2one(related = 'country_id.state', string='La cité', store=True)