openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #03253
[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
elhadji.dem@xxxxxxxxxxxxxxxxxxxx has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management.
Requested reviews:
Partner and Contact Core Editors (partner-contact-core-editors)
For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner/+merge/204033
[ADD] Add passport and passport_partner modules: You can manage several passports for each contact.
--
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner/+merge/204033
Your team Partner and Contact Core Editors is requested to review the proposed merge of lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management.
=== added directory 'passport'
=== added file 'passport/__init__.py'
--- passport/__init__.py 1970-01-01 00:00:00 +0000
+++ passport/__init__.py 2014-01-30 16:42:56 +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/>.
+#
+##############################################################################
+
+from . import res_passport
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'passport/__openerp__.py'
--- passport/__openerp__.py 1970-01-01 00:00:00 +0000
+++ passport/__openerp__.py 2014-01-30 16:42:56 +0000
@@ -0,0 +1,52 @@
+# -*- 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': 'Passport Management',
+ 'version': '0.1',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'Customer Relationship Management',
+ 'description': """
+Passport Management
+===================
+
+Contributors
+------------
+* El Hadji Dem (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+ 'depends': [
+ 'base',
+ ],
+ 'external_dependencies': {},
+ 'data': [
+ 'res_passport_view.xml',
+ 'security/ir.model.access.csv',
+ ],
+ 'demo': [],
+ 'test': [],
+ 'installable': True,
+ 'active': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'passport/i18n'
=== added file 'passport/i18n/fr.po'
--- passport/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ passport/i18n/fr.po 2014-01-30 16:42:56 +0000
@@ -0,0 +1,108 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * passport
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-17 16:27+0000\n"
+"PO-Revision-Date: 2014-01-17 11:30-0500\n"
+"Last-Translator: EL Hadji DEM <elhadji.dem@xxxxxxxxxxxxxxxxxxxx>\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: passport
+#: help:res.passport,gender:0
+msgid "Gender."
+msgstr "Sexe."
+
+#. module: passport
+#: model:ir.actions.act_window,name:passport.action_passport_tree_list
+#: model:ir.model,name:passport.model_res_passport
+msgid "Passport"
+msgstr "Passeport"
+
+#. module: passport
+#: field:res.passport,country_id:0
+msgid "Delivery country"
+msgstr "Pays de délivrance"
+
+#. module: passport
+#: field:res.passport,name:0
+msgid "Owner name"
+msgstr "Nom du propriétaire"
+
+#. module: passport
+#: field:res.passport,gender:0
+msgid "Gender"
+msgstr "Sexe"
+
+#. module: passport
+#: help:res.passport,expiration_date:0
+msgid "Expiration date."
+msgstr "Date d'expiration."
+
+#. module: passport
+#: view:res.passport:0
+msgid "PassportTree"
+msgstr "PassportTree"
+
+#. module: passport
+#: view:res.passport:0
+msgid "Owner name (As printed into the passport)"
+msgstr "Nom du propriétaire (Comme écrit sur le passeport)"
+
+#. module: passport
+#: view:res.passport:0
+msgid "PassportForm"
+msgstr "PassportForm"
+
+#. module: passport
+#: help:res.passport,number:0
+msgid "Passport number."
+msgstr "Numéro du passeport."
+
+#. module: passport
+#: selection:res.passport,gender:0
+msgid "Female"
+msgstr "Femme"
+
+#. module: 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: passport
+#: field:res.passport,number:0
+msgid "Passport No"
+msgstr "No du passeport"
+
+#. module: passport
+#: help:res.passport,birth_date:0
+msgid "Birth Date."
+msgstr "Date de naissance."
+
+#. module: passport
+#: selection:res.passport,gender:0
+msgid "Male"
+msgstr "Homme"
+
+#. module: passport
+#: help:res.passport,country_id:0
+msgid "Delivery country."
+msgstr "Pays de délivrance."
+
+#. module: passport
+#: field:res.passport,expiration_date:0
+msgid "Expiration date"
+msgstr "Date d'expiration"
+
+#. module: passport
+#: field:res.passport,birth_date:0
+msgid "Birth Date"
+msgstr "Date de naissance"
=== added file 'passport/i18n/passport.pot'
--- passport/i18n/passport.pot 1970-01-01 00:00:00 +0000
+++ passport/i18n/passport.pot 2014-01-30 16:42:56 +0000
@@ -0,0 +1,108 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * passport
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-17 16:26+0000\n"
+"PO-Revision-Date: 2014-01-17 11:26-0500\n"
+"Last-Translator: EL Hadji DEM <elhadji.dem@xxxxxxxxxxxxxxxxxxxx>\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: passport
+#: help:res.passport,gender:0
+msgid "Gender."
+msgstr ""
+
+#. module: passport
+#: model:ir.actions.act_window,name:passport.action_passport_tree_list
+#: model:ir.model,name:passport.model_res_passport
+msgid "Passport"
+msgstr ""
+
+#. module: passport
+#: field:res.passport,country_id:0
+msgid "Delivery country"
+msgstr ""
+
+#. module: passport
+#: field:res.passport,name:0
+msgid "Owner name"
+msgstr ""
+
+#. module: passport
+#: field:res.passport,gender:0
+msgid "Gender"
+msgstr ""
+
+#. module: passport
+#: help:res.passport,expiration_date:0
+msgid "Expiration date."
+msgstr ""
+
+#. module: passport
+#: view:res.passport:0
+msgid "PassportTree"
+msgstr ""
+
+#. module: passport
+#: view:res.passport:0
+msgid "Owner name (As printed into the passport)"
+msgstr ""
+
+#. module: passport
+#: view:res.passport:0
+msgid "PassportForm"
+msgstr ""
+
+#. module: passport
+#: help:res.passport,number:0
+msgid "Passport number."
+msgstr ""
+
+#. module: passport
+#: selection:res.passport,gender:0
+msgid "Female"
+msgstr ""
+
+#. module: passport
+#: help:res.passport,name:0
+msgid "Owner name (As printed into the passport)."
+msgstr ""
+
+#. module: passport
+#: field:res.passport,number:0
+msgid "Passport No"
+msgstr ""
+
+#. module: passport
+#: help:res.passport,birth_date:0
+msgid "Birth Date."
+msgstr ""
+
+#. module: passport
+#: selection:res.passport,gender:0
+msgid "Male"
+msgstr ""
+
+#. module: passport
+#: help:res.passport,country_id:0
+msgid "Delivery country."
+msgstr ""
+
+#. module: passport
+#: field:res.passport,expiration_date:0
+msgid "Expiration date"
+msgstr ""
+
+#. module: passport
+#: field:res.passport,birth_date:0
+msgid "Birth Date"
+msgstr ""
=== added file 'passport/res_passport.py'
--- passport/res_passport.py 1970-01-01 00:00:00 +0000
+++ passport/res_passport.py 2014-01-30 16:42:56 +0000
@@ -0,0 +1,45 @@
+# -*- 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, select=True,
+ help='Owner name (As printed into the passport).'),
+ 'number': fields.char('Passport No', size=50,
+ help='Passport number.'),
+ 'country_id': fields.many2one('res.country', 'Delivery country',
+ help="Delivery country."),
+ 'expiration_date': fields.date('Expiration date',
+ help="Expiration date."),
+ 'birth_date': fields.date('Birth Date', help="Birth Date."),
+ 'gender': fields.selection([('male', 'Male'),
+ ('female', 'Female')],
+ 'Gender',
+ help="Gender."),
+ }
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'passport/res_passport_view.xml'
--- passport/res_passport_view.xml 1970-01-01 00:00:00 +0000
+++ passport/res_passport_view.xml 2014-01-30 16:42:56 +0000
@@ -0,0 +1,48 @@
+<?xml version="1.0" ?>
+<openerp>
+ <data>
+ <!-- Tree Views passport-->
+ <record model="ir.ui.view" id="passport_tree_view">
+ <field name="name">Passport Tree View</field>
+ <field name="model">res.passport</field>
+ <field name="type">tree</field>
+ <field name="arch" type="xml">
+ <tree string="PassportTree" version="7.0">
+ <field name="name"/>
+ <field name="number"/>
+ <field name="country_id"/>
+ <field name="expiration_date"/>
+ <field name="gender"/>
+ <field name="birth_date"/>
+ </tree>
+ </field>
+ </record>
+
+ <!-- Form Views passport-->
+ <record model="ir.ui.view" id="passport_form_view">
+ <field name="name">Passport Form View</field>
+ <field name="model">res.passport</field>
+ <field name="type">form</field>
+ <field name="arch" type="xml">
+ <form string="PassportForm" 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"/>
+ </group>
+ </form>
+ </field>
+ </record>
+
+ <!-- Actions -->
+ <record model="ir.actions.act_window" id="action_passport_tree_list">
+ <field name="name">Passport</field>
+ <field name="view_id" ref="passport_tree_view"/>
+ <field name="res_model">res.passport</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+ </data>
+</openerp>
=== added directory 'passport/security'
=== added file 'passport/security/ir.model.access.csv'
--- passport/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
+++ passport/security/ir.model.access.csv 2014-01-30 16:42:56 +0000
@@ -0,0 +1,2 @@
+"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
+"access_res_passport","res_passport_user","model_res_passport","base.group_user",1,1,1,1
=== added directory 'passport_partner'
=== added file 'passport_partner/__init__.py'
--- passport_partner/__init__.py 1970-01-01 00:00:00 +0000
+++ passport_partner/__init__.py 2014-01-30 16:42:56 +0000
@@ -0,0 +1,24 @@
+# -*- 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 . import res_passport
+from . import res_partner
=== added file 'passport_partner/__openerp__.py'
--- passport_partner/__openerp__.py 1970-01-01 00:00:00 +0000
+++ passport_partner/__openerp__.py 2014-01-30 16:42:56 +0000
@@ -0,0 +1,59 @@
+# -*- 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': 'Passport Management - Partners Bindings',
+ 'version': '0.1',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'license': 'AGPL-3',
+ 'category': 'Customer Relationship Management',
+ 'summary': 'Partner Multi Passport',
+ 'description': """
+Passport Management - Partners Bindings
+=======================================
+
+This module allows you to manage several passports for each contact.
+
+Contributors
+------------
+* El Hadji Dem (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+
+""",
+ 'depends': [
+ 'base',
+ 'passport'
+ ],
+ 'external_dependencies': {
+ 'python': [],
+ },
+ 'data': [
+ "res_partner_view.xml",
+ ],
+ 'demo': [],
+ 'test': [],
+ 'installable': True,
+ 'auto_install': True,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'passport_partner/i18n'
=== added file 'passport_partner/i18n/fr.po'
--- passport_partner/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ passport_partner/i18n/fr.po 2014-01-30 16:42:56 +0000
@@ -0,0 +1,48 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * passport_partner
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-17 16:33+0000\n"
+"PO-Revision-Date: 2014-01-17 11:34-0500\n"
+"Last-Translator: EL Hadji DEM <elhadji.dem@xxxxxxxxxxxxxxxxxxxx>\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: passport_partner
+#: view:res.partner:0
+msgid "Passport Details"
+msgstr "Détails du passeport"
+
+#. module: passport_partner
+#: field:res.passport,partner_id:0
+msgid "Contact"
+msgstr "Contact"
+
+#. module: passport_partner
+#: model:ir.model,name:passport_partner.model_res_passport view:res.partner:0
+#: field:res.partner,passport_ids:0
+msgid "Passport"
+msgstr "Passeport"
+
+#. module: passport_partner
+#: model:ir.model,name:passport_partner.model_res_partner
+msgid "Partner"
+msgstr "Partenaire"
+
+#. module: passport_partner
+#: help:res.passport,partner_id:0
+msgid "Contact."
+msgstr "Contact."
+
+#. module: passport_partner
+#: view:res.partner:0
+msgid "Owner name (As printed into the passport)"
+msgstr "Nom du propriétaire (Comme écrit sur le passeport)"
=== added file 'passport_partner/i18n/passport_partner.pot'
--- passport_partner/i18n/passport_partner.pot 1970-01-01 00:00:00 +0000
+++ passport_partner/i18n/passport_partner.pot 2014-01-30 16:42:56 +0000
@@ -0,0 +1,48 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * passport_partner
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-17 16:32+0000\n"
+"PO-Revision-Date: 2014-01-17 11:32-0500\n"
+"Last-Translator: EL Hadji DEM <elhadji.dem@xxxxxxxxxxxxxxxxxxxx>\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: passport_partner
+#: view:res.partner:0
+msgid "Passport Details"
+msgstr ""
+
+#. module: passport_partner
+#: field:res.passport,partner_id:0
+msgid "Contact"
+msgstr ""
+
+#. module: passport_partner
+#: model:ir.model,name:passport_partner.model_res_passport view:res.partner:0
+#: field:res.partner,passport_ids:0
+msgid "Passport"
+msgstr ""
+
+#. module: passport_partner
+#: model:ir.model,name:passport_partner.model_res_partner
+msgid "Partner"
+msgstr ""
+
+#. module: passport_partner
+#: help:res.passport,partner_id:0
+msgid "Contact."
+msgstr ""
+
+#. module: passport_partner
+#: view:res.partner:0
+msgid "Owner name (As printed into the passport)"
+msgstr ""
=== added file 'passport_partner/res_partner.py'
--- passport_partner/res_partner.py 1970-01-01 00:00:00 +0000
+++ passport_partner/res_partner.py 2014-01-30 16:42:56 +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 'passport_partner/res_partner_view.xml'
--- passport_partner/res_partner_view.xml 1970-01-01 00:00:00 +0000
+++ passport_partner/res_partner_view.xml 2014-01-30 16:42:56 +0000
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <record id="view_passport_partner_form" model="ir.ui.view">
+ <field name="name">passport.partner.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 'passport_partner/res_passport.py'
--- passport_partner/res_passport.py 1970-01-01 00:00:00 +0000
+++ passport_partner/res_passport.py 2014-01-30 16:42:56 +0000
@@ -0,0 +1,31 @@
+# -*- 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):
+ """Add contact"""
+ _inherit = 'res.passport'
+ _columns = {
+ 'partner_id': fields.many2one('res.partner', 'Contact', help="Contact."),
+ }
Follow ups
-
[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: noreply, 2014-03-04
-
[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Yannick Vaucher @ Camptocamp, 2014-03-04
-
Re: [Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Yannick Vaucher @ Camptocamp, 2014-02-28
-
[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Sandy Carter (http://www.savoirfairelinux.com), 2014-02-25
-
[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Sandy Carter (http://www.savoirfairelinux.com), 2014-02-25
-
Re: [Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Sandy Carter (http://www.savoirfairelinux.com), 2014-02-25
-
Re: [Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Yannick Vaucher @ Camptocamp, 2014-02-21
-
Re: [Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: El Hadji Dem (http://www.savoirfairelinux.com), 2014-02-18
-
Re: [Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Joao Alfredo Gama Batista, 2014-02-10
-
[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Sandy Carter (http://www.savoirfairelinux.com), 2014-02-03
-
Re: [Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_passport_passport_partner into lp:partner-contact-management
From: Sandy Carter (http://www.savoirfairelinux.com), 2014-02-03