From 686aa30fde741488cb1128b76d4684ce85855055 Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Thu, 30 Oct 2014 15:35:45 -0400 Subject: [PATCH] [ADD] Add partner_birth_name module It allows to add the maiden name field to the partner --- partner_birth_name/__init__.py | 23 ++++++++++ partner_birth_name/__openerp__.py | 45 +++++++++++++++++++ partner_birth_name/i18n/fr.po | 28 ++++++++++++ .../i18n/partner_birth_name.pot | 27 +++++++++++ partner_birth_name/res_partner.py | 30 +++++++++++++ partner_birth_name/res_partner_view.xml | 20 +++++++++ 6 files changed, 173 insertions(+) create mode 100644 partner_birth_name/__init__.py create mode 100644 partner_birth_name/__openerp__.py create mode 100644 partner_birth_name/i18n/fr.po create mode 100644 partner_birth_name/i18n/partner_birth_name.pot create mode 100644 partner_birth_name/res_partner.py create mode 100644 partner_birth_name/res_partner_view.xml diff --git a/partner_birth_name/__init__.py b/partner_birth_name/__init__.py new file mode 100644 index 000000000..610e74d61 --- /dev/null +++ b/partner_birth_name/__init__.py @@ -0,0 +1,23 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Savoir-faire Linux +# (). +# +# 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 . +# +############################################################################## + +from . import res_partner diff --git a/partner_birth_name/__openerp__.py b/partner_birth_name/__openerp__.py new file mode 100644 index 000000000..0de06652c --- /dev/null +++ b/partner_birth_name/__openerp__.py @@ -0,0 +1,45 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Savoir-faire Linux +# (). +# +# 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 . +# +############################################################################## + +{ + 'name': 'Partner Birth Name', + 'version': '1.0', + 'author': 'Savoir-faire Linux', + 'maintainer': 'Savoir-faire Linux', + 'website': 'http://www.savoirfairelinux.com', + 'category': 'Customer Relationship Management', + 'description': """ +Partner Birth Name +================== + +This module allows you to specify a birth name on a partner + +Contributors +------------ +* El Hadji Dem (elhadji.dem@savoirfairelinux.com) +* Sandy Carter (sandy.carter@savoirfairelinux.com) +""", + 'data': [ + 'res_partner_view.xml', + ], + 'installable': True, +} diff --git a/partner_birth_name/i18n/fr.po b/partner_birth_name/i18n/fr.po new file mode 100644 index 000000000..f6f3ce082 --- /dev/null +++ b/partner_birth_name/i18n/fr.po @@ -0,0 +1,28 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_birth_name +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-10-30 18:38+0000\n" +"PO-Revision-Date: 2014-10-30 14:40-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_birth_name +#: model:ir.model,name:partner_birth_name.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: partner_birth_name +#: view:res.partner:0 field:res.partner,birth_name:0 +msgid "Birth Name" +msgstr "Nom de jeune fille" diff --git a/partner_birth_name/i18n/partner_birth_name.pot b/partner_birth_name/i18n/partner_birth_name.pot new file mode 100644 index 000000000..910c6b459 --- /dev/null +++ b/partner_birth_name/i18n/partner_birth_name.pot @@ -0,0 +1,27 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_birth_name +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-10-30 18:38+0000\n" +"PO-Revision-Date: 2014-10-30 18:38+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: partner_birth_name +#: model:ir.model,name:partner_birth_name.model_res_partner +msgid "Partner" +msgstr "" + +#. module: partner_birth_name +#: view:res.partner:0 +#: field:res.partner,birth_name:0 +msgid "Birth Name" +msgstr "" diff --git a/partner_birth_name/res_partner.py b/partner_birth_name/res_partner.py new file mode 100644 index 000000000..a842aea2a --- /dev/null +++ b/partner_birth_name/res_partner.py @@ -0,0 +1,30 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Savoir-faire Linux +# (). +# +# 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 . +# +############################################################################## + +from openerp.osv import orm, fields + + +class res_partner(orm.Model): + _inherit = 'res.partner' + _columns = { + 'birth_name': fields.char('Birth Name'), + } diff --git a/partner_birth_name/res_partner_view.xml b/partner_birth_name/res_partner_view.xml new file mode 100644 index 000000000..166598ef6 --- /dev/null +++ b/partner_birth_name/res_partner_view.xml @@ -0,0 +1,20 @@ + + + + + + res.partner + + + + + + + + + + + +