[IMP]
* Improved base_contact module * Add email on contact (not only on address) * Add Fax, Extension, Other phone number on address/contact bzr revid: christophe.chauvet@syleam.fr-20090220000654-4k7rl69p7kymkq04
This commit is contained in:
parent
939a981520
commit
c08f40c444
|
@ -48,6 +48,7 @@ class res_partner_contact(osv.osv):
|
|||
'active' : fields.boolean('Active'),
|
||||
'partner_id':fields.related('job_ids','address_id','partner_id',type='many2one', relation='res.partner', string='Main Employer'),
|
||||
'function_id':fields.related('job_ids','function_id',type='many2one', relation='res.partner.function', string='Main Job'),
|
||||
'email': fields.char('E-Mail', size=240),
|
||||
}
|
||||
_defaults = {
|
||||
'active' : lambda *a: True,
|
||||
|
@ -122,6 +123,9 @@ class res_partner_job(osv.osv):
|
|||
'sequence_partner':fields.integer('Partner Seq.',help='Order of importance of this job title in the list of job title of the linked partner'),
|
||||
'email': fields.char('E-Mail', size=240),
|
||||
'phone': fields.char('Phone', size=64),
|
||||
'fax': fields.char('Fax', size=64),
|
||||
'extension': fields.char('Extension', size=64, help='Internal/External extension phone number'),
|
||||
'other': fields.char('Other', size=64, help='Additionnal phone field'),
|
||||
'date_start' : fields.date('Date Start'),
|
||||
'date_stop' : fields.date('Date Stop'),
|
||||
'state' : fields.selection([('past', 'Past'),('current', 'Current')], 'State', required=True),
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<field name="name"/>
|
||||
<field name="first_name"/>
|
||||
<field name="mobile"/>
|
||||
<field name="email"/>
|
||||
<field name="lang_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="function_id"/>
|
||||
|
@ -34,6 +35,7 @@
|
|||
<field name="mobile" select="2"/>
|
||||
<field name="title" select="1" />
|
||||
<field name="website"/>
|
||||
<field name="email"/>
|
||||
<field name="lang_id"/>
|
||||
<field name="active"/>
|
||||
<field name="partner_id" invisible="1" select="2"/>
|
||||
|
@ -45,6 +47,9 @@
|
|||
<field name="name"/>
|
||||
<field name="sequence_contact"/>
|
||||
<field name="phone"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="other"/>
|
||||
<field name="email" widget="email"/>
|
||||
<field name="date_start" />
|
||||
<field name="date_stop" />
|
||||
|
@ -56,6 +61,9 @@
|
|||
<field name="name"/>
|
||||
<field name="address_id"/>
|
||||
<field name="phone"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="other"/>
|
||||
<field name="email"/>
|
||||
<field name="state" />
|
||||
</tree>
|
||||
|
@ -113,6 +121,9 @@
|
|||
<field name="contact_id"/>
|
||||
<field name="function_id"/>
|
||||
<field name="phone"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="other"/>
|
||||
<field name="email"/>
|
||||
</tree>
|
||||
<form string="Contacts">
|
||||
|
@ -121,6 +132,9 @@
|
|||
<field name="contact_id"/>
|
||||
<field name="function_id"/>
|
||||
<field name="phone"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="other"/>
|
||||
<field name="email" widget="email"/>
|
||||
</form>
|
||||
</field>
|
||||
|
@ -271,12 +285,16 @@
|
|||
<field name="contact_id"/>
|
||||
<field name="function_id"/>
|
||||
<field name="phone"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="email"/>
|
||||
</tree>
|
||||
<form string="Contacts">
|
||||
<field name="contact_id"/>
|
||||
<field name="function_id"/>
|
||||
<field name="phone"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="email" widget="email"/>
|
||||
</form>
|
||||
</field>
|
||||
|
@ -297,6 +315,8 @@
|
|||
<field name="address_id"/>
|
||||
<field name="email"/>
|
||||
<field name="phone"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="state" />
|
||||
</tree>
|
||||
</field>
|
||||
|
@ -316,6 +336,8 @@
|
|||
<field name="function_id" select="1"/>
|
||||
<field name="email" select="2" widget="email"/>
|
||||
<field name="phone" select="2"/>
|
||||
<field name="fax"/>
|
||||
<field name="extension"/>
|
||||
<field name="sequence_contact" select="2" groups="base.group_user"/>
|
||||
<field name="sequence_partner" select="2" groups="base.group_user"/>
|
||||
<field name="date_start" groups="base.group_user"/>
|
||||
|
|
|
@ -6,8 +6,8 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-02-06 15:20:38+0000\n"
|
||||
"PO-Revision-Date: 2009-02-06 15:20:38+0000\n"
|
||||
"POT-Creation-Date: 2009-02-19 22:54:38+0000\n"
|
||||
"PO-Revision-Date: 2009-02-19 22:54:38+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -31,13 +31,21 @@ msgid "The Object name must start with x_ and not contain any special character
|
|||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: model:ir.actions.act_window,name:base_contact.action_partner_contact_form
|
||||
#: model:ir.ui.menu,name:base_contact.menu_partner_contact_form
|
||||
#: model:process.node,name:base_contact.process_node_contacts0
|
||||
#: view:res.partner:0
|
||||
#: view:res.partner.address:0
|
||||
#: field:res.partner.address,job_ids:0
|
||||
msgid "Contacts"
|
||||
#: model:ir.module.module,description:base_contact.module_meta_information
|
||||
msgid "\n"
|
||||
" This module allows you to manage entirely your contacts.\n"
|
||||
"\n"
|
||||
" It lets you define\n"
|
||||
" *contacts unrelated to a partner,\n"
|
||||
" *contacts working at several addresses (possibly for different partners),\n"
|
||||
" *contacts with possibly different functions for each of its job's addresses\n"
|
||||
"\n"
|
||||
" It also add new menu items located in\n"
|
||||
" Partners \ Contacts\n"
|
||||
" Partners \ Functions\n"
|
||||
"\n"
|
||||
" Pay attention that this module converts the existing addresses into \"addresses + contacts\". It means that some fields of the addresses will be missing (like the contact name), since these are supposed to be defined in an other object.\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
|
@ -45,6 +53,11 @@ msgstr ""
|
|||
msgid "Partner Seq."
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: constraint:ir.ui.view:0
|
||||
msgid "Invalid XML for View Architecture!"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: selection:res.partner.job,state:0
|
||||
msgid "Current"
|
||||
|
@ -60,6 +73,11 @@ msgstr ""
|
|||
msgid "Contact Partner Function"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.job,other:0
|
||||
msgid "Other"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: model:process.transition,name:base_contact.process_transition_contacttofunction0
|
||||
msgid "Contact to function"
|
||||
|
@ -70,6 +88,11 @@ msgstr ""
|
|||
msgid "Partner Function"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.contact,title:0
|
||||
msgid "Title"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: model:process.transition,name:base_contact.process_transition_partnertoaddress0
|
||||
msgid "Partner to address"
|
||||
|
@ -86,8 +109,13 @@ msgid "Function"
|
|||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.contact,function_id:0
|
||||
msgid "Main Job"
|
||||
#: field:res.partner.job,fax:0
|
||||
msgid "Fax"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.contact,lang_id:0
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
|
@ -101,8 +129,13 @@ msgid "Defines contacts and functions."
|
|||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.contact,title:0
|
||||
msgid "Title"
|
||||
#: model:ir.actions.act_window,name:base_contact.action_partner_contact_form
|
||||
#: model:ir.ui.menu,name:base_contact.menu_partner_contact_form
|
||||
#: model:process.node,name:base_contact.process_node_contacts0
|
||||
#: view:res.partner:0
|
||||
#: view:res.partner.address:0
|
||||
#: field:res.partner.address,job_ids:0
|
||||
msgid "Contacts"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
|
@ -121,6 +154,7 @@ msgid "Order of importance of this job title in the list of job title of the lin
|
|||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.contact,email:0
|
||||
#: field:res.partner.job,email:0
|
||||
msgid "E-Mail"
|
||||
msgstr ""
|
||||
|
@ -152,6 +186,11 @@ msgstr ""
|
|||
msgid "Order of importance of this address in the list of addresses of the linked contact"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.contact,function_id:0
|
||||
msgid "Main Job"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: view:res.partner:0
|
||||
msgid "Categories"
|
||||
|
@ -163,8 +202,8 @@ msgid "Define partners and their addresses."
|
|||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: constraint:ir.ui.view:0
|
||||
msgid "Invalid XML for View Architecture!"
|
||||
#: help:res.partner.job,other:0
|
||||
msgid "Additionnal phone field"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
|
@ -178,8 +217,8 @@ msgid "Seq."
|
|||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: field:res.partner.contact,lang_id:0
|
||||
msgid "Language"
|
||||
#: field:res.partner.job,extension:0
|
||||
msgid "Extension"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
|
@ -187,6 +226,11 @@ msgstr ""
|
|||
msgid "Mobile"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: help:res.partner.job,extension:0
|
||||
msgid "Internal/External extension phone number"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_contact
|
||||
#: model:process.node,note:base_contact.process_node_contacts0
|
||||
msgid "People you work with."
|
||||
|
|
Loading…
Reference in New Issue