mirror of
https://github.com/NaN-tic/trytond-country_zip.git
synced 2023-12-14 07:42:54 +01:00
19 lines
568 B
Python
Executable file
19 lines
568 B
Python
Executable file
# -*- encoding: utf-8 -*-
|
|
#This file is part country_zip module for Tryton.
|
|
#The COPYRIGHT file at the top level of this repository contains
|
|
#the full copyright notices and license terms.
|
|
|
|
from trytond.model import ModelView, ModelSQL, fields
|
|
|
|
__all__ = ['CountryZip']
|
|
|
|
class CountryZip(ModelSQL, ModelView):
|
|
"Country Zip"
|
|
__name__ = "country.zip"
|
|
|
|
zip = fields.Char('Zip', required=True, select=1)
|
|
city = fields.Char('City', select=1)
|
|
subdivision = fields.Many2One('country.subdivision', 'Subdivision',
|
|
ondelete='CASCADE', select=1)
|
|
|