Browse Source

[ADD] Addon chricar_partner_id_number, migrated to v8

pull/255/head
Antonio Espinosa 10 years ago
committed by Laurent Mignon (ACSONE)
parent
commit
6cd6bb5105
  1. 19
      README.rst
  2. 30
      __init__.py
  3. 82
      __openerp__.py
  4. 122
      i18n/chricar_partner_id_number.pot
  5. 0
      i18n/de.po.old
  6. 31
      models/__init__.py
  7. 37
      models/res_partner.py
  8. 38
      models/res_partner_id_category.py
  9. 48
      models/res_partner_id_number.py
  10. 51
      partner_id_number.py
  11. 18
      partner_id_number_demo.xml
  12. 98
      partner_id_number_view.xml
  13. 2
      security/ir.model.access.csv
  14. 5
      security/ir.model.csv
  15. 42
      views/res_partner_id_category_view.xml
  16. 49
      views/res_partner_id_number_view.xml
  17. 23
      views/res_partner_view.xml

19
README.rst

@ -0,0 +1,19 @@
Partner Identification Numbers
==============================
This module allows to manage all sort of identification numbers
and certificates which are assigned to a partner and vary from country
to country
* Commercial register
* VAT ID (eventually)
* fiscal ID's
* membership numbers
* ...
Credits
=======
Contributors
------------
* Antonio Espinosa <antonioea@antiun.com>

30
__init__.py

@ -1 +1,29 @@
import partner_id_number
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL
# http://tiny.be
# Copyright (C) 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH
# http://www.camptocamp.at
# Copyright (C) 2015 Antiun Ingenieria, SL (Madrid, Spain)
# http://www.antiun.com
# Antonio Espinosa <antonioea@antiun.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 models

82
__openerp__.py

@ -1,25 +1,63 @@
{ 'sequence': 500,
"name" : "Partner Identification Numbers"
, "version" : "0.2"
, "author" : "ChriCar Beteiligungs- und Beratungs- GmbH"
, "website" : "http://www.chricar.at/ChriCar"
, "description" : """This module allows to manage all sort of identification numbers
and certificates which are assigned to a partner and vary from country to country
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL
# http://tiny.be
# Copyright (C) 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH
# http://www.camptocamp.at
# Copyright (C) 2015 Antiun Ingenieria, SL (Madrid, Spain)
# http://www.antiun.com
# Antonio Espinosa <antonioea@antiun.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/>.
#
##############################################################################
* Commercial register
* VAT ID (eventually)
* fiscal ID's
* membership numbers
* ...
{
# Addon information
'name': 'Partner Identification Numbers',
'category': 'Customer Relationship Management',
'version': '1.0',
'depends': [
'crm',
],
'external_dependencies': {},
# Views templates, pages, menus, options and snippets
'data': [
'views/res_partner_id_category_view.xml',
'views/res_partner_id_number_view.xml',
'views/res_partner_view.xml',
'security/ir.model.access.csv',
],
# Qweb templates
'qweb': [
],
# Your information
'author': 'ChriCar Beteiligungs- und Beratungs- GmbH, '
'Antiun Ingeniería, SL',
'maintainer': 'ChriCar Beteiligungs- und Beratungs- GmbH, '
'Antiun Ingeniería, SL',
'website': 'http://www.camptocamp.at, '
'http://www.antiun.com',
'license': 'AGPL-3',
# Technical options
'demo': [],
'test': [],
'installable': True,
# 'auto_install':False,
# 'active':True,
"""
, "category" : "Generic Modules/Others"
, "depends" : ["base"]
, "init_xml" : []
, "demo" : ["partner_id_number_demo.xml"]
, "data" : ["partner_id_number_view.xml", "security/ir.model.access.csv"]
#, "data" : ["partner_id_number_view.xml","security/ir.model.access.csv"]
, "auto_install" : False
, 'installable': False
, 'application' : False
}

122
i18n/chricar_partner_id_number.pot

@ -1,122 +0,0 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * chricar_partner_id_number
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 6.1rc1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-01-23 22:06+0000\n"
"PO-Revision-Date: 2012-01-23 22:06+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: chricar_partner_id_number
#: view:res.partner:0
msgid "Ident. Numbers"
msgstr ""
#. module: chricar_partner_id_number
#: view:res.partner.id_category:0
msgid "Partner Identification Categories"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner,id_numbers:0
msgid "Identification Numbers"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_category,code:0
msgid "Code"
msgstr ""
#. module: chricar_partner_id_number
#: constraint:res.partner:0
msgid "Error: Invalid EAN code"
msgstr ""
#. module: chricar_partner_id_number
#: model:ir.actions.act_window,name:chricar_partner_id_number.action_partner_id_category
#: model:ir.ui.menu,name:chricar_partner_id_number.menu_partner_id_category
msgid "Partner ID Categories"
msgstr ""
#. module: chricar_partner_id_number
#: model:ir.model,name:chricar_partner_id_number.model_res_partner_id_number
msgid "res.partner.id_number"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_number,date_issued:0
msgid "Issued"
msgstr ""
#. module: chricar_partner_id_number
#: view:res.partner.id_number:0
#: field:res.partner.id_number,comment:0
msgid "Notes"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_category,name:0
msgid "ID Number"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_number,valid_from:0
msgid "Valid From"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_number,state:0
msgid "State"
msgstr ""
#. module: chricar_partner_id_number
#: model:ir.model,name:chricar_partner_id_number.model_res_partner_id_category
msgid "res.partner.id_category"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_number,name:0
msgid "ID-Number"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_number,category_id:0
msgid "ID-Category"
msgstr ""
#. module: chricar_partner_id_number
#: model:ir.actions.act_window,name:chricar_partner_id_number.action_partner_id_numbers_form
#: view:res.partner.id_number:0
msgid "Partner ID Numbers"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_number,valid_until:0
msgid "Valid Until"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_category,active:0
#: field:res.partner.id_number,active:0
msgid "Active"
msgstr ""
#. module: chricar_partner_id_number
#: model:ir.model,name:chricar_partner_id_number.model_res_partner
#: field:res.partner.id_number,partner_id:0
msgid "Partner"
msgstr ""
#. module: chricar_partner_id_number
#: field:res.partner.id_number,partner_issued_id:0
msgid "Issued by"
msgstr ""

0
i18n/de.po → i18n/de.po.old

31
models/__init__.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL
# http://tiny.be
# Copyright (C) 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH
# http://www.camptocamp.at
# Copyright (C) 2015 Antiun Ingenieria, SL (Madrid, Spain)
# http://www.antiun.com
# Antonio Espinosa <antonioea@antiun.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_partner_id_number
from . import res_partner_id_category
from . import res_partner

37
models/res_partner.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL
# http://tiny.be
# Copyright (C) 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH
# http://www.camptocamp.at
# Copyright (C) 2015 Antiun Ingenieria, SL (Madrid, Spain)
# http://www.antiun.com
# Antonio Espinosa <antonioea@antiun.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 import models, fields
class ResPartner(models.Model):
_inherit = 'res.partner'
id_numbers = fields.One2many(
comodel_name='res.partner.id_number', inverse_name='partner_id',
string="Identification Numbers")

38
models/res_partner_id_category.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL
# http://tiny.be
# Copyright (C) 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH
# http://www.camptocamp.at
# Copyright (C) 2015 Antiun Ingenieria, SL (Madrid, Spain)
# http://www.antiun.com
# Antonio Espinosa <antonioea@antiun.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 import models, fields
class ResPartnerIdCategory(models.Model):
_name = "res.partner.id_category"
_order = "name"
code = fields.Char(string="Code", size=16, required=True)
name = fields.Char(string="ID name", required=True, translate=True)
active = fields.Boolean(string="Active", default=True)

48
models/res_partner_id_number.py

@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
# Python source code encoding : https://www.python.org/dev/peps/pep-0263/
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL
# http://tiny.be
# Copyright (C) 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH
# http://www.camptocamp.at
# Copyright (C) 2015 Antiun Ingenieria, SL (Madrid, Spain)
# http://www.antiun.com
# Antonio Espinosa <antonioea@antiun.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 import models, fields
class ResPartnerIdNumber(models.Model):
_name = "res.partner.id_number"
_order = "name"
name = fields.Char(string="ID Number", required=True)
category_id = fields.Many2one(string="Category", required=True,
comodel_name='res.partner.id_category')
partner_id = fields.Many2one(string="Partner", required=True,
comodel_name='res.partner')
partner_issued_id = fields.Many2one(string="Issued by",
comodel_name='res.partner')
date_issued = fields.Date(string="Issued on")
valid_from = fields.Date(string="Valid from")
valid_until = fields.Date(string="Valid until")
comment = fields.Text(string="Notes")
state = fields.Char(string="State", size=16)
active = fields.Boolean(string="Active", default=True)

51
partner_id_number.py

@ -1,51 +0,0 @@
##############################################
#
# ChriCar Beteiligungs- und Beratungs- GmbH
# Copyright (C) ChriCar Beteiligungs- und Beratungs- GmbH
# all rights reserved
# created 2008-07-05
#
###############################################
import time
from openerp.osv import fields,osv
##import pooler
class res_partner_id_category(osv.osv):
_name = "res.partner.id_category"
_columns = {
'code' : fields.char ('Code', size=16, required=True),
'name' : fields.char ('ID Number', size=32, required=True, translate=True),
'active' : fields.boolean ('Active'),
}
_defaults = {
'active': lambda *a: True,
}
_order = "name"
res_partner_id_category()
class res_partner_id_number(osv.osv):
_name = "res.partner.id_number"
_columns = {
'category_id' : fields.many2one('res.partner.id_category','ID-Category', required=True),
'name' : fields.char ('ID-Number',size=32,required=True),
'partner_id' : fields.many2one('res.partner','Partner', required=True),
'partner_issued_id' : fields.many2one('res.partner','Issued by', required=True),
'date_issued' : fields.date ('Issued'),
'valid_from' : fields.date ('Valid From'),
'valid_until' : fields.date ('Valid Until'),
'comment' : fields.text ('Notes'),
'active' : fields.boolean ('Active'),
'state' : fields.char ('State', size=16),
}
_defaults = {
'active': lambda *a: True,
}
res_partner_id_number()
class res_partner(osv.osv):
_inherit = "res.partner"
_columns = {
'id_numbers': fields.one2many('res.partner.id_number','partner_id','Identification Numbers'),
}
res_partner()

18
partner_id_number_demo.xml

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data noupdate="1">
<!-- import fails
<record record_id="res_partner_id_category_1" model="res.partner.id_category">
<field name="code">cr</field>
<field name="name">Commercial Register Number</field>
</record>
<record model="res.partner.id_number">
<field name="category_id" search="[('name','=','Commercial Register Number')]" model="res.partner.id_category"/>
<field name="name">123 this is the number</field>
<field name="partner_id" search="[('name','=','Camptocamp')]" model="res.partner"/>
<field name="partner_issued_id" search="[('name','=','Bank Wealthy and sons')]" model="res.partner"/>
</record>
--></data>
</openerp>

98
partner_id_number_view.xml

@ -1,98 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!--
=======================
Partner Identification Number Categories
=======================
-->
<record id="view_partner_id_category_form" model="ir.ui.view">
<field name="name">res.partner.id_category.form</field>
<field name="model">res.partner.id_category</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner Identification Categories">
<field name="name" />
<field name="code" />
</form>
</field>
</record>
<record id="view_partner_id_category_tree" model="ir.ui.view">
<field name="name">res.partner.id_category.tree</field>
<field name="model">res.partner.id_category</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner Identification Categories">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="action_partner_id_category" model="ir.actions.act_window">
<field name="name">Partner ID Categories</field>
<field name="res_model">res.partner.id_category</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
action="action_partner_id_category"
id="menu_partner_id_category"
parent="base.menu_config_address_book"/>
<!--
==============================================
Modification of Partner - Adding Tab for Idenification Numbers
==============================================
-->
<record model="ir.ui.view" id="view_partner_form">
<field name="name">res.partner.form.id_number</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<notebook>
<page string="Ident. Numbers">
<field name="id_numbers" colspan="4" nolabel="1" widget="one2many_list"/>
</page>
</notebook>
</field>
</record>
<record id="view_partner_id_numbers_form" model="ir.ui.view">
<field name="name">res.partner.id_number.form</field>
<field name="model">res.partner.id_number</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner ID Numbers">
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="valid_from" />
<field name="valid_until" />
<separator colspan="4" string="Notes"/>
<field name="comment" colspan="4" nolabel="1"/>
</form>
</field>
</record>
<record id="view_partner_id_numbers_tree" model="ir.ui.view">
<field name="name">res.partner.id_number.tree</field>
<field name="model">res.partner.id_number</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner ID Numbers">
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="valid_from" />
<field name="valid_until" />
</tree>
</field>
</record>
<record id="action_partner_id_numbers_form" model="ir.actions.act_window">
<field name="name">Partner ID Numbers</field>
<field name="res_model">res.partner.id_number</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
</data>
</openerp>

2
security/ir.model.access.csv

@ -1,5 +1,5 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_res_partner_id_number_group_user","res.partner.id_number","model_res_partner_id_number","base.group_user",1,0,0,0
"access_res_partner_id_number_group_partner_manager","res.partner.id_number","model_res_partner_id_number","base.group_partner_manager",1,1,1,1
"access_res_partner_id_number_group_user","res.partner.id_category","model_res_partner_id_category","base.group_user",1,0,0,0
"access_res_partner_id_category_group_user","res.partner.id_category","model_res_partner_id_category","base.group_user",1,0,0,0
"access_res_partner_id_category_group_partner_manager","res.partner.id_category","model_res_partner_id_category","base.group_partner_manager",1,1,1,1

5
security/ir.model.csv

@ -1,5 +0,0 @@
^"id"^,^"name"^,^"model_id:id"^,^"group_id:id"^,^"perm_read"^,^"perm_write"^,^"perm_create"^,^"perm_unlink" ^
^"access_res_partner_id_number_group_user"^,^"res.partner.id_number"^,^"model_res_partner_id_number"^,^"base.group_user"^,1,0,0,0
^"access_res_partner_id_number_group_partner_manager"^,^"res.partner.id_number"^,^"model_res_partner_id_number"^,^"base.group_partner_manager"^,1,1,1,1
^"access_res_partner_id_number_group_user"^,^"res.partner.id_category"^,^"model_res_partner_id_category"^,^"base.group_user"^,1,0,0,0
^"access_res_partner_id_category_group_partner_manager"^,^"res.partner.id_category"^,^"model_res_partner_id_category"^,^"base.group_partner_manager"^,1,1,1,1

42
views/res_partner_id_category_view.xml

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!-- Partner Identification Number Categories -->
<record id="view_partner_id_category_form" model="ir.ui.view">
<field name="name">res.partner.id_category.form</field>
<field name="model">res.partner.id_category</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner Identification Categories">
<field name="name" />
<field name="code" />
</form>
</field>
</record>
<record id="view_partner_id_category_tree" model="ir.ui.view">
<field name="name">res.partner.id_category.tree</field>
<field name="model">res.partner.id_category</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner Identification Categories">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="action_partner_id_category" model="ir.actions.act_window">
<field name="name">Partner ID Categories</field>
<field name="res_model">res.partner.id_category</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem action="action_partner_id_category"
id="menu_partner_id_category"
parent="base.menu_config_address_book"/>
</data>
</openerp>

49
views/res_partner_id_number_view.xml

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="view_partner_id_numbers_form" model="ir.ui.view">
<field name="name">res.partner.id_number.form</field>
<field name="model">res.partner.id_number</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner ID Numbers">
<group>
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="valid_from" />
<field name="valid_until" />
</group>
<separator colspan="4" string="Notes"/>
<field name="comment" colspan="4" nolabel="1"/>
</form>
</field>
</record>
<record id="view_partner_id_numbers_tree" model="ir.ui.view">
<field name="name">res.partner.id_number.tree</field>
<field name="model">res.partner.id_number</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner ID Numbers">
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="valid_from" />
<field name="valid_until" />
</tree>
</field>
</record>
<record id="action_partner_id_numbers_form" model="ir.actions.act_window">
<field name="name">Partner ID Numbers</field>
<field name="res_model">res.partner.id_number</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
</data>
</openerp>

23
views/res_partner_view.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!-- Modification of Partner - Adding Tab for Idenification Numbers -->
<record model="ir.ui.view" id="view_partner_form">
<field name="name">res.partner.form.id_number</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<notebook>
<page string="ID Numbers">
<field name="id_numbers" colspan="4" nolabel="1"
widget="one2many_list"/>
</page>
</notebook>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save