Browse Source

[ADD] partner_phone_extension v10

pull/442/merge
Nikul Chaudhary 8 years ago
committed by Jairo Llopis
parent
commit
57dbe5803c
  1. 3
      partner_phone_extension/README.rst
  2. 6
      partner_phone_extension/__init__.py
  3. 2
      partner_phone_extension/__manifest__.py
  4. 6
      partner_phone_extension/models/__init__.py
  5. 8
      partner_phone_extension/models/res_partner.py
  6. 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, "

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