From 7ba07bdd28bc4189a2cd81ac363fe676d77dc32f Mon Sep 17 00:00:00 2001 From: "Jay Vora(SerpentCS)" Date: Sun, 14 Jan 2018 21:07:01 +0530 Subject: [PATCH] [MIG] Migrated partner_phone_extension to v11 Runbot fixes --- partner_phone_extension/README.rst | 8 +++---- partner_phone_extension/__init__.py | 1 - partner_phone_extension/__manifest__.py | 6 ++--- partner_phone_extension/models/__init__.py | 1 - partner_phone_extension/models/res_partner.py | 5 ++-- .../views/res_partner_view.xml | 24 +++++++++++++++---- 6 files changed, 29 insertions(+), 16 deletions(-) diff --git a/partner_phone_extension/README.rst b/partner_phone_extension/README.rst index 6ad6b7055..ed741b650 100644 --- a/partner_phone_extension/README.rst +++ b/partner_phone_extension/README.rst @@ -2,9 +2,9 @@ :target: https://www.gnu.org/licenses/agpl.html :alt: License: AGPL-3 -=============================== +============================== Partner Phone Number Extension -=============================== +============================== This module adds a phone number extension field in partner form view. @@ -13,13 +13,13 @@ 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/10.0 + :target: https://runbot.odoo-community.org/runbot/134/11.0 Bug Tracker =========== Bugs are tracked on `GitHub Issues -`_. In case of trouble, please +`_. 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. diff --git a/partner_phone_extension/__init__.py b/partner_phone_extension/__init__.py index 149f4e4fd..4b76c7b2d 100644 --- a/partner_phone_extension/__init__.py +++ b/partner_phone_extension/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import models diff --git a/partner_phone_extension/__manifest__.py b/partner_phone_extension/__manifest__.py index b8fa3f7c9..eafdaddac 100644 --- a/partner_phone_extension/__manifest__.py +++ b/partner_phone_extension/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2013-2014 Savoir-faire Linux # (). # Copyright 2017 Eficent Business and IT Consulting Services S.L. @@ -9,12 +8,12 @@ { 'name': 'Partner Phone Number Extension', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'category': 'Customer Relationship Management', 'summary': 'Partner Phone Number Extension', 'author': "Savoir-faire Linux, " "Eficent, " - "SerpentCS, " + "Serpent Consulting Services Pvt. Ltd., " "Odoo Community Association (OCA)", 'website': 'http://www.savoirfairelinux.com', 'license': 'AGPL-3', @@ -23,4 +22,5 @@ 'views/res_partner_view.xml', ], 'installable': True, + 'auto_install': False, } diff --git a/partner_phone_extension/models/__init__.py b/partner_phone_extension/models/__init__.py index 49b82d3cc..284a83ff1 100644 --- a/partner_phone_extension/models/__init__.py +++ b/partner_phone_extension/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # 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 index ec435da0f..0721e6c94 100644 --- a/partner_phone_extension/models/res_partner.py +++ b/partner_phone_extension/models/res_partner.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2013-2014 Savoir-faire Linux # Copyright 2017 Eficent Business and IT Consulting Services S.L. # Copyright 2017 Serpent Consulting Services Pvt. Ltd. @@ -7,8 +6,8 @@ from odoo import fields, models -class ResPartner(models.Model): +class Partner(models.Model): _inherit = 'res.partner' - phone_extension = fields.Char('Phone Extension', oldname="extension", + phone_extension = fields.Char('Phone 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 index 63ffa7a82..714411ed0 100644 --- a/partner_phone_extension/views/res_partner_view.xml +++ b/partner_phone_extension/views/res_partner_view.xml @@ -8,7 +8,18 @@ - + + + + + + + view.partner.short form.extension.form + res.partner + + + + @@ -19,12 +30,17 @@ - + - + + +
Ext:
+
+ + +
-