Skip to Content
Menu
This question has been flagged
458 Views

i have problem with relation new model and many2one 

class area_state(models.Model):
_name = 'area_state'
name_14 = fields.Char(string="Name of Area",store=True,ondelete="restrict")
i want to make relation between model area_state and City2_id



|||||||||||||||||||
~~~~~~~~~~~


city2_id = fields.Many2one("area_state",string=" work city", ondelete="restrict")


Avatar
Discard

what problem you face here?