Browse Source

[ADD] partner_phone_extension v10

pull/549/head
Nikul Chaudhary 8 years ago
committed by Pedro M. Baeza
parent
commit
9c94fe70c2
  1. 3
      partner_phone_extension/README.rst
  2. 6
      partner_phone_extension/__init__.py
  3. 2
      partner_phone_extension/__manifest__.py
  4. 25
      partner_phone_extension/i18n/de.po
  5. 22
      partner_phone_extension/i18n/es_MX.po
  6. 24
      partner_phone_extension/i18n/fr.po
  7. 36
      partner_phone_extension/i18n/nl_NL.po
  8. 25
      partner_phone_extension/i18n/sl.po
  9. 6
      partner_phone_extension/models/__init__.py
  10. 8
      partner_phone_extension/models/res_partner.py
  11. 6
      partner_phone_extension/views/res_partner_view.xml

3
partner_phone_extension/README.rst

@ -8,13 +8,12 @@ Partner Phone Number Extension
This module adds a phone number extension field in partner form view.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/134/9.0
:target: https://runbot.odoo-community.org/runbot/134/10.0
Bug Tracker
===========

6
partner_phone_extension/__init__.py

@ -1,10 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright 2013-2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# (<http://www.serpentcs.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models

2
partner_phone_extension/__openerp__.py → partner_phone_extension/__manifest__.py

@ -9,7 +9,7 @@
{
'name': 'Partner Phone Number Extension',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Customer Relationship Management',
'summary': 'Partner Phone Number Extension',
'author': "Savoir-faire Linux, "

25
partner_phone_extension/i18n/de.po

@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Rudolf Schnapka <rs@techno-flex.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 00:47+0000\n"
"PO-Revision-Date: 2017-06-02 00:47+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n"
"POT-Creation-Date: 2017-11-21 01:49+0000\n"
"PO-Revision-Date: 2017-11-21 01:49+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -19,17 +18,19 @@ msgstr ""
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_extension
msgid "Extension"
msgstr "Erweiterung"
#. module: partner_phone_extension
#: model:ir.model,name:partner_phone_extension.model_res_partner
msgid "Partner"
msgstr "Partner"
#. module: partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Extension"
msgstr ""
#. module: partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Number Extension."
msgstr "Telefon-Durchwahl."
msgstr ""

22
partner_phone_extension/i18n/es_MX.po

@ -6,10 +6,10 @@
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 00:47+0000\n"
"PO-Revision-Date: 2017-06-02 00:47+0000\n"
"POT-Creation-Date: 2017-11-21 01:49+0000\n"
"PO-Revision-Date: 2017-11-21 01:49+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\n"
"MIME-Version: 1.0\n"
@ -18,17 +18,19 @@ msgstr ""
"Language: es_MX\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_extension
msgid "Extension"
msgstr ""
#. module: partner_phone_extension
#: model:ir.model,name:partner_phone_extension.model_res_partner
msgid "Partner"
msgstr "Compañero"
msgstr "Empresa"
#. module: partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Extension"
msgstr ""
#. module: partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Number Extension."
msgstr ""

24
partner_phone_extension/i18n/fr.po

@ -6,10 +6,10 @@
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 00:47+0000\n"
"PO-Revision-Date: 2017-06-02 00:47+0000\n"
"POT-Creation-Date: 2017-11-21 01:49+0000\n"
"PO-Revision-Date: 2017-11-21 01:49+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"MIME-Version: 1.0\n"
@ -18,17 +18,19 @@ msgstr ""
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_extension
msgid "Extension"
msgstr "Poste"
#. module: partner_phone_extension
#: model:ir.model,name:partner_phone_extension.model_res_partner
msgid "Partner"
msgstr "Partenaire"
msgstr "Contact"
#. module: partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Extension"
msgstr ""
#. module: partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Number Extension."
msgstr "Numéro de poste téléphonique."
msgstr ""

36
partner_phone_extension/i18n/nl_NL.po

@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_phone_extension
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-21 01:49+0000\n"
"PO-Revision-Date: 2017-11-21 01:49+0000\n"
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: partner_phone_extension
#: model:ir.model,name:partner_phone_extension.model_res_partner
msgid "Partner"
msgstr "Relatie"
#. module: partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Extension"
msgstr ""
#. module: partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Number Extension."
msgstr ""

25
partner_phone_extension/i18n/sl.po

@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 00:47+0000\n"
"PO-Revision-Date: 2017-06-02 00:47+0000\n"
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>, 2017\n"
"POT-Creation-Date: 2017-11-21 01:49+0000\n"
"PO-Revision-Date: 2017-11-21 01:49+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -19,17 +18,19 @@ msgstr ""
"Language: sl\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
#. module: partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_extension
msgid "Extension"
msgstr "Interna številka"
#. module: partner_phone_extension
#: model:ir.model,name:partner_phone_extension.model_res_partner
msgid "Partner"
msgstr "Partner"
#. module: partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,field_description:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Extension"
msgstr ""
#. module: partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_partner_phone_extension
#: model:ir.model.fields,help:partner_phone_extension.field_res_users_phone_extension
msgid "Phone Number Extension."
msgstr "Interna telefonska številka."
msgstr ""

6
partner_phone_extension/models/__init__.py

@ -1,10 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright 2013-2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# (<http://www.serpentcs.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import res_partner

8
partner_phone_extension/models/res_partner.py

@ -1,16 +1,14 @@
# -*- coding: utf-8 -*-
# Copyright 2013-2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# (<http://www.serpentcs.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from openerp import fields, models
from odoo import fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
extension = fields.Char('Extension', help="Phone Number Extension.")
phone_extension = fields.Char('Phone Extension', oldname="extension",
help="Phone Number Extension.")

6
partner_phone_extension/views/res_partner_view.xml

@ -8,7 +8,7 @@
<field name="inherit_id" ref="base.view_partner_simple_form"/>
<field name="arch" type="xml">
<field name="phone" position="after">
<field name="extension"/>
<field name="phone_extension"/>
</field>
</field>
</record>
@ -19,10 +19,10 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="phone" position="after">
<field name="extension"/>
<field name="phone_extension"/>
</field>
<xpath expr="/form/sheet/notebook/page/field/form/sheet/group/group/field[@name='phone']" position="after">
<field name="extension"/>
<field name="phone_extension"/>
</xpath>
</field>
</record>

Loading…
Cancel
Save