[email protected] has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/partner_multi_passport into lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions.
Requested reviews: Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) For more details, see: https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner_multi_passport/+merge/201259 [ADD] partner_multi_passport :it allows to manage several passports for each contact -- https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner_multi_passport/+merge/201259 Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions.
=== added directory 'partner_multi_passport' === added file 'partner_multi_passport/__init__.py' --- partner_multi_passport/__init__.py 1970-01-01 00:00:00 +0000 +++ partner_multi_passport/__init__.py 2014-01-10 22:02:41 +0000 @@ -0,0 +1,26 @@ +# -*- 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 res_partner +import res_passport + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'partner_multi_passport/__openerp__.py' --- partner_multi_passport/__openerp__.py 1970-01-01 00:00:00 +0000 +++ partner_multi_passport/__openerp__.py 2014-01-10 22:02:41 +0000 @@ -0,0 +1,53 @@ +# -*- 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': 'Partner Multi Passport', + 'version': '0.1', + 'author': 'Savoir-faire Linux', + 'maintainer': 'Savoir-faire Linux', + 'website': 'http://www.savoirfairelinux.com', + 'category': 'Customer Relationship Management', + 'description': """ +Partner Multi Passport +====================== + +This module allows you to manage several passports for each contact. + +Contributors +------------ +* El Hadji Dem ([email protected]) +""", + 'depends': [ + 'base', + ], + 'external_dependencies': {}, + 'data': [ + 'res_partner_view.xml', + ], + 'demo': [], + 'test': [], + 'installable': True, + 'active': False, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added directory 'partner_multi_passport/i18n' === added file 'partner_multi_passport/i18n/fr.po' --- partner_multi_passport/i18n/fr.po 1970-01-01 00:00:00 +0000 +++ partner_multi_passport/i18n/fr.po 2014-01-10 22:02:41 +0000 @@ -0,0 +1,118 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_multi_passport +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-01-10 21:36+0000\n" +"PO-Revision-Date: 2014-01-10 16:44-0500\n" +"Last-Translator: EL Hadji DEM <[email protected]>\n" +"Language-Team: \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.5.4\n" + +#. module: partner_multi_passport +#: help:res.passport,gender:0 +msgid "Gender." +msgstr "Sexe." + +#. module: partner_multi_passport +#: model:ir.model,name:partner_multi_passport.model_res_passport +#: view:res.partner:0 field:res.partner,passport_ids:0 +msgid "Passport" +msgstr "Passeport" + +#. module: partner_multi_passport +#: field:res.passport,country_id:0 +msgid "Delivery country" +msgstr "Pays de délivrance" + +#. module: partner_multi_passport +#: view:res.partner:0 +msgid "Passport Details" +msgstr "Détails du passeport" + +#. module: partner_multi_passport +#: field:res.passport,name:0 +msgid "Owner name" +msgstr "Nom du propriétaire" + +#. module: partner_multi_passport +#: field:res.passport,gender:0 +msgid "Gender" +msgstr "Sexe" + +#. module: partner_multi_passport +#: field:res.passport,number:0 +msgid "Passport No" +msgstr "No du passeport" + +#. module: partner_multi_passport +#: help:res.passport,partner_id:0 +msgid "Contact." +msgstr "Contact." + +#. module: partner_multi_passport +#: help:res.passport,expiration_date:0 +msgid "Expiration date." +msgstr "Date d'expiration." + +#. module: partner_multi_passport +#: view:res.partner:0 +msgid "Owner name (As printed into the passport)" +msgstr "Nom du propriétaire (Comme écrit sur le passeport)" + +#. module: partner_multi_passport +#: field:res.passport,partner_id:0 +msgid "Contact" +msgstr "Contact" + +#. module: partner_multi_passport +#: help:res.passport,number:0 +msgid "Passport number." +msgstr "Numéro du passeport." + +#. module: partner_multi_passport +#: selection:res.passport,gender:0 +msgid "Female" +msgstr "Femme" + +#. module: partner_multi_passport +#: help:res.passport,name:0 +msgid "Owner name (As printed into the passport)." +msgstr "Nom du propriétaire (Comme écrit sur le passeport)." + +#. module: partner_multi_passport +#: model:ir.model,name:partner_multi_passport.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: partner_multi_passport +#: help:res.passport,birth_date:0 +msgid "Birth Date." +msgstr "Date de naissance." + +#. module: partner_multi_passport +#: selection:res.passport,gender:0 +msgid "Male" +msgstr "Homme" + +#. module: partner_multi_passport +#: help:res.passport,country_id:0 +msgid "Delivery country." +msgstr "Pays de délivrance." + +#. module: partner_multi_passport +#: field:res.passport,expiration_date:0 +msgid "Expiration date" +msgstr "Date d'expiration" + +#. module: partner_multi_passport +#: field:res.passport,birth_date:0 +msgid "Birth Date" +msgstr "Date de naissance" === added file 'partner_multi_passport/i18n/partner_multi_passport.pot' --- partner_multi_passport/i18n/partner_multi_passport.pot 1970-01-01 00:00:00 +0000 +++ partner_multi_passport/i18n/partner_multi_passport.pot 2014-01-10 22:02:41 +0000 @@ -0,0 +1,118 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_multi_passport +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-01-10 21:36+0000\n" +"PO-Revision-Date: 2014-01-10 16:36-0500\n" +"Last-Translator: EL Hadji DEM <[email protected]>\n" +"Language-Team: \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.5.4\n" + +#. module: partner_multi_passport +#: help:res.passport,gender:0 +msgid "Gender." +msgstr "" + +#. module: partner_multi_passport +#: model:ir.model,name:partner_multi_passport.model_res_passport +#: view:res.partner:0 field:res.partner,passport_ids:0 +msgid "Passport" +msgstr "" + +#. module: partner_multi_passport +#: field:res.passport,country_id:0 +msgid "Delivery country" +msgstr "" + +#. module: partner_multi_passport +#: view:res.partner:0 +msgid "Passport Details" +msgstr "" + +#. module: partner_multi_passport +#: field:res.passport,name:0 +msgid "Owner name" +msgstr "" + +#. module: partner_multi_passport +#: field:res.passport,gender:0 +msgid "Gender" +msgstr "" + +#. module: partner_multi_passport +#: field:res.passport,number:0 +msgid "Passport No" +msgstr "" + +#. module: partner_multi_passport +#: help:res.passport,partner_id:0 +msgid "Contact." +msgstr "" + +#. module: partner_multi_passport +#: help:res.passport,expiration_date:0 +msgid "Expiration date." +msgstr "" + +#. module: partner_multi_passport +#: view:res.partner:0 +msgid "Owner name (As printed into the passport)" +msgstr "" + +#. module: partner_multi_passport +#: field:res.passport,partner_id:0 +msgid "Contact" +msgstr "" + +#. module: partner_multi_passport +#: help:res.passport,number:0 +msgid "Passport number." +msgstr "" + +#. module: partner_multi_passport +#: selection:res.passport,gender:0 +msgid "Female" +msgstr "" + +#. module: partner_multi_passport +#: help:res.passport,name:0 +msgid "Owner name (As printed into the passport)." +msgstr "" + +#. module: partner_multi_passport +#: model:ir.model,name:partner_multi_passport.model_res_partner +msgid "Partner" +msgstr "" + +#. module: partner_multi_passport +#: help:res.passport,birth_date:0 +msgid "Birth Date." +msgstr "" + +#. module: partner_multi_passport +#: selection:res.passport,gender:0 +msgid "Male" +msgstr "" + +#. module: partner_multi_passport +#: help:res.passport,country_id:0 +msgid "Delivery country." +msgstr "" + +#. module: partner_multi_passport +#: field:res.passport,expiration_date:0 +msgid "Expiration date" +msgstr "" + +#. module: partner_multi_passport +#: field:res.passport,birth_date:0 +msgid "Birth Date" +msgstr "" === added file 'partner_multi_passport/res_partner.py' --- partner_multi_passport/res_partner.py 1970-01-01 00:00:00 +0000 +++ partner_multi_passport/res_partner.py 2014-01-10 22:02:41 +0000 @@ -0,0 +1,32 @@ +# -*- 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 orm, fields + + +class res_partner(orm.Model): + _inherit = 'res.partner' + _columns = { + 'passport_ids': fields.one2many('res.passport', 'partner_id', 'Passport'), + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'partner_multi_passport/res_partner_view.xml' --- partner_multi_passport/res_partner_view.xml 1970-01-01 00:00:00 +0000 +++ partner_multi_passport/res_partner_view.xml 2014-01-10 22:02:41 +0000 @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + <record id="view_contact_by_function_form" model="ir.ui.view"> + <field name="name">contact.functions.form.inherit</field> + <field name="model">res.partner</field> + <field name="inherit_id" ref="base.view_partner_form"/> + <field name="arch" type="xml"> + <notebook position="inside"> + <page string="Passport" attrs="{'invisible': ['|','|',('is_company','=',True),('contact_id','!=',False)]}"> + <field name="passport_ids" nolabel="1"> + <tree string="Passport Details"> + <field name="name"/> + <field name="number"/> + <field name="country_id"/> + <field name="expiration_date"/> + </tree> + <form string="Passport" version="7.0"> + <group col="4"> + <field name="name" string="Owner name (As printed into the passport)"/> + <field name="number"/> + <field name="country_id"/> + <field name="expiration_date"/> + <field name="birth_date"/> + <field name="gender"/> + <field name="partner_id" invisible="1"/> + </group> + </form> + </field> + </page> + </notebook> + </field> + </record> + </data> +</openerp> === added file 'partner_multi_passport/res_passport.py' --- partner_multi_passport/res_passport.py 1970-01-01 00:00:00 +0000 +++ partner_multi_passport/res_passport.py 2014-01-10 22:02:41 +0000 @@ -0,0 +1,47 @@ +# -*- 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 res_passport(orm.Model): + _description = 'Passport' + _name = 'res.passport' + _columns = { + 'name': fields.char('Owner name', size=256, required=True, select=True, + help='Owner name (As printed into the passport).'), + 'number': fields.char('Passport No', size=50, required=True, + help='Passport number.'), + 'country_id': fields.many2one('res.country', 'Delivery country', + required=True, + help="Delivery country."), + 'expiration_date': fields.date('Expiration date', required=True, + help="Expiration date."), + 'birth_date': fields.date('Birth Date', help="Birth Date."), + 'gender': fields.selection([('male', 'Male'), + ('female', 'Female')], + 'Gender', + help="Gender."), + 'partner_id': fields.many2one('res.partner', 'Contact', help="Contact."), + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-- Mailing list: https://launchpad.net/~savoirfairelinux-openerp Post to : [email protected] Unsubscribe : https://launchpad.net/~savoirfairelinux-openerp More help : https://help.launchpad.net/ListHelp

