trytondo-sale_opportunity_m.../locations/city.py
camilogs ed3435c139
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: Se crean relaciones entre ciudades y departamentos
2023-08-05 14:01:51 -05:00

12 lines
369 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelSQL, ModelView, fields
class City(ModelSQL, ModelView):
'Ciudad'
__name__ = 'sale.city'
name = fields.Char('City')
parent = fields.Many2One('sale.department', 'Departamento')