diff --git a/address.py b/address.py index 149b51c..328ffd1 100755 --- a/address.py +++ b/address.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- #This file is part country_zip module for Tryton. -#The COPYRIGHT file at the top level of this repository contains +#The COPYRIGHT file at the top level of this repository contains #the full copyright notices and license terms. from trytond.model import fields @@ -19,8 +19,8 @@ DEPENDS = ['active'] class Address: "Address" __name__ = 'party.address' - - zip = fields.Char('Zip', states=STATES, depends=DEPENDS, + + zip = fields.Char('Zip', states=STATES, depends=DEPENDS, on_change=['zip', 'city', 'subdivision', 'country']) @staticmethod diff --git a/configuration.py b/configuration.py index 68b0a75..6f45492 100644 --- a/configuration.py +++ b/configuration.py @@ -1,5 +1,5 @@ #This file is part country_zip module for Tryton. -#The COPYRIGHT file at the top level of this repository contains +#The COPYRIGHT file at the top level of this repository contains #the full copyright notices and license terms. from trytond.model import fields from trytond.pool import PoolMeta diff --git a/country.py b/country.py index d74b8b1..64c5de1 100755 --- a/country.py +++ b/country.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- #This file is part country_zip module for Tryton. -#The COPYRIGHT file at the top level of this repository contains +#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 diff --git a/setup.py b/setup.py index d64f11f..5f48c98 100755 --- a/setup.py +++ b/setup.py @@ -1,11 +1,10 @@ #!/usr/bin/env python #This file is part country_zip module for Tryton. -#The COPYRIGHT file at the top level of this repository contains +#The COPYRIGHT file at the top level of this repository contains #the full copyright notices and license terms. from setuptools import setup import re -import os import ConfigParser config = ConfigParser.ConfigParser()