diff --git a/.travis.yml b/.travis.yml index 061cc7d52..b9b9313d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,31 @@ -sudo: required +sudo: false +cache: pip + +addons: + apt: + packages: + - expect-dev # provides unbuffer utility + - python-lxml # because pip installation is slow + language: python python: - "2.7" + env: - - VERSION="8.0" LINT_CHECK="1" - - VERSION="8.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" EXCLUDE="portal_partner_merge" - - VERSION="8.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0" EXCLUDE="portal_partner_merge" - - VERSION="8.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" INCLUDE="portal_partner_merge" - - VERSION="8.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0" INCLUDE="portal_partner_merge" + global: + - VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" + - TRANSIFEX_USER='transbot@odoo-community.org' + - secure: "R3Tr39zWkjHWyKxBuOoxtvkIZNipt+HbPccuh9+fLi5irikIN3y1+YofBbK/H/wqzg6Vv6mnmwlHfXixiDmZRzQ1GidZ3nFqZYhGREp4vuEjBEf+rUb5/Ijrn6Zspgl+CCDR7ET9E3wOLMRV4A39poPgIll0vALzrAdIbdRbDqc=" + + matrix: + - LINT_CHECK="1" + - TRANSIFEX="1" + - TESTS="1" ODOO_REPO="odoo/odoo" EXCLUDE="portal_partner_merge" + - TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="portal_partner_merge" + - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="portal_partner_merge" + - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="portal_partner_merge" virtualenv: system_site_packages: true @@ -25,4 +41,4 @@ script: - travis_run_tests after_success: - coveralls + - travis_after_tests_success diff --git a/README.md b/README.md index 0b4afa68f..b5d4b7ec7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Build Status](https://travis-ci.org/OCA/partner-contact.svg?branch=8.0)](https://travis-ci.org/OCA/partner-contact) -[![Coverage Status](https://coveralls.io/repos/OCA/partner-contact/badge.png?branch=8.0)](https://coveralls.io/r/OCA/partner-contact?branch=8.0) +[![Coverage Status](https://coveralls.io/repos/OCA/partner-contact/badge.svg?branch=8.0)](https://coveralls.io/r/OCA/partner-contact?branch=8.0) OCA partner and contact management modules for Odoo =================================================== @@ -13,6 +13,12 @@ Here you should find community modules that: * Manage cities and post codes. * Etc. + + +Translation Status +------------------ +[![Transifex Status](https://www.transifex.com/projects/p/OCA-partner-contact-8-0/chart/image_png)](https://www.transifex.com/projects/p/OCA-partner-contact-8-0) + ---- OCA, or the Odoo Community Association, is a nonprofit organization whose diff --git a/base_contact/README.rst b/base_contact/README.rst index b71305d94..3ed7f373f 100644 --- a/base_contact/README.rst +++ b/base_contact/README.rst @@ -4,8 +4,8 @@ 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. +- set several job positions in different companies per contact, +- set some extra informations like birthdate and nationality. Usage ===== @@ -20,7 +20,18 @@ For further information, please visit: Known issues / Roadmap ====================== - * Migrate to the new API +.. warning:: + **DEPRECATED!!** + + This module is deprecated and **will be removed in Odoo 9.0**. + + Its functionality has been split in 3 separate modules: + + - partner_contact_birthdate_ + - partner_contact_in_several_companies_ + - partner_contact_nationality_ + + You should consider using those instead. Credits ======= @@ -31,9 +42,10 @@ Contributors * Xavier ALT (original author) * EL HADJI DEM * TheCloneMaster -* Sandy Carter +* Sandy Carter * Rudolf Schnapka * Sebastien Alix +* Jairo Llopis Maintainer ---------- @@ -47,3 +59,8 @@ 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. + + +.. _partner_contact_birthdate: https://github.com/OCA/partner-contact/tree/8.0/partner_contact_birthdate +.. _partner_contact_in_several_companies: https://github.com/OCA/partner-contact/tree/8.0/partner_contact_in_several_companies +.. _partner_contact_nationality: https://github.com/OCA/partner-contact/tree/8.0/partner_contact_nationality diff --git a/base_contact/__init__.py b/base_contact/__init__.py index c68500207..1b67c0a1c 100644 --- a/base_contact/__init__.py +++ b/base_contact/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- + ############################################################################## # # OpenERP, Open Source Management Solution @@ -19,4 +20,13 @@ # ############################################################################## -from . import base_contact +import logging +import os + + +_logger = logging.getLogger(__name__ + ".deprecated") + +# Skip warnings on runbots +_method = _logger.info if "OCA_RUNBOT" in os.environ else _logger.warning +_method("This module is DEPRECATED. See %s/README.rst.", + os.path.dirname(__file__)) diff --git a/base_contact/__openerp__.py b/base_contact/__openerp__.py index d5ac8aee6..0155a35e2 100644 --- a/base_contact/__openerp__.py +++ b/base_contact/__openerp__.py @@ -21,24 +21,14 @@ { 'name': 'Contacts Management', - 'summary': u"Manage your contacts separately", - 'version': '1.0', + 'summary': u"[DEPRECATED] Manage your contacts separately", + 'version': '2.0.0', 'author': "OpenERP SA,Odoo Community Association (OCA)", 'website': 'http://www.openerp.com', 'category': 'Customer Relationship Management', - 'complexity': "expert", 'depends': [ - 'base', + 'partner_contact_birthdate', + 'partner_contact_in_several_companies', + 'partner_contact_nationality', ], - 'external_dependencies': {}, - 'data': [ - 'base_contact_view.xml', - ], - 'demo': [ - 'base_contact_demo.xml', - ], - 'test': [], - 'installable': True, - 'auto_install': False, - 'images': [], } diff --git a/base_contact/i18n/base_contact.pot b/base_contact/i18n/base_contact.pot deleted file mode 100644 index d6c25da1d..000000000 --- a/base_contact/i18n/base_contact.pot +++ /dev/null @@ -1,186 +0,0 @@ -# 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 \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 "" diff --git a/base_contact/i18n/de.po b/base_contact/i18n/de.po deleted file mode 100644 index 702587fae..000000000 --- a/base_contact/i18n/de.po +++ /dev/null @@ -1,191 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * base_contact -# -# Rudolf Schnapka , 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 \n" -"Language-Team: German \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" - diff --git a/base_contact/i18n/fr.po b/base_contact/i18n/fr.po deleted file mode 100644 index 6348d5b61..000000000 --- a/base_contact/i18n/fr.po +++ /dev/null @@ -1,188 +0,0 @@ -# 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 \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" diff --git a/base_contact/i18n/sl.po b/base_contact/i18n/sl.po deleted file mode 100644 index 3e8e6c367..000000000 --- a/base_contact/i18n/sl.po +++ /dev/null @@ -1,191 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * base_contact -# -# Matjaž Mozetič , 2015. -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: 2015-03-20 08:34+0100\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian \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: sl\n" - -#. module: base_contact -#: view:res.partner:0 -msgid "City" -msgstr "Kraj" - -#. module: base_contact -#: view:res.partner:0 -msgid "other position" -msgstr "drug položaj" - -#. module: base_contact -#: view:res.partner:0 -msgid "Contacts" -msgstr "Stiki" - -#. module: base_contact -#: view:res.partner:0 -msgid "" -"To see personal information about this contact, please go to to the his " -"person form:" -msgstr "" -"Za ogled osebnih podatkov o tem stiku pojdite na njegov glavni " -"obrazec:" - -#. module: base_contact -#: view:res.partner:0 -msgid "Street..." -msgstr "Ulica..." - -#. module: base_contact -#: view:res.partner:0 -msgid "State" -msgstr "Zvezna država" - -#. module: base_contact -#: view:res.partner:0 -msgid "at" -msgstr "pri" - -#. module: base_contact -#: view:res.partner:0 -msgid "Tags..." -msgstr "Oznake..." - -#. module: base_contact -#: view:res.partner:0 -msgid "Other Positions" -msgstr "Drugi položaji" - -#. module: base_contact -#: view:res.partner:0 -msgid "Phone:" -msgstr "Telefon:" - -#. module: base_contact -#: view:res.partner:0 -msgid "Company" -msgstr "Družba" - -#. module: base_contact -#: field:res.partner,contact_id:0 -msgid "Main Contact" -msgstr "Glavni stik" - -#. module: base_contact -#: view:res.partner:0 -msgid "Fax:" -msgstr "Faks:" - -#. module: base_contact -#: code:addons/base_contact/base_contact.py:31 -#, python-format -msgid "Standalone Contact" -msgstr "Samostojni stik" - -#. module: base_contact -#: help:res.partner,nationality_id:0 -msgid "Nationality." -msgstr "Nacionalnost" - -#. module: base_contact -#: view:res.partner:0 -msgid "Address" -msgstr "Naslov" - -#. module: base_contact -#: field:res.partner,nationality_id:0 -msgid "Nationality" -msgstr "Nacionalnost" - -#. module: base_contact -#: code:addons/base_contact/base_contact.py:32 -#, python-format -msgid "Attached to existing Contact" -msgstr "Pripeto obstoječemu stiku" - -#. module: base_contact -#: view:res.partner:0 -msgid "ZIP" -msgstr "Poštna številka" - -#. module: base_contact -#: view:res.partner:0 -msgid "Country" -msgstr "Država" - -#. module: base_contact -#: field:res.partner,birthdate_date:0 -msgid "Birthdate" -msgstr "Rojstni datum" - -#. module: base_contact -#: view:res.partner:0 -msgid "Person" -msgstr "Oseba" - -#. module: base_contact -#: view:res.partner:0 -msgid "Contact" -msgstr "Stik" - -#. module: base_contact -#: view:res.partner:0 -msgid "Mobile:" -msgstr "Mobilni telefon:" - -#. module: base_contact -#: view:res.partner:0 -msgid "All partner positions" -msgstr "Vsi partnerjevi položaji" - -#. module: base_contact -#: view:res.partner:0 -msgid "All positions" -msgstr "Vsi položaji" - -#. 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 "drugi položaji" - -#. module: base_contact -#: field:res.partner,contact_type:0 -msgid "Contact Type" -msgstr "Tip stika" - -#. 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 "Drugi položaji" - -#. module: base_contact -#: view:res.partner:0 -msgid "Personal Information" -msgstr "Osebni podatki" - -#. module: base_contact -#: view:res.partner:0 -msgid "e.g. Sales Director" -msgstr "npr. vodja prodaje" - diff --git a/base_contact/migrations/8.0.2.0/pre-migrate.py b/base_contact/migrations/8.0.2.0/pre-migrate.py new file mode 100644 index 000000000..2e6a32210 --- /dev/null +++ b/base_contact/migrations/8.0.2.0/pre-migrate.py @@ -0,0 +1,38 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + + +def migrate(cr, version): + """Update fields owner module to avoid Odoo deleting them on uninstall.""" + # partner_contact_birthdate + cr.execute("""UPDATE ir_model_data + SET module='partner_contact_birthdate' + WHERE module='base_contact' + AND name in ('field_res_partner_birthdate_date')""") + + # partner_contact_nationality + cr.execute("""UPDATE ir_model_data + SET module='partner_contact_nationality' + WHERE module='base_contact' + AND name in ('field_res_partner_nationality_id')""") + + # partner_contact_in_several_companies + cr.execute("""UPDATE ir_model_data + SET module='partner_contact_in_several_companies' + WHERE module='base_contact' + AND name LIKE 'field_%'""") diff --git a/base_continent/i18n/base_continent.po b/base_continent/i18n/base_continent.pot similarity index 100% rename from base_continent/i18n/base_continent.po rename to base_continent/i18n/base_continent.pot diff --git a/base_location/i18n/da.po b/base_location/i18n/da.po new file mode 100644 index 000000000..456ceb4c0 --- /dev/null +++ b/base_location/i18n/da.po @@ -0,0 +1,113 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_location +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-12-12 22:33+0000\n" +"PO-Revision-Date: 2015-05-22 13:19+0100\n" +"Last-Translator: Hans Henrik Gabelgaard \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.8\n" +"Language: da_DK\n" + +#. module: base_location +#: model:ir.actions.act_window,name:base_location.action_zip_tree +msgid "Cites/locations Management" +msgstr "By/Postnummer/Lokations administration" + +#. module: base_location +#: field:res.better.zip,city:0 +msgid "City" +msgstr "By" + +#. module: base_location +#: view:res.better.zip:0 field:res.better.zip,name:0 +msgid "ZIP" +msgstr "Postnr." + +#. module: base_location +#: field:res.better.zip,state_id:0 +msgid "State" +msgstr "Delstat" + +#. module: base_location +#: field:res.better.zip,country_id:0 +msgid "Country" +msgstr "Land." + +#. module: base_location +#: field:res.better.zip,priority:0 +msgid "Priority" +msgstr "Prioritet" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_company +msgid "Companies" +msgstr "Virksomheder" + +#. module: base_location +#: field:res.better.zip,code:0 +msgid "City Code" +msgstr "Postnummer" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_better_zip +msgid " City/locations completion object" +msgstr " Slå by/postnummer op" + +#. module: base_location +#: help:res.company,better_zip_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "Søg på bynavn eller postnummer" + +#. module: base_location +#: field:res.partner,zip_id:0 +msgid "City/Location" +msgstr "Postnr/by " + +#. module: base_location +#: view:res.better.zip:0 +msgid "Search city" +msgstr "Søg by" + +#. module: base_location +#: field:res.company,better_zip_id:0 +msgid "Location" +msgstr "Postnr/by " + +#. module: base_location +#: model:ir.ui.menu,name:base_location.zip_base +msgid "Cities/Locations Management" +msgstr "Byer/Loaktions administration" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: base_location +#: view:res.company:0 view:res.partner:0 +msgid "City completion" +msgstr "Slå by/postnummer op" + +#. module: base_location +#: field:res.country.state,better_zip_ids:0 +msgid "Cities" +msgstr "Byer" + +#. module: base_location +#: model:ir.model,name:base_location.model_res_country_state +msgid "Country state" +msgstr "Delstat/region" + +#. module: base_location +#: help:res.better.zip,code:0 +msgid "The official code for the city" +msgstr "Postnummer" diff --git a/base_partner_sequence/partner.py b/base_partner_sequence/partner.py index 190391fcc..9f66b41d5 100644 --- a/base_partner_sequence/partner.py +++ b/base_partner_sequence/partner.py @@ -21,7 +21,7 @@ # ############################################################################## -from openerp.osv import orm, fields +from openerp.osv import orm class ResPartner(orm.Model): @@ -65,10 +65,6 @@ class ResPartner(orm.Model): context=context) return vals.get('is_company') or not vals.get('parent_id') - _columns = { - 'ref': fields.char('Reference', size=64, readonly=True), - } - def _commercial_fields(self, cr, uid, context=None): """ Make the partner reference a field that is propagated diff --git a/partner_contact_birthdate/README.rst b/partner_contact_birthdate/README.rst new file mode 100644 index 000000000..590cd7f74 --- /dev/null +++ b/partner_contact_birthdate/README.rst @@ -0,0 +1,79 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Module name +=========== + +This module was written to extend the functionality of Odoo to support setting +a birthdate using a date format and allow you to benefit of a clearer API and +UI. + +Installation +============ + +To install this module, you need to: + +* Ensure that the current contents of the *birthdate* field in the + *res.partner* model in your database are empty or in a format easily readable + by the python function strptime_ in case you want this module to + automatically convert those to the new format. +* Install the OCA repository `partner-contact`_. +* Update your modules list. +* Search and install this module. + +Configuration +============= + +No configuration is needed. + +Usage +===== + +To use this module, you need to: + +* Edit or create a partner. +* Ensure it is **not** a company. +* Go to the *Personal Information* sheet. +* Set the birthdate there. + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 +* https://github.com/OCA/partner-contact/ + +Known issues / Roadmap +====================== + +* If you have data in your *res.partner* records' *birthdate* field that cannot + be converted to date by Pyhton's strptime_ function, those records will have + an empty *birthdate_date* after install. + +Credits +======= + +Contributors +------------ + +* EL Hadji DEM +* Jairo Llopis +* Matjaž Mozetič +* Rudolf Schnapka + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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. + + +.. _partner-contact: https://github.com/OCA/partner-contact/ +.. _strptime: https://docs.python.org/2/library/datetime.html#datetime.datetime.strptime diff --git a/partner_contact_birthdate/__init__.py b/partner_contact_birthdate/__init__.py new file mode 100644 index 000000000..3b3430c28 --- /dev/null +++ b/partner_contact_birthdate/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from . import models diff --git a/partner_contact_birthdate/__openerp__.py b/partner_contact_birthdate/__openerp__.py new file mode 100644 index 000000000..fd6a8aed0 --- /dev/null +++ b/partner_contact_birthdate/__openerp__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +{ + "name": "Contact's birthdate", + "version": "1.0", + "author": "Odoo Community Association (OCA)", + "category": "Customer Relationship Management", + "website": "https://odoo-community.org/", + "depends": [ + "partner_contact_personal_information_page", + ], + "data": [ + "views/res_partner.xml", + ], +} diff --git a/partner_contact_birthdate/data/res_partner.yml b/partner_contact_birthdate/data/res_partner.yml new file mode 100644 index 000000000..2b3d5efe9 --- /dev/null +++ b/partner_contact_birthdate/data/res_partner.yml @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +- !function {model: res.partner, name: _birthdate_install} diff --git a/partner_contact_birthdate/i18n/de.po b/partner_contact_birthdate/i18n/de.po new file mode 100644 index 000000000..fb55fa663 --- /dev/null +++ b/partner_contact_birthdate/i18n/de.po @@ -0,0 +1,37 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Rudolf Schnapka , 2014. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:17+0000\n" +"PO-Revision-Date: 2015-05-20 09:20+0100\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German \n" +"Language: de\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.7.6\n" + +#. module: partner_contact_birthdate +#: field:res.partner,birthdate_date:0 +msgid "Birthdate" +msgstr "Geburtsdatum" + +#. module: partner_contact_birthdate +#: code:addons/partner_contact_birthdate/models.py:52 +#, python-format +msgid "" +"Could not convert '{0.birthdate}' to date in res.partner {0.id} ({0.name}). " +"Skipping." +msgstr "" + +#. module: partner_contact_birthdate +#: model:ir.model,name:partner_contact_birthdate.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_birthdate/i18n/es.po b/partner_contact_birthdate/i18n/es.po new file mode 100644 index 000000000..186164de1 --- /dev/null +++ b/partner_contact_birthdate/i18n/es.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthdate +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:17+0000\n" +"PO-Revision-Date: 2015-05-20 09:21+0100\n" +"Last-Translator: Jairo Llopis \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.6\n" +"Language: es_ES\n" + +#. module: partner_contact_birthdate +#: field:res.partner,birthdate_date:0 +msgid "Birthdate" +msgstr "Fecha de nacimiento" + +#. module: partner_contact_birthdate +#: code:addons/partner_contact_birthdate/models.py:52 +#, python-format +msgid "" +"Could not convert '{0.birthdate}' to date in res.partner {0.id} ({0.name}). " +"Skipping." +msgstr "" +"No se pudo convertir '{0.birthdate}' en fecha en el res.partner {0.id} ({0." +"name}). Omitiéndolo." + +#. module: partner_contact_birthdate +#: model:ir.model,name:partner_contact_birthdate.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_birthdate/i18n/fr.po b/partner_contact_birthdate/i18n/fr.po new file mode 100644 index 000000000..027d1e9b6 --- /dev/null +++ b/partner_contact_birthdate/i18n/fr.po @@ -0,0 +1,36 @@ +# 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: 2015-05-20 07:17+0000\n" +"PO-Revision-Date: 2015-05-20 09:20+0100\n" +"Last-Translator: EL Hadji DEM \n" +"Language-Team: \n" +"Language: fr\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.7.6\n" + +#. module: partner_contact_birthdate +#: field:res.partner,birthdate_date:0 +msgid "Birthdate" +msgstr "Date de naissance" + +#. module: partner_contact_birthdate +#: code:addons/partner_contact_birthdate/models.py:52 +#, python-format +msgid "" +"Could not convert '{0.birthdate}' to date in res.partner {0.id} ({0.name}). " +"Skipping." +msgstr "" + +#. module: partner_contact_birthdate +#: model:ir.model,name:partner_contact_birthdate.model_res_partner +msgid "Partner" +msgstr "Partenaire" diff --git a/partner_contact_birthdate/i18n/partner_contact_birthdate.pot b/partner_contact_birthdate/i18n/partner_contact_birthdate.pot new file mode 100644 index 000000000..cff48d4de --- /dev/null +++ b/partner_contact_birthdate/i18n/partner_contact_birthdate.pot @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthdate +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:17+0000\n" +"PO-Revision-Date: 2015-05-20 07:17+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_contact_birthdate +#: field:res.partner,birthdate_date:0 +msgid "Birthdate" +msgstr "" + +#. module: partner_contact_birthdate +#: code:addons/partner_contact_birthdate/models.py:52 +#, python-format +msgid "Could not convert '{0.birthdate}' to date in res.partner {0.id} ({0.name}). Skipping." +msgstr "" + +#. module: partner_contact_birthdate +#: model:ir.model,name:partner_contact_birthdate.model_res_partner +msgid "Partner" +msgstr "" + diff --git a/partner_contact_birthdate/i18n/sl.po b/partner_contact_birthdate/i18n/sl.po new file mode 100644 index 000000000..9bf95203f --- /dev/null +++ b/partner_contact_birthdate/i18n/sl.po @@ -0,0 +1,39 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Matjaž Mozetič , 2015. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-02 08:17+0200\n" +"PO-Revision-Date: 2015-08-02 08:17+0200\n" +"Last-Translator: Matjaz Mozetic \n" +"Language-Team: Slovenian \n" +"Language: sl\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.8.2\n" + +#. module: partner_contact_birthdate +#: field:res.partner,birthdate_date:0 +msgid "Birthdate" +msgstr "Rojstni datum" + +#. module: partner_contact_birthdate +#: code:addons/partner_contact_birthdate/models.py:52 +#, python-format +msgid "" +"Could not convert '{0.birthdate}' to date in res.partner {0.id} ({0.name}). " +"Skipping." +msgstr "" +"Ni možna pretvorba '{0.birthdate}' v datum v res.partner {0.id} ({0." +"name}). Preskoči." + +#. module: partner_contact_birthdate +#: model:ir.model,name:partner_contact_birthdate.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_birthdate/models.py b/partner_contact_birthdate/models.py new file mode 100644 index 000000000..2686fed6d --- /dev/null +++ b/partner_contact_birthdate/models.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from openerp import _, api, fields, models +import logging + + +_logger = logging.getLogger(__name__) + + +class Partner(models.Model): + """Partner with birth date in date format.""" + _inherit = "res.partner" + + # New birthdate field in date format + birthdate_date = fields.Date("Birthdate") + + # Make the old Char field to reflect the new Date field + birthdate = fields.Char( + compute="_birthdate_compute", + inverse="_birthdate_inverse", + store=True) + + @api.one + @api.depends("birthdate_date") + def _birthdate_compute(self): + """Store a string of the new date in the old field.""" + self.birthdate = self.birthdate_date + + @api.one + def _birthdate_inverse(self): + """Convert the old Char date to the new Date format.""" + try: + self.birthdate_date = self.birthdate + except ValueError: + _logger.warn( + _("Could not convert '{0.birthdate}' to date in " + "res.partner {0.id} ({0.name}). Skipping.").format(self)) + + @api.model + def _birthdate_install(self): + """Export all old birthdates to the new format.""" + self.search([('birthdate', "!=", False)])._inverse_birthdate() diff --git a/partner_contact_birthdate/tests/__init__.py b/partner_contact_birthdate/tests/__init__.py new file mode 100644 index 000000000..73d8cb813 --- /dev/null +++ b/partner_contact_birthdate/tests/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from . import test_birthdate diff --git a/partner_contact_birthdate/tests/test_birthdate.py b/partner_contact_birthdate/tests/test_birthdate.py new file mode 100644 index 000000000..1782d3a40 --- /dev/null +++ b/partner_contact_birthdate/tests/test_birthdate.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from openerp import fields +from openerp.tests.common import TransactionCase +from datetime import date + + +class GoodCase(TransactionCase): + def setUp(self): + super(GoodCase, self).setUp() + self.partner = self.env["res.partner"].create({"name": str(self)}) + self.birthdate = date.today() + + def tearDown(self): + self.assertEqual(self.partner.birthdate, self.partner.birthdate_date) + super(GoodCase, self).tearDown() + + def test_new_to_old(self): + self.partner.birthdate_date = self.birthdate + + def test_old_to_new(self): + self.partner.birthdate = fields.Date.to_string(self.birthdate) + + +class BadCase(TransactionCase): + def setUp(self): + super(BadCase, self).setUp() + self.partner = self.env["res.partner"].create({"name": str(self)}) + self.birthdate = date.today() + + def tearDown(self): + self.assertNotEqual(self.partner.birthdate, + self.partner.birthdate_date) + super(BadCase, self).tearDown() + + def test_old_to_new(self): + self.partner.birthdate = "Not a date" diff --git a/partner_contact_birthdate/views/res_partner.xml b/partner_contact_birthdate/views/res_partner.xml new file mode 100644 index 000000000..d3ec7399b --- /dev/null +++ b/partner_contact_birthdate/views/res_partner.xml @@ -0,0 +1,19 @@ + + + + + + Birthdate Date field + res.partner + + + + + + + + + + + + diff --git a/partner_contact_gender/README.rst b/partner_contact_gender/README.rst new file mode 100644 index 000000000..9ec0f96f0 --- /dev/null +++ b/partner_contact_gender/README.rst @@ -0,0 +1,58 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Partner Gender +============== + +This module was written to extend the functionality of Odoo contacts manager to +support setting the gender of a partner. + +Installation +============ + +To install this module, you need to: + +* Install the `partner-contact`_ repository. + + +.. _partner-contact: https://github.com/OCA/partner-contact/ + +Usage +===== + +To use this module, you need to: + +* Edit a partner or create a new one. +* Ensure the partner is **not** a company. +* Go to the *Personal information* sheet. +* Set the gender there. + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 +* https://github.com/OCA/partner-contact/ + +Credits +======= + +* Icon from `Font Awesome `_. + +Contributors +------------ + +* Jairo Llopis + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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. diff --git a/partner_contact_gender/__init__.py b/partner_contact_gender/__init__.py new file mode 100644 index 000000000..685080d25 --- /dev/null +++ b/partner_contact_gender/__init__.py @@ -0,0 +1,19 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from . import models diff --git a/partner_contact_gender/__openerp__.py b/partner_contact_gender/__openerp__.py new file mode 100644 index 000000000..f8e750e09 --- /dev/null +++ b/partner_contact_gender/__openerp__.py @@ -0,0 +1,35 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +{ + "name": "Contact gender", + "version": "1.0", + "category": "Customer Relationship Management", + "author": "Odoo Community Association (OCA), Grupo ESOC", + "license": "AGPL-3", + "website": "https://odoo-community.org/", + "installable": True, + "application": False, + "summary": "Add gender field to contacts", + "depends": [ + "partner_contact_personal_information_page", + ], + "data": [ + "views/res_partner.xml", + ], +} diff --git a/partner_contact_gender/i18n/es.po b/partner_contact_gender/i18n/es.po new file mode 100644 index 000000000..f58f87b5a --- /dev/null +++ b/partner_contact_gender/i18n/es.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_gender +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-18 10:55+0000\n" +"PO-Revision-Date: 2015-05-18 12:57+0100\n" +"Last-Translator: Jairo Llopis \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.6\n" +"Language: es_ES\n" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Female" +msgstr "Femenino" + +#. module: partner_gender +#: field:res.partner,gender:0 +msgid "Gender" +msgstr "Género" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Male" +msgstr "Masculino" + +#. module: partner_gender +#: model:ir.model,name:partner_gender.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_gender/i18n/partner_gender.pot b/partner_contact_gender/i18n/partner_gender.pot new file mode 100644 index 000000000..b7839051f --- /dev/null +++ b/partner_contact_gender/i18n/partner_gender.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_gender +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-18 10:55+0000\n" +"PO-Revision-Date: 2015-05-18 10:55+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Female" +msgstr "" + +#. module: partner_gender +#: field:res.partner,gender:0 +msgid "Gender" +msgstr "" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Male" +msgstr "" + +#. module: partner_gender +#: model:ir.model,name:partner_gender.model_res_partner +msgid "Partner" +msgstr "" + diff --git a/partner_contact_gender/models.py b/partner_contact_gender/models.py new file mode 100644 index 000000000..88f632381 --- /dev/null +++ b/partner_contact_gender/models.py @@ -0,0 +1,26 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from openerp import fields, models + + +class Partner(models.Model): + """Partners with gender.""" + _inherit = "res.partner" + + gender = fields.Selection([('male', 'Male'), ('female', 'Female')]) diff --git a/partner_contact_gender/static/description/icon.png b/partner_contact_gender/static/description/icon.png new file mode 100644 index 000000000..e3761210a Binary files /dev/null and b/partner_contact_gender/static/description/icon.png differ diff --git a/partner_contact_gender/static/description/icon.svg b/partner_contact_gender/static/description/icon.svg new file mode 100644 index 000000000..2a087ff6d --- /dev/null +++ b/partner_contact_gender/static/description/icon.svg @@ -0,0 +1,45 @@ + + + + + + + image/svg+xml + + + + + + + + diff --git a/partner_contact_gender/views/res_partner.xml b/partner_contact_gender/views/res_partner.xml new file mode 100644 index 000000000..fdaa83893 --- /dev/null +++ b/partner_contact_gender/views/res_partner.xml @@ -0,0 +1,38 @@ + + + + + + + + + Partner gender + res.partner + + + + + + + + + + + + diff --git a/partner_contact_in_several_companies/README.rst b/partner_contact_in_several_companies/README.rst new file mode 100644 index 000000000..2c9d9dc91 --- /dev/null +++ b/partner_contact_in_several_companies/README.rst @@ -0,0 +1,68 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Module name +=========== + +This module was written to extend the contact management functionality. It +allows you to set several job positions in different companies per contact. + +Installation +============ + +To install this module, you need to: + +* Install the OCA repository `partner-contact`_. + +Configuration +============= + +No configuration is needed. + +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 +* https://github.com/OCA/partner-contact/ + +Known issues / Roadmap +====================== + +* Update to v8 API. + +Credits +======= + +Contributors +------------ + +* Xavier ALT (original author) +* EL HADJI DEM +* TheCloneMaster +* Sandy Carter +* Rudolf Schnapka +* Sebastien Alix +* Jairo Llopis + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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. + + +.. _partner-contact: https://github.com/OCA/partner-contact/ diff --git a/partner_contact_in_several_companies/__init__.py b/partner_contact_in_several_companies/__init__.py new file mode 100644 index 000000000..3b3430c28 --- /dev/null +++ b/partner_contact_in_several_companies/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from . import models diff --git a/partner_contact_in_several_companies/__openerp__.py b/partner_contact_in_several_companies/__openerp__.py new file mode 100644 index 000000000..7685dbc2a --- /dev/null +++ b/partner_contact_in_several_companies/__openerp__.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +{ + "name": "Contacts in several partners", + "summary": "Allow to have one contact in several partners", + "version": "1.0.0", + "author": "Odoo Community Association (OCA)", + "category": "Customer Relationship Management", + "website": "https://odoo-community.org/", + "depends": [ + "partner_contact_personal_information_page", + ], + "data": [ + "views/res_partner.xml", + ], + "demo": [ + "demo/res_partner.xml", + ], +} diff --git a/base_contact/base_contact_demo.xml b/partner_contact_in_several_companies/demo/res_partner.xml similarity index 100% rename from base_contact/base_contact_demo.xml rename to partner_contact_in_several_companies/demo/res_partner.xml diff --git a/partner_contact_in_several_companies/i18n/de.po b/partner_contact_in_several_companies/i18n/de.po new file mode 100644 index 000000000..ef513dde0 --- /dev/null +++ b/partner_contact_in_several_companies/i18n/de.po @@ -0,0 +1,171 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Rudolf Schnapka , 2014. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 09:26+0000\n" +"PO-Revision-Date: 2015-05-20 11:27+0100\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German \n" +"Language: de\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.7.6\n" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Address" +msgstr "Anschrift" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All partner positions" +msgstr "Alle Positionen des Partners" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All positions" +msgstr "Alle Positionen" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:32 +#, python-format +msgid "Attached to existing Contact" +msgstr "Mit bestehendem Kontakt verknüpft" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "City" +msgstr "Stadt" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Company" +msgstr "Unternehmen" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contact" +msgstr "Kontakt" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_type:0 +msgid "Contact Type" +msgstr "Kontaktart" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contacts" +msgstr "Kontakte" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Country" +msgstr "Land" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Fax:" +msgstr "Fax:" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_id:0 +msgid "Main Contact" +msgstr "Hauptkontakt" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Mobile:" +msgstr "Mobil:" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Other Positions" +msgstr "Andere Positionen" + +#. module: partner_contact_in_several_companies +#: field:res.partner,other_contact_ids:0 +msgid "Others Positions" +msgstr "Andere Positionen" + +#. module: partner_contact_in_several_companies +#: model:ir.model,name:partner_contact_in_several_companies.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "Person" +msgstr "Person" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Phone:" +msgstr "Telefon:" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:31 +#, python-format +msgid "Standalone Contact" +msgstr "Alleinstehender Kontakt" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "State" +msgstr "Bundesland" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Street..." +msgstr "Straße..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Tags..." +msgstr "Schlagworte..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_personal_information +#, fuzzy +msgid "" +"To see personal information about this contact, please\n" +" 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: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "ZIP" +msgstr "PLZ" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "at" +msgstr "bei" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "e.g. Sales Director" +msgstr "z. B. Verkaufsleiter" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other position" +msgstr "andere Position" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other positions" +msgstr "andere Positionen" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "{'invisible': [('contact_type','=','attached')]}" +msgstr "" diff --git a/partner_contact_in_several_companies/i18n/es.po b/partner_contact_in_several_companies/i18n/es.po new file mode 100644 index 000000000..55cfe0228 --- /dev/null +++ b/partner_contact_in_several_companies/i18n/es.po @@ -0,0 +1,170 @@ +# 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: 2015-05-20 09:26+0000\n" +"PO-Revision-Date: 2015-05-20 11:33+0100\n" +"Last-Translator: Jairo Llopis \n" +"Language-Team: \n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.6\n" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Address" +msgstr "Dirección" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All partner positions" +msgstr "Todas las posiciones de empresa" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All positions" +msgstr "Todas las posiciones" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:32 +#, python-format +msgid "Attached to existing Contact" +msgstr "Anexado a un contacto existente" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "City" +msgstr "Ciudad" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Company" +msgstr "Compañía" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contact" +msgstr "Contacto" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_type:0 +msgid "Contact Type" +msgstr "Tipo de contacto" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contacts" +msgstr "Contactos" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Country" +msgstr "País" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Fax:" +msgstr "Fax:" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_id:0 +msgid "Main Contact" +msgstr "Contacto principal" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Mobile:" +msgstr "Teléfono móvil:" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Other Positions" +msgstr "Otras posiciones" + +#. module: partner_contact_in_several_companies +#: field:res.partner,other_contact_ids:0 +msgid "Others Positions" +msgstr "Otras posiciones" + +#. module: partner_contact_in_several_companies +#: model:ir.model,name:partner_contact_in_several_companies.model_res_partner +msgid "Partner" +msgstr "Empresa" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "Person" +msgstr "Persona" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Phone:" +msgstr "Teléfono:" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:31 +#, python-format +msgid "Standalone Contact" +msgstr "Contacto independiente" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "State" +msgstr "Provincia" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Street..." +msgstr "Calle..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Tags..." +msgstr "Etiquetas..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_personal_information +#, fuzzy +msgid "" +"To see personal information about this contact, please\n" +" go to to the his person form:" +msgstr "" +"Para ver la información personal de este contacto, por favor vaya a su " +"formulario personal:" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "ZIP" +msgstr "C.P." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "at" +msgstr "en" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "e.g. Sales Director" +msgstr "ej.: Director de ventas" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other position" +msgstr "otra posición" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other positions" +msgstr "otras posiciones" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "{'invisible': [('contact_type','=','attached')]}" +msgstr "" diff --git a/partner_contact_in_several_companies/i18n/fr.po b/partner_contact_in_several_companies/i18n/fr.po new file mode 100644 index 000000000..811c3c8ca --- /dev/null +++ b/partner_contact_in_several_companies/i18n/fr.po @@ -0,0 +1,170 @@ +# 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: 2015-05-20 09:26+0000\n" +"PO-Revision-Date: 2015-05-20 11:28+0100\n" +"Last-Translator: EL Hadji DEM \n" +"Language-Team: \n" +"Language: fr\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.7.6\n" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Address" +msgstr "Adresse" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All partner positions" +msgstr "Tous les contacts" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All positions" +msgstr "Tous les contacts" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:32 +#, python-format +msgid "Attached to existing Contact" +msgstr "Contact rattaché à un contact existant" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "City" +msgstr "Ville" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Company" +msgstr "Organisme" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contact" +msgstr "Contact" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_type:0 +msgid "Contact Type" +msgstr "Type de contact" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contacts" +msgstr "Contacts" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Country" +msgstr "Pays" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Fax:" +msgstr "Fax :" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_id:0 +msgid "Main Contact" +msgstr "Principal contact" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Mobile:" +msgstr "Portable :" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Other Positions" +msgstr "Fonctions" + +#. module: partner_contact_in_several_companies +#: field:res.partner,other_contact_ids:0 +msgid "Others Positions" +msgstr "Fonctions" + +#. module: partner_contact_in_several_companies +#: model:ir.model,name:partner_contact_in_several_companies.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "Person" +msgstr "Personne" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Phone:" +msgstr "Téléphone:" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:31 +#, python-format +msgid "Standalone Contact" +msgstr "Contact autonome" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "State" +msgstr "État" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Street..." +msgstr "Rue..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Tags..." +msgstr "Étiquettes..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_personal_information +#, fuzzy +msgid "" +"To see personal information about this contact, please\n" +" 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: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "ZIP" +msgstr "Code postal" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "at" +msgstr "à" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "e.g. Sales Director" +msgstr "ex: Directeur des ventes" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other position" +msgstr "fonction" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other positions" +msgstr "fonctions" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "{'invisible': [('contact_type','=','attached')]}" +msgstr "" diff --git a/partner_contact_in_several_companies/i18n/partner_contact_in_several_companies.pot b/partner_contact_in_several_companies/i18n/partner_contact_in_several_companies.pot new file mode 100644 index 000000000..4d75f72b7 --- /dev/null +++ b/partner_contact_in_several_companies/i18n/partner_contact_in_several_companies.pot @@ -0,0 +1,165 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_in_several_companies +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 09:26+0000\n" +"PO-Revision-Date: 2015-05-20 09:26+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Address" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All partner positions" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All positions" +msgstr "" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:32 +#, python-format +msgid "Attached to existing Contact" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "City" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Company" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contact" +msgstr "" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_type:0 +msgid "Contact Type" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contacts" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Country" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Fax:" +msgstr "" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_id:0 +msgid "Main Contact" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Mobile:" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Other Positions" +msgstr "" + +#. module: partner_contact_in_several_companies +#: field:res.partner,other_contact_ids:0 +msgid "Others Positions" +msgstr "" + +#. module: partner_contact_in_several_companies +#: model:ir.model,name:partner_contact_in_several_companies.model_res_partner +msgid "Partner" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "Person" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Phone:" +msgstr "" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:31 +#, python-format +msgid "Standalone Contact" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "State" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Street..." +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Tags..." +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_personal_information +msgid "To see personal information about this contact, please\n" +" go to to the his person form:" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "ZIP" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "at" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "e.g. Sales Director" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other position" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other positions" +msgstr "" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "{'invisible': [('contact_type','=','attached')]}" +msgstr "" + diff --git a/partner_contact_in_several_companies/i18n/sl.po b/partner_contact_in_several_companies/i18n/sl.po new file mode 100644 index 000000000..03a32763e --- /dev/null +++ b/partner_contact_in_several_companies/i18n/sl.po @@ -0,0 +1,170 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Matjaž Mozetič , 2015. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-02 08:21+0200\n" +"PO-Revision-Date: 2015-08-02 08:22+0200\n" +"Last-Translator: Matjaz Mozetic \n" +"Language-Team: Slovenian \n" +"Language: sl\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.8.2\n" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Address" +msgstr "Naslov" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All partner positions" +msgstr "Vsi partnerjevi položaji" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "All positions" +msgstr "Vsi položaji" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:32 +#, python-format +msgid "Attached to existing Contact" +msgstr "Pripeto obstoječemu stiku" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "City" +msgstr "Kraj" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Company" +msgstr "Družba" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contact" +msgstr "Stik" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_type:0 +msgid "Contact Type" +msgstr "Tip stika" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Contacts" +msgstr "Stiki" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Country" +msgstr "Država" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Fax:" +msgstr "Faks:" + +#. module: partner_contact_in_several_companies +#: field:res.partner,contact_id:0 +msgid "Main Contact" +msgstr "Glavni stik" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Mobile:" +msgstr "Mobilni telefon:" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Other Positions" +msgstr "Drugi položaji" + +#. module: partner_contact_in_several_companies +#: field:res.partner,other_contact_ids:0 +msgid "Others Positions" +msgstr "Drugi položaji" + +#. module: partner_contact_in_several_companies +#: model:ir.model,name:partner_contact_in_several_companies.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_filter_contact +msgid "Person" +msgstr "Oseba" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Phone:" +msgstr "Telefon:" + +#. module: partner_contact_in_several_companies +#: code:addons/partner_contact_in_several_companies/models.py:31 +#, python-format +msgid "Standalone Contact" +msgstr "Samostojni stik" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "State" +msgstr "Zvezna država" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Street..." +msgstr "Ulica..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "Tags..." +msgstr "Oznake..." + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_personal_information +msgid "" +"To see personal information about this contact, please\n" +" go to to the his person form:" +msgstr "" +"Za ogled osebnih podatkov o tem stiku\n" +"\t\t\tpojdite na njegov glavni obrazec:" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "ZIP" +msgstr "Poštna številka" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "at" +msgstr "pri" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "e.g. Sales Director" +msgstr "npr. vodja prodaje" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other position" +msgstr "drug položaj" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_res_partner_kanban_contact +msgid "other positions" +msgstr "drugi položaji" + +#. module: partner_contact_in_several_companies +#: view:res.partner:partner_contact_in_several_companies.view_partner_form_inherit +msgid "{'invisible': [('contact_type','=','attached')]}" +msgstr "{'invisible': [('contact_type','=','attached')]}" diff --git a/base_contact/base_contact.py b/partner_contact_in_several_companies/models.py similarity index 97% rename from base_contact/base_contact.py rename to partner_contact_in_several_companies/models.py index 00300db57..2493dc023 100644 --- a/base_contact/base_contact.py +++ b/partner_contact_in_several_companies/models.py @@ -62,12 +62,6 @@ class res_partner(orm.Model): 'contact_id', 'Others Positions', ), - - # Person specific fields - # add a 'birthdate' as date field, i.e different from char - # 'birthdate' introduced v6.1! - 'birthdate_date': fields.date('Birthdate'), - 'nationality_id': fields.many2one('res.country', 'Nationality'), } _defaults = { diff --git a/base_contact/tests/__init__.py b/partner_contact_in_several_companies/tests/__init__.py similarity index 93% rename from base_contact/tests/__init__.py rename to partner_contact_in_several_companies/tests/__init__.py index fbadb7091..bcbea6801 100644 --- a/base_contact/tests/__init__.py +++ b/partner_contact_in_several_companies/tests/__init__.py @@ -19,8 +19,4 @@ # ############################################################################## -from . import test_base_contact - -checks = [ - test_base_contact, -] +from . import test_partner_contact_in_several_companies diff --git a/base_contact/tests/test_base_contact.py b/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py similarity index 92% rename from base_contact/tests/test_base_contact.py rename to partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py index f395979f4..fef06fd58 100644 --- a/base_contact/tests/test_base_contact.py +++ b/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py @@ -22,11 +22,11 @@ from openerp.tests import common -class Test_Base_Contact(common.TransactionCase): +class PartnerContactInSeveralCompaniesCase(common.TransactionCase): def setUp(self): """*****setUp*****""" - super(Test_Base_Contact, self).setUp() + super(PartnerContactInSeveralCompaniesCase, self).setUp() cr, uid = self.cr, self.uid ModelData = self.registry('ir.model.data') self.partner = self.registry('res.partner') @@ -34,12 +34,16 @@ class Test_Base_Contact(common.TransactionCase): # Get test records reference for attr, module, name in [ ('main_partner_id', 'base', 'main_partner'), - ('bob_contact_id', 'base_contact', 'res_partner_contact1'), - ('bob_job1_id', 'base_contact', - 'res_partner_contact1_work_position1'), + ('bob_contact_id', + 'partner_contact_in_several_companies', + 'res_partner_contact1'), + ('bob_job1_id', + 'partner_contact_in_several_companies', + 'res_partner_contact1_work_position1'), ('roger_contact_id', 'base', 'res_partner_main2'), - ('roger_job2_id', 'base_contact', - 'res_partner_main2_position_consultant')]: + ('roger_job2_id', + 'partner_contact_in_several_companies', + 'res_partner_main2_position_consultant')]: r = ModelData.get_object_reference(cr, uid, module, name) setattr(self, attr, r[1] if r else False) diff --git a/base_contact/base_contact_view.xml b/partner_contact_in_several_companies/views/res_partner.xml similarity index 93% rename from base_contact/base_contact_view.xml rename to partner_contact_in_several_companies/views/res_partner.xml index 749a36087..9026d1f96 100644 --- a/base_contact/base_contact_view.xml +++ b/partner_contact_in_several_companies/views/res_partner.xml @@ -151,16 +151,6 @@ - -

- To see personal information about this contact, please go to to the his person form: -

- - - - -
@@ -178,6 +168,27 @@ + + Contacts in several partners: personal info + res.partner + + + + +

+ To see personal information about this contact, please + go to to the his person form: + +

+
+
+
+
+ res.partner.kanban.contact res.partner diff --git a/partner_contact_nationality/README.rst b/partner_contact_nationality/README.rst new file mode 100644 index 000000000..41bee0784 --- /dev/null +++ b/partner_contact_nationality/README.rst @@ -0,0 +1,69 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Module name +=========== + +This module was written to extend the functionality of Odoo to support setting +a nationality for your contacts. + +Installation +============ + +To install this module, you need to: + +* Install the OCA repository `partner-contact`_. + +Configuration +============= + +No configuration is needed. + +Usage +===== + +To use this module, you need to: + +* Edit or create a partner. +* Ensure it is **not** a company. +* Go to the *Personal Information* sheet. +* Set the nationality there. + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 +* https://github.com/OCA/partner-contact/ + +Known issues / Roadmap +====================== + +* None. + +Credits +======= + +Contributors +------------ + +* EL Hadji DEM +* Jairo Llopis +* Matjaž Mozetič +* Rudolf Schnapka + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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. + + +.. _partner-contact: https://github.com/OCA/partner-contact/ diff --git a/partner_contact_nationality/__init__.py b/partner_contact_nationality/__init__.py new file mode 100644 index 000000000..3b3430c28 --- /dev/null +++ b/partner_contact_nationality/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from . import models diff --git a/partner_contact_nationality/__openerp__.py b/partner_contact_nationality/__openerp__.py new file mode 100644 index 000000000..0e6f831c1 --- /dev/null +++ b/partner_contact_nationality/__openerp__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +{ + "name": "Contact's nationality", + "version": "1.0.0", + "author": "Odoo Community Association (OCA)", + "category": "Customer Relationship Management", + "website": "https://odoo-community.org/", + "depends": [ + "partner_contact_personal_information_page", + ], + "data": [ + "views/res_partner.xml", + ], +} diff --git a/partner_contact_nationality/i18n/de.po b/partner_contact_nationality/i18n/de.po new file mode 100644 index 000000000..1d0c6c31f --- /dev/null +++ b/partner_contact_nationality/i18n/de.po @@ -0,0 +1,29 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Rudolf Schnapka , 2014. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:39+0100\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German \n" +"Language: de\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.7.6\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nationalität" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_nationality/i18n/es.po b/partner_contact_nationality/i18n/es.po new file mode 100644 index 000000000..02fe1c9b1 --- /dev/null +++ b/partner_contact_nationality/i18n/es.po @@ -0,0 +1,28 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_nationality +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:39+0100\n" +"Last-Translator: Jairo Llopis \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.6\n" +"Language: es_ES\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nacionalidad" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_nationality/i18n/fr.po b/partner_contact_nationality/i18n/fr.po new file mode 100644 index 000000000..7f0f41bbf --- /dev/null +++ b/partner_contact_nationality/i18n/fr.po @@ -0,0 +1,28 @@ +# 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: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:40+0100\n" +"Last-Translator: EL Hadji DEM \n" +"Language-Team: \n" +"Language: fr\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.7.6\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nationalité" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Partenaire" diff --git a/partner_contact_nationality/i18n/partner_contact_nationality.pot b/partner_contact_nationality/i18n/partner_contact_nationality.pot new file mode 100644 index 000000000..8294f4c16 --- /dev/null +++ b/partner_contact_nationality/i18n/partner_contact_nationality.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_nationality +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 07:38+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "" + diff --git a/partner_contact_nationality/i18n/sl.po b/partner_contact_nationality/i18n/sl.po new file mode 100644 index 000000000..d7553a3f9 --- /dev/null +++ b/partner_contact_nationality/i18n/sl.po @@ -0,0 +1,29 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Matjaž Mozetič , 2015. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:40+0100\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian \n" +"Language: sl\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.7.6\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nacionalnost" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_nationality/models.py b/partner_contact_nationality/models.py new file mode 100644 index 000000000..9f1ced20b --- /dev/null +++ b/partner_contact_nationality/models.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +from openerp import fields, models + + +class Partner(models.Model): + """Partner with nationality.""" + _inherit = "res.partner" + + nationality_id = fields.Many2one("res.country", "Nationality") diff --git a/partner_contact_nationality/views/res_partner.xml b/partner_contact_nationality/views/res_partner.xml new file mode 100644 index 000000000..1d6800df7 --- /dev/null +++ b/partner_contact_nationality/views/res_partner.xml @@ -0,0 +1,19 @@ + + + + + + Nationality field + res.partner + + + + + + + + + + + + diff --git a/partner_contact_personal_information_page/README.rst b/partner_contact_personal_information_page/README.rst new file mode 100644 index 000000000..6c680a69a --- /dev/null +++ b/partner_contact_personal_information_page/README.rst @@ -0,0 +1,59 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Contacts' Personal Information Page +=================================== + +This module was written to extend the contact management functionality. + +Its only purpose is to serve as a base for other modules that add personal +information fields to **contacts that are persons**. + +Installation +============ + +.. warning:: + **You should NOT install this module yourself**, because it does nothing by + itself. This module should get installed automatically when you install + other modules that actually do something useful. + +Usage +===== + +You can find a new page called *Personal Information* in the contact's form. + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 +* https://github.com/OCA/partner-contact/ + +Known issues / Roadmap +====================== + +* None. + +Credits +======= + +Contributors +------------ + +* EL Hadji DEM +* Jairo Llopis +* Matjaž Mozetič +* Rudolf Schnapka + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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. diff --git a/partner_contact_personal_information_page/__init__.py b/partner_contact_personal_information_page/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/partner_contact_personal_information_page/__openerp__.py b/partner_contact_personal_information_page/__openerp__.py new file mode 100644 index 000000000..9f6e7b333 --- /dev/null +++ b/partner_contact_personal_information_page/__openerp__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +{ + "name": "Personal information page for contacts", + "summary": "Add a page to contacts form to put personal information", + "version": "1.0.0", + "author": "Odoo Community Association (OCA)", + "category": "Customer Relationship Management", + "website": "https://odoo-community.org/", + "depends": [ + "base" + ], + "data": [ + "views/res_partner.xml", + ], +} diff --git a/partner_contact_personal_information_page/i18n/de.po b/partner_contact_personal_information_page/i18n/de.po new file mode 100644 index 000000000..ee0574c27 --- /dev/null +++ b/partner_contact_personal_information_page/i18n/de.po @@ -0,0 +1,24 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Rudolf Schnapka , 2014. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-19 10:13+0000\n" +"PO-Revision-Date: 2015-05-19 12:15+0100\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German \n" +"Language: de\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.7.6\n" + +#. module: partner_contact_base +#: view:res.partner:partner_contact_base.personal_information +msgid "Personal Information" +msgstr "Persönliche Auskunft" diff --git a/partner_contact_personal_information_page/i18n/es.po b/partner_contact_personal_information_page/i18n/es.po new file mode 100644 index 000000000..b1eadfcbb --- /dev/null +++ b/partner_contact_personal_information_page/i18n/es.po @@ -0,0 +1,23 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-19 10:13+0000\n" +"PO-Revision-Date: 2015-05-19 12:16+0100\n" +"Last-Translator: Jairo Llopis \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.6\n" +"Language: es_ES\n" + +#. module: partner_contact_base +#: view:res.partner:partner_contact_base.personal_information +msgid "Personal Information" +msgstr "Información personal" diff --git a/partner_contact_personal_information_page/i18n/fr.po b/partner_contact_personal_information_page/i18n/fr.po new file mode 100644 index 000000000..feea0af57 --- /dev/null +++ b/partner_contact_personal_information_page/i18n/fr.po @@ -0,0 +1,23 @@ +# 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: 2015-05-19 10:13+0000\n" +"PO-Revision-Date: 2015-05-19 12:15+0100\n" +"Last-Translator: EL Hadji DEM \n" +"Language-Team: \n" +"Language: fr\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.7.6\n" + +#. module: partner_contact_base +#: view:res.partner:partner_contact_base.personal_information +msgid "Personal Information" +msgstr "Informations personnelles" diff --git a/partner_contact_personal_information_page/i18n/partner_contact_personal_information_page.pot b/partner_contact_personal_information_page/i18n/partner_contact_personal_information_page.pot new file mode 100644 index 000000000..5a2c674df --- /dev/null +++ b/partner_contact_personal_information_page/i18n/partner_contact_personal_information_page.pot @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-19 10:13+0000\n" +"PO-Revision-Date: 2015-05-19 10:13+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_contact_base +#: view:res.partner:partner_contact_base.personal_information +msgid "Personal Information" +msgstr "" + diff --git a/partner_contact_personal_information_page/i18n/sl.po b/partner_contact_personal_information_page/i18n/sl.po new file mode 100644 index 000000000..622beafec --- /dev/null +++ b/partner_contact_personal_information_page/i18n/sl.po @@ -0,0 +1,24 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Matjaž Mozetič , 2015. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-19 10:13+0000\n" +"PO-Revision-Date: 2015-05-19 12:15+0100\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian \n" +"Language: sl\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.7.6\n" + +#. module: partner_contact_base +#: view:res.partner:partner_contact_base.personal_information +msgid "Personal Information" +msgstr "Osebni podatki" diff --git a/partner_contact_personal_information_page/views/res_partner.xml b/partner_contact_personal_information_page/views/res_partner.xml new file mode 100644 index 000000000..a49876169 --- /dev/null +++ b/partner_contact_personal_information_page/views/res_partner.xml @@ -0,0 +1,24 @@ + + + + + + Personal information page for contacts form + res.partner + + 2 + + + + + + + + + + + + + diff --git a/partner_external_maps/README.rst b/partner_external_maps/README.rst new file mode 100644 index 000000000..ab1ba5cf9 --- /dev/null +++ b/partner_external_maps/README.rst @@ -0,0 +1,65 @@ +Partner External Maps +===================== + +In the old days of Odoo/OpenERP, back in version 6.1, there was an official *google_map* module ; this module added a *Map* button on the partner form view and, when the user clicked on that button, it would open a new tab on its web browser and go to Google Map with a search on the address of the partner. + +This module aims at restoring this feature with several improvements: + +* each user can select the map website he wants to use in its preferences + +* there are now two buttons on the partner form view: one to open a regular map on the address of the partner, and another one to open an itinerary map from the start address configured in the preferences of the user to the address of the partner. + +This module supports several map websites: + +* `Google Maps ` + +* `OpenStreetMap ` + +* `Bing Maps ` + +* `Here Maps ` + +* `MapQuest ` + +* `Yahoo! Maps ` + +If the module *base_geolocalize* from the official addons is installed on the system, it will use the latitude and longitude to localize the partner (instead of the address) if this information is present on the partner. + +Configuration +============= + +If you want to create additionnal map websites, go to the menu *Sales > Configuration > Address Book > Localization > Map Websites*. You are invited to send the configuration information of your additionnal map websites to the author of the module, so that the module can be updated with more pre-configured map websites. + +Usage +===== + +First, you need to configure in your preferences: + +* the map website to use for the regular maps, + +* the map website to use for the route maps, + +* the start address for the route maps. + +Then you can use the two new buttons on the partner form to open a regular map or a route map. + +Credits +======= + +Contributors +------------ + +* Alexis de Lattre + +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. diff --git a/partner_external_maps/__init__.py b/partner_external_maps/__init__.py new file mode 100644 index 000000000..30f77e03d --- /dev/null +++ b/partner_external_maps/__init__.py @@ -0,0 +1,4 @@ +# -*- encoding: utf-8 -*- + +from . import partner_external_maps +from .post_install import set_default_map_settings diff --git a/partner_external_maps/__openerp__.py b/partner_external_maps/__openerp__.py new file mode 100644 index 000000000..0d548a1b6 --- /dev/null +++ b/partner_external_maps/__openerp__.py @@ -0,0 +1,43 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Partner External Maps module for Odoo +# Copyright (C) 2015 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# 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 . +# +############################################################################## + + +{ + 'name': 'Partner External Maps', + 'version': '0.1', + 'category': 'Extra Tools', + 'license': 'AGPL-3', + 'summary': 'Add Map and Map Routing buttons on partner form to ' + 'open GMaps, OSM, Bing and others', + 'author': 'Akretion,Odoo Community Association (OCA)', + 'website': 'http://www.akretion.com', + 'depends': ['base'], + 'data': [ + 'partner_view.xml', + 'map_website_data.xml', + 'map_website_view.xml', + 'users_view.xml', + 'security/ir.model.access.csv', + ], + 'post_init_hook': 'set_default_map_settings', + 'installable': True, +} diff --git a/partner_external_maps/i18n/fr.po b/partner_external_maps/i18n/fr.po new file mode 100644 index 000000000..0714d721c --- /dev/null +++ b/partner_external_maps/i18n/fr.po @@ -0,0 +1,190 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_external_maps +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-19 19:42+0000\n" +"PO-Revision-Date: 2015-06-19 19:42+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:115 +#, python-format +msgid "Address missing on partner '%s'." +msgstr "Adresse manquante sur le partenaire '%s'." + +#. module: partner_external_maps +#: field:map.website,create_uid:0 +msgid "Created by" +msgstr "Créé par" + +#. module: partner_external_maps +#: field:map.website,create_date:0 +msgid "Created on" +msgstr "Créé le" + +#. module: partner_external_maps +#: field:map.website,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_external_maps +#: help:map.website,address_url:0 +msgid "In this URL, {ADDRESS} will be replaced by the address." +msgstr "" + +#. module: partner_external_maps +#: help:map.website,lat_lon_url:0 +msgid "In this URL, {LATITUDE} and {LONGITUDE} will be replaced by the latitude and longitude (requires the module 'base_geolocalize')" +msgstr "" + +#. module: partner_external_maps +#: help:map.website,route_address_url:0 +msgid "In this URL, {START_ADDRESS} and {DEST_ADDRESS} will be replaced by the start and destination addresses." +msgstr "" + +#. module: partner_external_maps +#: help:map.website,route_lat_lon_url:0 +msgid "In this URL, {START_LATITUDE}, {START_LONGITUDE}, {DEST_LATITUDE} and {DEST_LONGITUDE} will be replaced by the latitude and longitude of the start and destination adresses (requires the module 'base_geolocalize')." +msgstr "" + +#. module: partner_external_maps +#: field:map.website,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: partner_external_maps +#: view:res.partner:partner_external_maps.view_partner_form +msgid "Map" +msgstr "Carte" + +#. module: partner_external_maps +#: model:ir.model,name:partner_external_maps.model_map_website +#: view:map.website:partner_external_maps.map_website_form +#: field:res.users,context_map_website_id:0 +msgid "Map Website" +msgstr "Site de carte" + +#. module: partner_external_maps +#: field:map.website,name:0 +msgid "Map Website Name" +msgstr "Nom du site de carte" + +#. module: partner_external_maps +#: model:ir.actions.act_window,name:partner_external_maps.map_website_action +#: model:ir.ui.menu,name:partner_external_maps.map_website_menu +#: view:map.website:partner_external_maps.map_website_tree +msgid "Map Websites" +msgstr "Sites de carte" + +#. module: partner_external_maps +#: help:res.users,context_route_map_website_id:0 +msgid "Map provided used when you click on the car icon on the partner form to display an itinerary." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:191 +#, python-format +msgid "Missing geo-localization information on destination partner '%s'." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:187 +#, python-format +msgid "Missing geo-localization information on start partner '%s'." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:133 +#, python-format +msgid "Missing map provider: you should set it in your preferences." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:178 +#, python-format +msgid "Missing module 'base_geolocalize'" +msgstr "Module 'base_geolocalize' manquant" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:147 +#, python-format +msgid "Missing parameter 'URL that uses the address' for map website '%s'." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:162 +#, python-format +msgid "Missing route map website: you should set it in your preferences." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:167 +#, python-format +msgid "Missing start address for route map: you should set it in your preferences." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:181 +#, python-format +msgid "No route URL that uses latitude and longitude on map provider '%s'." +msgstr "" + +#. module: partner_external_maps +#: model:ir.model,name:partner_external_maps.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: partner_external_maps +#: view:res.partner:partner_external_maps.view_partner_form +msgid "Route Map" +msgstr "Itinéraire" + +#. module: partner_external_maps +#: field:res.users,context_route_map_website_id:0 +msgid "Route Map Website" +msgstr "Site web pour les itinéraires" + +#. module: partner_external_maps +#: field:map.website,route_lat_lon_url:0 +msgid "Route URL that uses latitude and longitude" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,route_address_url:0 +msgid "Route URL that uses the addresses" +msgstr "" + +#. module: partner_external_maps +#: field:res.users,context_route_start_partner_id:0 +msgid "Start Address for Route Map" +msgstr "Adresse de départ pour les itinéraires" + +#. module: partner_external_maps +#: field:map.website,lat_lon_url:0 +msgid "URL that uses latitude and longitude" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,address_url:0 +msgid "URL that uses the address" +msgstr "" + +#. module: partner_external_maps +#: model:ir.model,name:partner_external_maps.model_res_users +msgid "Users" +msgstr "Utilisateurs" + diff --git a/partner_external_maps/i18n/partner_external_maps.pot b/partner_external_maps/i18n/partner_external_maps.pot new file mode 100644 index 000000000..c779a90e5 --- /dev/null +++ b/partner_external_maps/i18n/partner_external_maps.pot @@ -0,0 +1,172 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_external_maps +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-19 19:55+0000\n" +"PO-Revision-Date: 2015-06-19 19:55+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:116 +#, python-format +msgid "Address missing on partner '%s'." +msgstr "" + +#. module: partner_external_maps +#: field:map.website,create_uid:0 +msgid "Created by" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,create_date:0 +msgid "Created on" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,id:0 +msgid "ID" +msgstr "" + +#. module: partner_external_maps +#: help:map.website,address_url:0 +msgid "In this URL, {ADDRESS} will be replaced by the address." +msgstr "" + +#. module: partner_external_maps +#: help:map.website,lat_lon_url:0 +msgid "In this URL, {LATITUDE} and {LONGITUDE} will be replaced by the latitude and longitude (requires the module 'base_geolocalize')" +msgstr "" + +#. module: partner_external_maps +#: help:map.website,route_address_url:0 +msgid "In this URL, {START_ADDRESS} and {DEST_ADDRESS} will be replaced by the start and destination addresses." +msgstr "" + +#. module: partner_external_maps +#: help:map.website,route_lat_lon_url:0 +msgid "In this URL, {START_LATITUDE}, {START_LONGITUDE}, {DEST_LATITUDE} and {DEST_LONGITUDE} will be replaced by the latitude and longitude of the start and destination adresses (requires the module 'base_geolocalize')." +msgstr "" + +#. module: partner_external_maps +#: field:map.website,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: partner_external_maps +#: view:res.partner:partner_external_maps.view_partner_form +msgid "Map" +msgstr "" + +#. module: partner_external_maps +#: model:ir.model,name:partner_external_maps.model_map_website +#: view:map.website:partner_external_maps.map_website_form +#: field:res.users,context_map_website_id:0 +msgid "Map Website" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,name:0 +msgid "Map Website Name" +msgstr "" + +#. module: partner_external_maps +#: model:ir.actions.act_window,name:partner_external_maps.map_website_action +#: model:ir.ui.menu,name:partner_external_maps.map_website_menu +#: view:map.website:partner_external_maps.map_website_tree +msgid "Map Websites" +msgstr "" + +#. module: partner_external_maps +#: help:res.users,context_route_map_website_id:0 +msgid "Map provided used when you click on the car icon on the partner form to display an itinerary." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:134 +#, python-format +msgid "Missing map provider: you should set it in your preferences." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:148 +#, python-format +msgid "Missing parameter 'URL that uses the address' for map website '%s'." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:187 +#, python-format +msgid "Missing route URL that uses the addresses for the map website '%s'" +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:163 +#, python-format +msgid "Missing route map website: you should set it in your preferences." +msgstr "" + +#. module: partner_external_maps +#: code:addons/partner_external_maps/partner_external_maps.py:168 +#, python-format +msgid "Missing start address for route map: you should set it in your preferences." +msgstr "" + +#. module: partner_external_maps +#: model:ir.model,name:partner_external_maps.model_res_partner +msgid "Partner" +msgstr "" + +#. module: partner_external_maps +#: view:res.partner:partner_external_maps.view_partner_form +msgid "Route Map" +msgstr "" + +#. module: partner_external_maps +#: field:res.users,context_route_map_website_id:0 +msgid "Route Map Website" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,route_lat_lon_url:0 +msgid "Route URL that uses latitude and longitude" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,route_address_url:0 +msgid "Route URL that uses the addresses" +msgstr "" + +#. module: partner_external_maps +#: field:res.users,context_route_start_partner_id:0 +msgid "Start Address for Route Map" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,lat_lon_url:0 +msgid "URL that uses latitude and longitude" +msgstr "" + +#. module: partner_external_maps +#: field:map.website,address_url:0 +msgid "URL that uses the address" +msgstr "" + +#. module: partner_external_maps +#: model:ir.model,name:partner_external_maps.model_res_users +msgid "Users" +msgstr "" + diff --git a/partner_external_maps/map_website_data.xml b/partner_external_maps/map_website_data.xml new file mode 100644 index 000000000..3d8f3efa6 --- /dev/null +++ b/partner_external_maps/map_website_data.xml @@ -0,0 +1,64 @@ + + + + + + + + + Google Maps + https://www.google.com/maps?ie=UTF8&q={ADDRESS} + https://www.google.com/maps?z=15&q={LATITUDE},{LONGITUDE} + https://www.google.com/maps?saddr={START_ADDRESS}&daddr={DEST_ADDRESS}&directionsmode=driving + https://www.google.com/maps?saddr={START_LATITUDE},{START_LONGITUDE}&daddr={DEST_LATITUDE},{DEST_LONGITUDE}&directionsmode=driving + + + + OpenStreetMap + https://nominatim.openstreetmap.org/search?q={ADDRESS} + https://www.openstreetmap.org/?zoom=15&mlat={LATITUDE}&mlon={LONGITUDE} + https://www.openstreetmap.org/directions/?engine=orsm_car&route={START_LATITUDE},{START_LONGITUDE};{DEST_LATITUDE},{DEST_LONGITUDE} + + + + OpenStreetMap FR + http://tile.openstreetmap.fr/?q={ADDRESS} + http://tile.openstreetmap.fr/?zoom=15&lat={LATITUDE}&lon={LONGITUDE} + + + + Bing Maps + https://www.bing.com/maps/default.aspx?where1={ADDRESS} + https://www.bing.com/maps/default.aspx?where1={LATITUDE},{LONGITUDE}&lvl=15 + + + + Here Maps + https://here.com/search/{ADDRESS} + https://www.here.com/?map={LATITUDE},{LONGITUDE},15,normal + + https://www.here.com/directions/drive/:{START_LATITUDE},{START_LONGITUDE}/:{DEST_LATITUDE},{DEST_LONGITUDE} + + + + MapQuest + http://mapq.st/?q={ADDRESS} + http://mapq.st/?q={LATITUDE},{LONGITUDE} + http://mapq.st/directions?saddr={START_ADDRESS}&daddr={DEST_ADDRESS} + http://mapq.st/directions?saddr={START_LATITUDE},{START_LONGITUDE}&daddr={DEST_LATITUDE},{DEST_LONGITUDE} + + + + Yahoo! Maps + https://maps.yahoo.com/place/?addr={ADDRESS} + https://maps.yahoo.com/place/?lat={LATITUDE}&lon={LONGITUDE} + https://maps.yahoo.com/directions/?o={START_ADDRESS}&d={DEST_ADDRESS} + + + + + diff --git a/partner_external_maps/map_website_view.xml b/partner_external_maps/map_website_view.xml new file mode 100644 index 000000000..89079a825 --- /dev/null +++ b/partner_external_maps/map_website_view.xml @@ -0,0 +1,49 @@ + + + + + + + + map.website.form + map.website + +
+ + + + + + + +
+
+
+ + + map.website.tree + map.website + + + + + + + + + + Map Websites + map.website + tree,form + + + + + +
+
diff --git a/partner_external_maps/partner_external_maps.py b/partner_external_maps/partner_external_maps.py new file mode 100644 index 000000000..182e524fa --- /dev/null +++ b/partner_external_maps/partner_external_maps.py @@ -0,0 +1,210 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Partner External Maps module for Odoo +# Copyright (C) 2015 Akretion (http://www.akretion.com/) +# @author: Alexis de Lattre +# +# 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 . +# +############################################################################## + +from openerp import models, fields, api, _ +from openerp.exceptions import Warning +import logging + +logger = logging.getLogger(__name__) + + +class MapWebsite(models.Model): + _name = 'map.website' + _description = 'Map Website' + + name = fields.Char(string='Map Website Name', required=True) + address_url = fields.Char( + string='URL that uses the address', + help="In this URL, {ADDRESS} will be replaced by the address.") + lat_lon_url = fields.Char( + string='URL that uses latitude and longitude', + help="In this URL, {LATITUDE} and {LONGITUDE} will be replaced by " + "the latitude and longitude (requires the module 'base_geolocalize')") + route_address_url = fields.Char( + string='Route URL that uses the addresses', + help="In this URL, {START_ADDRESS} and {DEST_ADDRESS} will be " + "replaced by the start and destination addresses.") + route_lat_lon_url = fields.Char( + string='Route URL that uses latitude and longitude', + help="In this URL, {START_LATITUDE}, {START_LONGITUDE}, " + "{DEST_LATITUDE} and {DEST_LONGITUDE} will be replaced by the " + "latitude and longitude of the start and destination adresses " + "(requires the module 'base_geolocalize').") + + +class ResUsers(models.Model): + _inherit = 'res.users' + + @api.model + def _default_map_website(self): + map_website = self.env['map.website'].search([ + '|', ('address_url', '!=', False), ('lat_lon_url', '!=', False)], + limit=1) + return map_website + + @api.model + def _default_route_map_website(self): + map_route_website = self.env['map.website'].search([ + '|', + ('route_address_url', '!=', False), + ('route_lat_lon_url', '!=', False)], limit=1) + return map_route_website + + # begin with context_ to allow user to change it by himself + context_map_website_id = fields.Many2one( + 'map.website', string='Map Website', + domain=[ + '|', ('address_url', '!=', False), ('lat_lon_url', '!=', False)], + default=_default_map_website) + # We want to give the possibility to the user to have one map provider for + # regular maps and another one for routing + context_route_map_website_id = fields.Many2one( + 'map.website', string='Route Map Website', + domain=[ + '|', + ('route_address_url', '!=', False), + ('route_lat_lon_url', '!=', False)], + default=_default_route_map_website, + help="Map provided used when you click on the car icon on the partner " + "form to display an itinerary.") + context_route_start_partner_id = fields.Many2one( + 'res.partner', string='Start Address for Route Map') + + @api.model + def _default_map_settings(self): + """Method called from post-install script + I can't use a default method on the field, because it would be executed + before loading map_website_data.xml, so it would not be able to set a + value""" + users = self.env['res.users'].search([]) + map_website = self._default_map_website() + map_route_website = self._default_route_map_website() + logger.info('Updating user settings for maps...') + for user in users: + user.write({ + 'context_map_website_id': map_website.id or False, + 'context_route_map_website_id': map_route_website.id or False, + 'context_route_start_partner_id': user.partner_id.id or False, + }) + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + @api.model + def _address_as_string(self): + addr = [] + if self.street: + addr.append(self.street) + if self.street2: + addr.append(self.street2) + if self.city: + addr.append(self.city) + if self.state_id: + addr.append(self.state_id.name) + if self.country_id: + addr.append(self.country_id.name) + if not addr: + raise Warning( + _("Address missing on partner '%s'.") % self.name) + address = ' '.join(addr) + return address + + @api.model + def _prepare_url(self, url, replace): + assert url, 'Missing URL' + for key, value in replace.iteritems(): + if not isinstance(value, (str, unicode)): + # for latitude and longitude which are floats + value = unicode(value) + url = url.replace(key, value) + logger.debug('Final URL: %s', url) + return url + + @api.multi + def open_map(self): + if not self.env.user.context_map_website_id: + raise Warning( + _('Missing map provider: ' + 'you should set it in your preferences.')) + map_website = self.env.user.context_map_website_id + if ( + map_website.lat_lon_url and + hasattr(self, 'partner_latitude') and + self.partner_latitude and self.partner_longitude): + url = self._prepare_url( + map_website.lat_lon_url, { + '{LATITUDE}': self.partner_latitude, + '{LONGITUDE}': self.partner_longitude}) + else: + if not map_website.address_url: + raise Warning( + _("Missing parameter 'URL that uses the address' " + "for map website '%s'.") % map_website.name) + url = self._prepare_url( + map_website.address_url, + {'{ADDRESS}': self._address_as_string()}) + return { + 'type': 'ir.actions.act_url', + 'url': url, + 'target': 'new', + } + + @api.multi + def open_route_map(self): + if not self.env.user.context_route_map_website_id: + raise Warning( + _('Missing route map website: ' + 'you should set it in your preferences.')) + map_website = self.env.user.context_route_map_website_id + if not self.env.user.context_route_start_partner_id: + raise Warning( + _('Missing start address for route map: ' + 'you should set it in your preferences.')) + start_partner = self.env.user.context_route_start_partner_id + if ( + map_website.route_lat_lon_url and + hasattr(self, 'partner_latitude') and + self.partner_latitude and + self.partner_longitude and + start_partner.partner_latitude and + start_partner.partner_longitude): + url = self._prepare_url( + map_website.route_lat_lon_url, { + '{START_LATITUDE}': start_partner.partner_latitude, + '{START_LONGITUDE}': start_partner.partner_longitude, + '{DEST_LATITUDE}': self.partner_latitude, + '{DEST_LONGITUDE}': self.partner_longitude}) + else: + if not map_website.route_address_url: + raise Warning( + _("Missing route URL that uses the addresses " + "for the map website '%s'") % map_website.name) + url = self._prepare_url( + map_website.route_address_url, { + '{START_ADDRESS}': start_partner._address_as_string(), + '{DEST_ADDRESS}': self._address_as_string()}) + return { + 'type': 'ir.actions.act_url', + 'url': url, + 'target': 'new', + } diff --git a/partner_external_maps/partner_view.xml b/partner_external_maps/partner_view.xml new file mode 100644 index 000000000..22b99c828 --- /dev/null +++ b/partner_external_maps/partner_view.xml @@ -0,0 +1,31 @@ + + + + + + + + + map.button.res.partner.form + res.partner + + + + + + + + + + + + diff --git a/partner_relations/view/res_partner_relation.xml b/partner_relations/view/res_partner_relation.xml new file mode 100644 index 000000000..635107bb7 --- /dev/null +++ b/partner_relations/view/res_partner_relation.xml @@ -0,0 +1,97 @@ + + + + + + res.partner.relation + +
+ + + + + +
+
+
+ + + res.partner.relation + + + + + + + + + + + + + + res.partner.relation + + + + + + + + + + + + + + + + + + Relations + res.partner.relation + form + tree + + + [('active', '=', True)] + +

+ Record and track your partners' relations. Relations may be linked to other partners with a type either directly or inversely. +

+
+
+ + + + code + ir.actions.server + + action = self.get_action_related_partners(cr, uid, context.get('active_ids', []), dict(context or {}, partner_relations_show_side='right')) + True + Show partners + + + + Show partners + action + client_action_multi + res.partner.relation.all + + + +
+
diff --git a/partner_relations/view/res_partner_relation_all.xml b/partner_relations/view/res_partner_relation_all.xml new file mode 100644 index 000000000..49a820710 --- /dev/null +++ b/partner_relations/view/res_partner_relation_all.xml @@ -0,0 +1,92 @@ + + + + + + res.partner.relation.all + + + + + + + + + + + + + + + res.partner.relation.all + +
+ + + + + + + + + + +
+
+
+ + + res.partner.relation.all + + + + + + + + + + + + + + + + Relations + res.partner.relation.all + form + tree + + + [('active', '=', True)] + +

+ Record and track your partners' relations. Relations may be linked to other partners with a type either directly or inversely. +

+
+
+ +
+
diff --git a/partner_relations/view/res_partner_relation_type.xml b/partner_relations/view/res_partner_relation_type.xml new file mode 100644 index 000000000..d0a3c0746 --- /dev/null +++ b/partner_relations/view/res_partner_relation_type.xml @@ -0,0 +1,44 @@ + + + + res.partner.relation.type + tree + + + + + + + + + + + res.partner.relation.type + form + +
+ + + + + + + + + + + + + + +
+
+
+
+
diff --git a/partner_street_number/views/res_partner.xml b/partner_street_number/views/res_partner.xml index 6f642964f..148b0f8c6 100644 --- a/partner_street_number/views/res_partner.xml +++ b/partner_street_number/views/res_partner.xml @@ -9,7 +9,7 @@ + position="after">
+ + 1 + + position="after">
+ + 1 + {'default_parent_id': active_id, 'default_street_name': street_name, 'default_street_number': street_number, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer, 'default_use_parent_address': True} diff --git a/res_partner_affiliate/i18n/res_partner_affiliate.pot b/res_partner_affiliate/i18n/res_partner_affiliate.pot new file mode 100644 index 000000000..9f83146be --- /dev/null +++ b/res_partner_affiliate/i18n/res_partner_affiliate.pot @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * res_partner_affiliate +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-02 06:24+0000\n" +"PO-Revision-Date: 2015-08-02 06:24+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: res_partner_affiliate +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +#: field:res.partner,affiliate_ids:0 +msgid "Affiliates" +msgstr "" + +#. module: res_partner_affiliate +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +msgid "Contacts" +msgstr "" + +#. module: res_partner_affiliate +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +msgid "Fax:" +msgstr "" + +#. module: res_partner_affiliate +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +msgid "Mobile:" +msgstr "" + +#. module: res_partner_affiliate +#: model:ir.model,name:res_partner_affiliate.model_res_partner +msgid "Partner" +msgstr "" + +#. module: res_partner_affiliate +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +msgid "Phone:" +msgstr "" + diff --git a/res_partner_affiliate/i18n/sl.po b/res_partner_affiliate/i18n/sl.po index 4533c093c..e0835092e 100644 --- a/res_partner_affiliate/i18n/sl.po +++ b/res_partner_affiliate/i18n/sl.po @@ -1,41 +1,41 @@ # Translation of OpenERP Server. # This file contains the translation of the following modules: -# * res_partner_affiliate +# * res_partner_affiliate # # Matjaž Mozetič , 2015. msgid "" msgstr "" "Project-Id-Version: OpenERP Server 7.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-02-01 12:14+0000\n" -"PO-Revision-Date: 2015-03-20 08:37+0100\n" -"Last-Translator: Matjaž Mozetič \n" +"POT-Creation-Date: 2015-08-02 08:25+0200\n" +"PO-Revision-Date: 2015-08-02 08:25+0200\n" +"Last-Translator: Matjaz Mozetic \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" +"Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" -"Language: sl\n" -"X-Generator: Lokalize 1.5\n" +"X-Generator: Poedit 1.8.2\n" #. module: res_partner_affiliate -#: view:res.partner:0 -msgid "Phone:" -msgstr "Telefon:" +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +#: field:res.partner,affiliate_ids:0 +msgid "Affiliates" +msgstr "Filiale" #. module: res_partner_affiliate -#: view:res.partner:0 +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate msgid "Contacts" msgstr "Stiki" #. module: res_partner_affiliate -#: view:res.partner:0 -#: field:res.partner,affiliate_ids:0 -msgid "Affiliates" -msgstr "Filiale" +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +msgid "Fax:" +msgstr "Faks:" #. module: res_partner_affiliate -#: view:res.partner:0 +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate msgid "Mobile:" msgstr "Mobilni telefon:" @@ -45,8 +45,6 @@ msgid "Partner" msgstr "Partner" #. module: res_partner_affiliate -#: view:res.partner:0 -msgid "Fax:" -msgstr "Faks:" - - +#: view:res.partner:res_partner_affiliate.view_partner_form_add_affiliate +msgid "Phone:" +msgstr "Telefon:"