Browse Source

[ADD] partner_contact_address_detailed

pull/2/head
Vincent Renaville 12 years ago
parent
commit
2ccfb21bef
  1. 20
      partner_contact_address_detailed/__init__.py
  2. 35
      partner_contact_address_detailed/__openerp__.py
  3. 38
      partner_contact_address_detailed/partner_view.xml

20
partner_contact_address_detailed/__init__.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author Vincent Renaville. Copyright 2013 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

35
partner_contact_address_detailed/__openerp__.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author Vincent Renaville. Copyright 2013 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{'name': 'All address, Contact form',
'description': """Show all informations of partner address in partner contact form
""",
'version': '1.0',
'author': 'Camptocamp',
'category': 'MISC',
'website': 'http://www.camptocamp.com',
'depends': ['base'],
'data': ['partner_view.xml'],
'demo': [],
'test': [],
'auto_install': False,
'installable': True,
'images': []
}

38
partner_contact_address_detailed/partner_view.xml

@ -0,0 +1,38 @@
<openerp>
<data>
<record id="view_partner_form_firstname" model="ir.ui.view">
<field name="name">res.partner.form.firstname</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@string='Contacts']/field/form/div/group/field[@name='mobile']" position="after">
<label for="type"/>
<div colspan="2">
<field name="type"/>
<label for="street" string="Address"/>
<field name="street" placeholder="Street..."/>
<field name="street2"/>
<div class="address_format">
<field name="city" placeholder="City" style="width: 40%%"/>
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' on_change="onchange_state(state_id)"/>
<field name="zip" placeholder="ZIP" style="width: 20%%"/>
</div>
<field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}'/>
</div>
<field name="website" widget="url" placeholder="e.g. www.openerp.com"/>
<field name="fax"/>
<field name="email" widget="email"/>
<field name="title" domain="[('domain', '=', 'contact')]"
options='{"no_open": True}' />
</xpath>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save