From ff3c3bd4029bf956498b33fe16ca7af41fbd1288 Mon Sep 17 00:00:00 2001 From: Alejandro Santana Date: Mon, 19 Jan 2015 01:33:24 +0100 Subject: [PATCH] [FIX] base_contact: Fixed PEP8. [IMP] base_location: Removed non-relevan currency_id column on country tree view, enhanced description and manidest, addded README.rst file. --- base_location/README.rst | 20 ++++++++++++++++++++ base_location/__openerp__.py | 15 ++++++++++++--- base_location/models/partner.py | 2 +- base_location/views/res_country.xml | 19 ------------------- 4 files changed, 33 insertions(+), 23 deletions(-) create mode 100644 base_location/README.rst diff --git a/base_location/README.rst b/base_location/README.rst new file mode 100644 index 000000000..817183a5b --- /dev/null +++ b/base_location/README.rst @@ -0,0 +1,20 @@ +Enhanced ZIP management +======================= + +This module introduces a better zip/npa management system. + +It enables zip, city, state and country auto-completion on partners and companies. + +Also allows different search filters. + + +Author +------ + +- Nicolas Bessi. (Copyright Camptocamp SA) + +Contributors +------------ +- Ignacio Ibeas (Acysos S.L.) +- Pedro M. Baeza +- Alejandro Santana diff --git a/base_location/__openerp__.py b/base_location/__openerp__.py index 943648ac1..1281ea1c3 100644 --- a/base_location/__openerp__.py +++ b/base_location/__openerp__.py @@ -22,12 +22,21 @@ ############################################################################## { 'name': 'Location management (aka Better ZIP)', - 'version': '0.3.2', + 'version': '1.0', 'depends': ['base'], 'author': 'Camptocamp', + 'license': "AGPL-3", + 'contributors': [ + 'Pedro M. Baeza ', + 'Ignacio Ibeas (Acysos S.L.)', + 'Alejandro Santana ', + ], + 'summary': '''Enhanced zip/npa management system''', 'description': ''' - Introduces a better zip/npa management system. - It enables zip/city auto-completion on partners.''', + This module introduces a better zip/npa management system. + It enables zip, city, state and country auto-completion on partners and + companies. + Also allows different search filters.''', 'website': 'http://www.camptocamp.com', 'data': ['views/better_zip.xml', 'views/state.xml', diff --git a/base_location/models/partner.py b/base_location/models/partner.py index 3dc7fe99b..7bb0833d2 100644 --- a/base_location/models/partner.py +++ b/base_location/models/partner.py @@ -25,7 +25,7 @@ from openerp import models, fields, api class ResPartner(models.Model): _inherit = 'res.partner' - zip_id = fields.Many2one('res.better.zip', 'City/Location') + zip_id = fields.Many2one('res.better.zip', 'City/Location') @api.multi @api.onchange('zip_id') diff --git a/base_location/views/res_country.xml b/base_location/views/res_country.xml index 5bdb089a5..a2ed80258 100644 --- a/base_location/views/res_country.xml +++ b/base_location/views/res_country.xml @@ -12,25 +12,6 @@ - - - res.country.tree - res.country - - - - - - - - - - - - - - -