diff --git a/partner_phone_extension/README.rst b/partner_phone_extension/README.rst new file mode 100644 index 000000000..fe2ed3860 --- /dev/null +++ b/partner_phone_extension/README.rst @@ -0,0 +1,55 @@ +.. image:: https://img.shields.io/badge/license-AGPLv3-blue.svg + :target: https://www.gnu.org/licenses/agpl.html + :alt: License: AGPL-3 + +=============================== +Partner Phone Number Extension +=============================== + +This module allows to add 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/8.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* El Hadji Dem (elhadji.dem@savoirfairelinux.com) +* Jordi Ballester Alomar +* Serpent Consulting Services Pvt. Ltd. + +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 https://odoo-community.org. diff --git a/partner_phone_extension/__init__.py b/partner_phone_extension/__init__.py new file mode 100644 index 000000000..0c366a791 --- /dev/null +++ b/partner_phone_extension/__init__.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright 2013-2014 Savoir-faire Linux +# (). +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/partner_phone_extension/__openerp__.py b/partner_phone_extension/__openerp__.py new file mode 100644 index 000000000..8e313508e --- /dev/null +++ b/partner_phone_extension/__openerp__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Copyright 2013-2014 Savoir-faire Linux +# (). +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Partner Phone Number Extension', + 'version': '8.0.1.0.0', + 'category': 'Customer Relationship Management', + 'summary': 'Partner Phone Number Extension', + 'author': "Savoir-faire Linux, " + "Eficent, " + "SerpentCS, " + "Odoo Community Association (OCA)", + 'website': 'www.savoirfairelinux.com', + 'license': 'AGPL-3', + "depends": ["base"], + 'data': [ + 'views/res_partner_view.xml', + ], + 'installable': True, +} diff --git a/partner_phone_extension/i18n/fr.po b/partner_phone_extension/i18n/fr.po new file mode 100644 index 000000000..1801c5c39 --- /dev/null +++ b/partner_phone_extension/i18n/fr.po @@ -0,0 +1,33 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_phone_extension +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-03 18:56+0000\n" +"PO-Revision-Date: 2014-11-03 14:00-0500\n" +"Last-Translator: Sandy Carter \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.6.10\n" + +#. module: partner_phone_extension +#: model:ir.model,name:partner_phone_extension.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: partner_phone_extension +#: field:res.partner,extension:0 +msgid "Extension" +msgstr "Poste" + +#. module: partner_phone_extension +#: help:res.partner,extension:0 +msgid "Phone Number Extension." +msgstr "Numéro de poste téléphonique." diff --git a/partner_phone_extension/models/__init__.py b/partner_phone_extension/models/__init__.py new file mode 100644 index 000000000..416ed8672 --- /dev/null +++ b/partner_phone_extension/models/__init__.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright 2013-2014 Savoir-faire Linux +# (). +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import res_partner diff --git a/partner_phone_extension/models/res_partner.py b/partner_phone_extension/models/res_partner.py new file mode 100644 index 000000000..3d873ef8d --- /dev/null +++ b/partner_phone_extension/models/res_partner.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2013-2014 Savoir-faire Linux +# (). +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from openerp import fields, models + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + extension = fields.Char('Extension', help="Phone Number Extension.") diff --git a/partner_phone_extension/views/res_partner_view.xml b/partner_phone_extension/views/res_partner_view.xml new file mode 100644 index 000000000..968be5065 --- /dev/null +++ b/partner_phone_extension/views/res_partner_view.xml @@ -0,0 +1,32 @@ + + + + + + + view.partner.simple.number.extension.form + res.partner + + + + + + + + + + view.partner.number.extension.form + res.partner + + + + + + + + + + + + +