Sandy Carter (http://www.savoirfairelinux.com) has proposed merging lp:~savoirfairelinux-openerp/openerp-hr/hr_employee_phone_extension into lp:openerp-hr.
Requested reviews: HR Core Editors (hr-core-editors) Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) For more details, see: https://code.launchpad.net/~savoirfairelinux-openerp/openerp-hr/hr_employee_phone_extension/+merge/198620 This module adds fields for internal and external phone extensions for hr_employees -- https://code.launchpad.net/~savoirfairelinux-openerp/openerp-hr/hr_employee_phone_extension/+merge/198620 Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-hr/hr_employee_phone_extension.
=== added directory 'hr_employee_phone_extension' === added file 'hr_employee_phone_extension/__init__.py' --- hr_employee_phone_extension/__init__.py 1970-01-01 00:00:00 +0000 +++ hr_employee_phone_extension/__init__.py 2013-12-11 17:25:37 +0000 @@ -0,0 +1,25 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Savoir-faire Linux +# (<http://www.savoirfairelinux.com>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + +import hr + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'hr_employee_phone_extension/__openerp__.py' --- hr_employee_phone_extension/__openerp__.py 1970-01-01 00:00:00 +0000 +++ hr_employee_phone_extension/__openerp__.py 2013-12-11 17:25:37 +0000 @@ -0,0 +1,56 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Savoir-faire Linux +# (<http://www.savoirfairelinux.com>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + +{ + 'name': 'Employee Phone Extension', + 'version': '1.0', + 'category': 'Human Resources', + 'description': """ + +Employee Phone Extension +======================== +This module adds the following to employees : +* internal_number +* short_number +* expiration_date + + +Contributors +------------ +* Sandy Carter ([email protected]) +* El Hadji Dem ([email protected]) + """, + 'author': 'Savoir-faire Linux', + 'website': 'http://www.savoirfairelinux.com', + 'license': 'AGPL-3', + 'depends': ['hr', ], + 'data': [ + 'hr_view.xml', + ], + 'demo': [], + 'test': [], + 'installable': True, + 'auto_install': False, + 'images': [], +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'hr_employee_phone_extension/hr.py' --- hr_employee_phone_extension/hr.py 1970-01-01 00:00:00 +0000 +++ hr_employee_phone_extension/hr.py 2013-12-11 17:25:37 +0000 @@ -0,0 +1,38 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Savoir-faire Linux +# (<http://www.savoirfairelinux.com>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + +from openerp.osv import fields, orm + + +class hr_employee(orm.Model): + _inherit = 'hr.employee' + + _columns = { + 'internal_number': fields.char('Internal Number', size=20, + help='Internal phone number.'), + 'short_number': fields.char('Short Number', size=20, + help='Short phone number.'), + 'expiration_date': fields.date('Expiration Date', + help='Expiration date of phone numbers.'), + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'hr_employee_phone_extension/hr_view.xml' --- hr_employee_phone_extension/hr_view.xml 1970-01-01 00:00:00 +0000 +++ hr_employee_phone_extension/hr_view.xml 2013-12-11 17:25:37 +0000 @@ -0,0 +1,19 @@ +<?xml version = "1.0" encoding="utf-8"?> +<openerp> + <data> + <record id="view_employee_form_inherit11" model="ir.ui.view"> + <field name="name">view.employee.form.inherit11</field> + <field name="model">hr.employee</field> + <field name="inherit_id" ref="hr.view_employee_form"/> + <field name="arch" type="xml"> + <field name="mobile_phone" position="after"> + <field name="internal_number" /> + <field name="short_number" /> + </field> + <field name="passport_id" position="after"> + <field name="expiration_date" /> + </field> + </field> + </record> + </data> +</openerp> === added directory 'hr_employee_phone_extension/i18n' === added file 'hr_employee_phone_extension/i18n/fr.po' --- hr_employee_phone_extension/i18n/fr.po 1970-01-01 00:00:00 +0000 +++ hr_employee_phone_extension/i18n/fr.po 2013-12-11 17:25:37 +0000 @@ -0,0 +1,54 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * hr_employee_phone_extension +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-12-11 17:17+0000\n" +"PO-Revision-Date: 2013-12-11 12:21-0500\n" +"Last-Translator: Sandy Carter <[email protected]>\n" +"Language-Team: Savoir-faire Linux\n" +"Language: fr\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.5.7\n" +"X-Poedit-SourceCharset: UTF-8\n" + +#. module: hr_employee_phone_extension +#: help:hr.employee,short_number:0 +msgid "Short phone number." +msgstr "Forme courte du numéro de téléphone." + +#. module: hr_employee_phone_extension +#: field:hr.employee,internal_number:0 +msgid "Internal Number" +msgstr "Numéro interne" + +#. module: hr_employee_phone_extension +#: model:ir.model,name:hr_employee_phone_extension.model_hr_employee +msgid "Employee" +msgstr "Employé" + +#. module: hr_employee_phone_extension +#: help:hr.employee,expiration_date:0 +msgid "Expiration date of phone numbers." +msgstr "Date d'expiration des numéros de téléphone." + +#. module: hr_employee_phone_extension +#: help:hr.employee,internal_number:0 +msgid "Internal phone number." +msgstr "Numéro de téléphone à l'interne." + +#. module: hr_employee_phone_extension +#: field:hr.employee,short_number:0 +msgid "Short Number" +msgstr "Numéro court" + +#. module: hr_employee_phone_extension +#: field:hr.employee,expiration_date:0 +msgid "Expiration Date" +msgstr "Date d'expiration" === added file 'hr_employee_phone_extension/i18n/hr_employee_phone_extension.pot' --- hr_employee_phone_extension/i18n/hr_employee_phone_extension.pot 1970-01-01 00:00:00 +0000 +++ hr_employee_phone_extension/i18n/hr_employee_phone_extension.pot 2013-12-11 17:25:37 +0000 @@ -0,0 +1,51 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * hr_employee_phone_extension +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-12-11 17:17+0000\n" +"PO-Revision-Date: 2013-12-11 17: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: hr_employee_phone_extension +#: help:hr.employee,short_number:0 +msgid "Short phone number." +msgstr "" + +#. module: hr_employee_phone_extension +#: field:hr.employee,internal_number:0 +msgid "Internal Number" +msgstr "" + +#. module: hr_employee_phone_extension +#: model:ir.model,name:hr_employee_phone_extension.model_hr_employee +msgid "Employee" +msgstr "" + +#. module: hr_employee_phone_extension +#: help:hr.employee,expiration_date:0 +msgid "Expiration date of phone numbers." +msgstr "" + +#. module: hr_employee_phone_extension +#: help:hr.employee,internal_number:0 +msgid "Internal phone number." +msgstr "" + +#. module: hr_employee_phone_extension +#: field:hr.employee,short_number:0 +msgid "Short Number" +msgstr "" + +#. module: hr_employee_phone_extension +#: field:hr.employee,expiration_date:0 +msgid "Expiration Date" +msgstr ""
-- Mailing list: https://launchpad.net/~savoirfairelinux-openerp Post to : [email protected] Unsubscribe : https://launchpad.net/~savoirfairelinux-openerp More help : https://help.launchpad.net/ListHelp

