Browse Source

[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.

pull/81/head
Alejandro Santana 10 years ago
parent
commit
ff3c3bd402
  1. 20
      base_location/README.rst
  2. 15
      base_location/__openerp__.py
  3. 2
      base_location/models/partner.py
  4. 19
      base_location/views/res_country.xml

20
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 <pedro.baeza@serviciosbaeza.com>
- Alejandro Santana <alejandrosantana@anubia.es>

15
base_location/__openerp__.py

@ -22,12 +22,21 @@
############################################################################## ##############################################################################
{ {
'name': 'Location management (aka Better ZIP)', 'name': 'Location management (aka Better ZIP)',
'version': '0.3.2',
'version': '1.0',
'depends': ['base'], 'depends': ['base'],
'author': 'Camptocamp', 'author': 'Camptocamp',
'license': "AGPL-3",
'contributors': [
'Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>',
'Ignacio Ibeas (Acysos S.L.)',
'Alejandro Santana <alejandrosantana@anubia.es>',
],
'summary': '''Enhanced zip/npa management system''',
'description': ''' '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', 'website': 'http://www.camptocamp.com',
'data': ['views/better_zip.xml', 'data': ['views/better_zip.xml',
'views/state.xml', 'views/state.xml',

2
base_location/models/partner.py

@ -25,7 +25,7 @@ from openerp import models, fields, api
class ResPartner(models.Model): class ResPartner(models.Model):
_inherit = 'res.partner' _inherit = 'res.partner'
zip_id = fields.Many2one('res.better.zip', 'City/Location')
zip_id = fields.Many2one('res.better.zip', 'City/Location')
@api.multi @api.multi
@api.onchange('zip_id') @api.onchange('zip_id')

19
base_location/views/res_country.xml

@ -12,25 +12,6 @@
</search> </search>
</field> </field>
</record> </record>
<record id="view_country_tree_currency" model="ir.ui.view">
<field name="name">res.country.tree</field>
<field name="model">res.country</field>
<field name="inherit_id" ref="base.view_country_tree"/>
<field name="arch" type="xml">
<field name="code" position="after">
<field name="currency_id"/>
</field>
</field>
</record>
<!-- <record id="action_country" model="ir.actions.act_window"> -->
<!-- <field name="name">Countries</field> -->
<!-- <field name="type">ir.actions.act_window</field> -->
<!-- <field name="res_model">res.country</field> -->
<!-- <field name="view_type">form</field> -->
<!-- <field name="help">Display and manage the list of all countries that can be assigned to your partner records. You can create or delete countries to make sure the ones you are working on will be maintained.</field> -->
<!-- </record> -->
</data> </data>
</openerp> </openerp>
Loading…
Cancel
Save