Browse Source

Merge pull request #82 from osiell/8.0-base_contact

8.0 - Porting 'base_contact' module
pull/85/head
Guewen Baconnier 10 years ago
parent
commit
109208dad4
  1. 49
      base_contact/README.rst
  2. 0
      base_contact/__init__.py
  3. 14
      base_contact/__openerp__.py
  4. 0
      base_contact/base_contact.py
  5. 0
      base_contact/base_contact_demo.xml
  6. 7
      base_contact/base_contact_view.xml
  7. 186
      base_contact/i18n/base_contact.pot
  8. 191
      base_contact/i18n/de.po
  9. 188
      base_contact/i18n/fr.po
  10. 0
      base_contact/tests/__init__.py
  11. 8
      base_contact/tests/test_base_contact.py

49
base_contact/README.rst

@ -0,0 +1,49 @@
Contacts Management
===================
This module was written to extend the contact management functionality. It
allows you to:
- set several job positions in different companies per contact,
- set some extra informations like birthdate and nationality.
Usage
=====
New tabs 'Other Positions' and 'Personal Information' are available on the
contact form.
For further information, please visit:
* https://www.odoo.com/forum/help-1
Known issues / Roadmap
======================
* Migrate to the new API
Credits
=======
Contributors
------------
* Xavier ALT <xal@openerp.com> (original author)
* EL HADJI DEM <elhadji.dem@savoirfairelinux.com>
* TheCloneMaster <the.clone.master@gmail.com>
* Sandy Carter <bwrsandman@gmail.com>
* Rudolf Schnapka <rs@techno-flex.de>
* Sebastien Alix <sebastien.alix@osiell.com>
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.

0
__unported__/base_contact/__init__.py → base_contact/__init__.py

14
__unported__/base_contact/__openerp__.py → base_contact/__openerp__.py

@ -21,24 +21,14 @@
{
'name': 'Contacts Management',
'summary': u"Manage your contacts separately",
'version': '1.0',
'author': 'OpenERP SA',
'website': 'http://www.openerp.com',
'category': 'Customer Relationship Management',
'complexity': "expert",
'description': """
This module allows you to manage your contacts
==============================================
It lets you define groups of contacts sharing some common information, like:
* Birthdate
* Nationality
* Native Language
""",
'depends': [
'base',
'process',
'contacts'
],
'external_dependencies': {},
'data': [
@ -48,7 +38,7 @@ It lets you define groups of contacts sharing some common information, like:
'base_contact_demo.xml',
],
'test': [],
'installable': False,
'installable': True,
'auto_install': False,
'images': [],
}

0
__unported__/base_contact/base_contact.py → base_contact/base_contact.py

0
__unported__/base_contact/base_contact_demo.xml → base_contact/base_contact_demo.xml

7
__unported__/base_contact/base_contact_view.xml → base_contact/base_contact_view.xml

@ -162,8 +162,11 @@
</group>
</page>
</page>
<xpath expr="//field[@name='child_ids']/form//field[@name='name']/.." position="before">
<field name="contact_type" readonly="0" on_change="onchange_contact_type(contact_type)"/>
<xpath expr="//form[@string='Contact']/sheet//field[@name='category_id']" position="before">
<group>
<label for="contact_type" class="oe_edit_only"/>
<field name="contact_type" readonly="0" on_change="onchange_contact_type(contact_type)" nolabel="1"/>
</group>
</xpath>
<xpath expr="//field[@name='child_ids']/form//field[@name='name']" position="after">
<field name="contact_id" on_change="onchange_contact_id(contact_id)" string="Contact"

186
base_contact/i18n/base_contact.pot

@ -0,0 +1,186 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * base_contact
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-19 22:10+0000\n"
"PO-Revision-Date: 2014-09-19 18:10-0500\n"
"Last-Translator: EL Hadji DEM <elhadji.dem@savoirfairelinux.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 1.5.4\n"
#. module: base_contact
#: view:res.partner:0
msgid "City"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "other position"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Contacts"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid ""
"To see personal information about this contact, please go to to the his "
"person form:"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Street..."
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "State"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "at"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Tags..."
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Other Positions"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Phone:"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Company"
msgstr ""
#. module: base_contact
#: field:res.partner,contact_id:0
msgid "Main Contact"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Fax:"
msgstr ""
#. module: base_contact
#: code:addons/base_contact/base_contact.py:31
#, python-format
msgid "Standalone Contact"
msgstr ""
#. module: base_contact
#: help:res.partner,nationality_id:0
msgid "Nationality."
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Address"
msgstr ""
#. module: base_contact
#: field:res.partner,nationality_id:0
msgid "Nationality"
msgstr ""
#. module: base_contact
#: code:addons/base_contact/base_contact.py:32
#, python-format
msgid "Attached to existing Contact"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "ZIP"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Country"
msgstr ""
#. module: base_contact
#: field:res.partner,birthdate_date:0
msgid "Birthdate"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Person"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Contact"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Mobile:"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "All partner positions"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "All positions"
msgstr ""
#. module: base_contact
#: model:ir.model,name:base_contact.model_ir_actions_act_window
msgid "ir.actions.act_window"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "other positions"
msgstr ""
#. module: base_contact
#: field:res.partner,contact_type:0
msgid "Contact Type"
msgstr ""
#. module: base_contact
#: model:ir.model,name:base_contact.model_res_partner
msgid "Partner"
msgstr ""
#. module: base_contact
#: field:res.partner,other_contact_ids:0
msgid "Others Positions"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "Personal Information"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "e.g. Sales Director"
msgstr ""

191
base_contact/i18n/de.po

@ -0,0 +1,191 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * base_contact
#
# Rudolf Schnapka <schnapkar@golive-saar.de>, 2014.
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-19 22:10+0000\n"
"PO-Revision-Date: 2014-12-30 18:14+0100\n"
"Last-Translator: Rudolf Schnapka <schnapkar@golive-saar.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Lokalize 1.5\n"
"Language: de\n"
#. module: base_contact
#: view:res.partner:0
msgid "City"
msgstr "Stadt"
#. module: base_contact
#: view:res.partner:0
msgid "other position"
msgstr "andere Position"
#. module: base_contact
#: view:res.partner:0
msgid "Contacts"
msgstr "Kontakte"
#. module: base_contact
#: view:res.partner:0
msgid ""
"To see personal information about this contact, please go to to the his "
"person form:"
msgstr ""
"Um persönliche Auskunft zu diesem Kontakt zu erhalten, gehen Sie bitte auf "
"die Seite persönlich:"
#. module: base_contact
#: view:res.partner:0
msgid "Street..."
msgstr "Straße..."
#. module: base_contact
#: view:res.partner:0
msgid "State"
msgstr "Bundesland"
#. module: base_contact
#: view:res.partner:0
msgid "at"
msgstr "bei"
#. module: base_contact
#: view:res.partner:0
msgid "Tags..."
msgstr "Schlagworte..."
#. module: base_contact
#: view:res.partner:0
msgid "Other Positions"
msgstr "Andere Positionen"
#. module: base_contact
#: view:res.partner:0
msgid "Phone:"
msgstr "Telefon:"
#. module: base_contact
#: view:res.partner:0
msgid "Company"
msgstr "Unternehmen"
#. module: base_contact
#: field:res.partner,contact_id:0
msgid "Main Contact"
msgstr "Hauptkontakt"
#. module: base_contact
#: view:res.partner:0
msgid "Fax:"
msgstr "Fax:"
#. module: base_contact
#: code:addons/base_contact/base_contact.py:31
#, python-format
msgid "Standalone Contact"
msgstr "Alleinstehender Kontakt"
#. module: base_contact
#: help:res.partner,nationality_id:0
msgid "Nationality."
msgstr "Nationalität."
#. module: base_contact
#: view:res.partner:0
msgid "Address"
msgstr "Anschrift"
#. module: base_contact
#: field:res.partner,nationality_id:0
msgid "Nationality"
msgstr "Nationalität"
#. module: base_contact
#: code:addons/base_contact/base_contact.py:32
#, python-format
msgid "Attached to existing Contact"
msgstr "Mit bestehendem Kontakt verknüpft"
#. module: base_contact
#: view:res.partner:0
msgid "ZIP"
msgstr "PLZ"
#. module: base_contact
#: view:res.partner:0
msgid "Country"
msgstr "Land"
#. module: base_contact
#: field:res.partner,birthdate_date:0
msgid "Birthdate"
msgstr "Geburtsdatum"
#. module: base_contact
#: view:res.partner:0
msgid "Person"
msgstr "Person"
#. module: base_contact
#: view:res.partner:0
msgid "Contact"
msgstr "Kontakt"
#. module: base_contact
#: view:res.partner:0
msgid "Mobile:"
msgstr "Mobil:"
#. module: base_contact
#: view:res.partner:0
msgid "All partner positions"
msgstr "Alle Positionen des Partners"
#. module: base_contact
#: view:res.partner:0
msgid "All positions"
msgstr "Alle Positionen"
#. module: base_contact
#: model:ir.model,name:base_contact.model_ir_actions_act_window
msgid "ir.actions.act_window"
msgstr ""
#. module: base_contact
#: view:res.partner:0
msgid "other positions"
msgstr "andere Positionen"
#. module: base_contact
#: field:res.partner,contact_type:0
msgid "Contact Type"
msgstr "Kontaktart"
#. module: base_contact
#: model:ir.model,name:base_contact.model_res_partner
msgid "Partner"
msgstr "Partner"
#. module: base_contact
#: field:res.partner,other_contact_ids:0
msgid "Others Positions"
msgstr "Andere Positionen"
#. module: base_contact
#: view:res.partner:0
msgid "Personal Information"
msgstr "Persönliche Auskunft"
#. module: base_contact
#: view:res.partner:0
msgid "e.g. Sales Director"
msgstr "z. B. Verkaufsleiter"

188
base_contact/i18n/fr.po

@ -0,0 +1,188 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * base_contact
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-19 22:11+0000\n"
"PO-Revision-Date: 2014-09-19 18:18-0500\n"
"Last-Translator: EL Hadji DEM <elhadji.dem@savoirfairelinux.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 1.5.4\n"
#. module: base_contact
#: view:res.partner:0
msgid "City"
msgstr "Ville"
#. module: base_contact
#: view:res.partner:0
msgid "other position"
msgstr "fonction"
#. module: base_contact
#: view:res.partner:0
msgid "Contacts"
msgstr "Contacts"
#. module: base_contact
#: view:res.partner:0
msgid ""
"To see personal information about this contact, please go to to the his "
"person form:"
msgstr ""
"Pour voir des informations personnelles sur ce contact, s'il vous plaît "
"aller au formulaire de la personne:"
#. module: base_contact
#: view:res.partner:0
msgid "Street..."
msgstr "Rue..."
#. module: base_contact
#: view:res.partner:0
msgid "State"
msgstr "État"
#. module: base_contact
#: view:res.partner:0
msgid "at"
msgstr "à"
#. module: base_contact
#: view:res.partner:0
msgid "Tags..."
msgstr "Étiquettes..."
#. module: base_contact
#: view:res.partner:0
msgid "Other Positions"
msgstr "Fonctions"
#. module: base_contact
#: view:res.partner:0
msgid "Phone:"
msgstr "Téléphone:"
#. module: base_contact
#: view:res.partner:0
msgid "Company"
msgstr "Organisme"
#. module: base_contact
#: field:res.partner,contact_id:0
msgid "Main Contact"
msgstr "Principal contact"
#. module: base_contact
#: view:res.partner:0
msgid "Fax:"
msgstr "Fax :"
#. module: base_contact
#: code:addons/base_contact/base_contact.py:31
#, python-format
msgid "Standalone Contact"
msgstr "Contact autonome"
#. module: base_contact
#: help:res.partner,nationality_id:0
msgid "Nationality."
msgstr "Nationalité."
#. module: base_contact
#: view:res.partner:0
msgid "Address"
msgstr "Adresse"
#. module: base_contact
#: field:res.partner,nationality_id:0
msgid "Nationality"
msgstr "Nationalité"
#. module: base_contact
#: code:addons/base_contact/base_contact.py:32
#, python-format
msgid "Attached to existing Contact"
msgstr "Contact rattaché à un contact existant"
#. module: base_contact
#: view:res.partner:0
msgid "ZIP"
msgstr "Code postal"
#. module: base_contact
#: view:res.partner:0
msgid "Country"
msgstr "Pays"
#. module: base_contact
#: field:res.partner,birthdate_date:0
msgid "Birthdate"
msgstr "Date de naissance"
#. module: base_contact
#: view:res.partner:0
msgid "Person"
msgstr "Personne"
#. module: base_contact
#: view:res.partner:0
msgid "Contact"
msgstr "Contact"
#. module: base_contact
#: view:res.partner:0
msgid "Mobile:"
msgstr "Portable :"
#. module: base_contact
#: view:res.partner:0
msgid "All partner positions"
msgstr "Tous les contacts"
#. module: base_contact
#: view:res.partner:0
msgid "All positions"
msgstr "Tous les contacts"
#. module: base_contact
#: model:ir.model,name:base_contact.model_ir_actions_act_window
msgid "ir.actions.act_window"
msgstr "ir.actions.act_window"
#. module: base_contact
#: view:res.partner:0
msgid "other positions"
msgstr "fonctions"
#. module: base_contact
#: field:res.partner,contact_type:0
msgid "Contact Type"
msgstr "Type de contact"
#. module: base_contact
#: model:ir.model,name:base_contact.model_res_partner
msgid "Partner"
msgstr "Partenaire"
#. module: base_contact
#: field:res.partner,other_contact_ids:0
msgid "Others Positions"
msgstr "Fonctions"
#. module: base_contact
#: view:res.partner:0
msgid "Personal Information"
msgstr "Informations personnelles"
#. module: base_contact
#: view:res.partner:0
msgid "e.g. Sales Director"
msgstr "ex: Directeur des ventes"

0
__unported__/base_contact/tests/__init__.py → base_contact/tests/__init__.py

8
__unported__/base_contact/tests/test_base_contact.py → base_contact/tests/test_base_contact.py

@ -122,12 +122,12 @@ class Test_Base_Contact(common.TransactionCase):
"""
cr, uid = self.cr, self.uid
# Bob's contact has one other position which is related to
# 'Your Company'
# so search for all contacts working for 'Your Company' should contain
# 'YourCompany'
# so search for all contacts working for 'YourCompany' should contain
# bob position.
partner_ids = self.partner.search(
cr, uid,
[('parent_id', 'ilike', 'Your Company')],
[('parent_id', 'ilike', 'YourCompany')],
context=None
)
self.assertIn(self.bob_job1_id, partner_ids, )
@ -137,7 +137,7 @@ class Test_Base_Contact(common.TransactionCase):
ctx = {'search_show_all_positions': False}
partner_ids = self.partner.search(
cr, uid,
[('parent_id', 'ilike', 'Your Company')],
[('parent_id', 'ilike', 'YourCompany')],
context=ctx
)
self.assertIn(self.bob_contact_id, partner_ids, )
Loading…
Cancel
Save