[email protected] has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/improve_partner_supplier_information 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/improve_partner_supplier_information/+merge/201073 [IMP] improve partner_supplier_information -- https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/improve_partner_supplier_information/+merge/201073 Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions.
=== added directory 'partner_supplier_information' === removed directory 'partner_supplier_information' === added file 'partner_supplier_information/__init__.py' --- partner_supplier_information/__init__.py 1970-01-01 00:00:00 +0000 +++ partner_supplier_information/__init__.py 2014-01-09 18:44:07 +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 res_partner + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === removed file 'partner_supplier_information/__init__.py' --- partner_supplier_information/__init__.py 2014-01-03 15:07:50 +0000 +++ partner_supplier_information/__init__.py 1970-01-01 00:00:00 +0000 @@ -1,25 +0,0 @@ -# -*- 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 - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'partner_supplier_information/__openerp__.py' --- partner_supplier_information/__openerp__.py 1970-01-01 00:00:00 +0000 +++ partner_supplier_information/__openerp__.py 2014-01-09 18:44:07 +0000 @@ -0,0 +1,63 @@ +# -*- 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 Supplier Informations', + 'version': '0.1', + 'author': 'Savoir-faire Linux', + 'maintainer': 'Savoir-faire Linux', + 'website': 'http://www.savoirfairelinux.com', + 'category': 'MISC', + 'description': """ +Partner Supplier Informations +============================= + +This module adds some fields for supplier: + +* Legal form +* NGO: If partner is a Non-governmental organization (NGO) +* Confirmed supplier +* Registration number +* Registration date +* Registration location +* Matriculation Number + +Contributors +------------ +* EL HADJI DEM ([email protected]) +""", + 'depends': [ + 'account', + 'base', + ], + 'external_dependencies': {}, + 'data': [ + 'res_partner_view.xml', + 'res_bank_view.xml', + ], + 'demo': [], + 'test': [], + 'installable': True, + 'active': False, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === removed file 'partner_supplier_information/__openerp__.py' --- partner_supplier_information/__openerp__.py 2014-01-03 15:07:50 +0000 +++ partner_supplier_information/__openerp__.py 1970-01-01 00:00:00 +0000 @@ -1,52 +0,0 @@ -# -*- 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 Supplier Informations', - 'version': '0.1', - 'author': 'Savoir-faire Linux', - 'maintainer': 'Savoir-faire Linux', - 'website': 'http://www.savoirfairelinux.com', - 'category': 'MISC', - 'description': """ -Partner Supplier Informations -============================= - -This module adds some fields for supplier - - -Contributors ------------- -* EL HADJI DEM ([email protected]) -""", - 'depends': [ - 'base', - ], - 'external_dependencies': {}, - 'data': [], - 'demo': [], - 'test': [], - 'installable': True, - 'active': False, -} - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added directory 'partner_supplier_information/i18n' === removed directory 'partner_supplier_information/i18n' === added file 'partner_supplier_information/i18n/fr.po' --- partner_supplier_information/i18n/fr.po 1970-01-01 00:00:00 +0000 +++ partner_supplier_information/i18n/fr.po 2014-01-09 18:44:07 +0000 @@ -0,0 +1,117 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_supplier_information +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-01-09 18:21+0000\n" +"PO-Revision-Date: 2014-01-09 13:23-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_supplier_information +#: help:res.partner,matriculation_number:0 +msgid "Matriculation number." +msgstr "Numéro d'immatriculation." + +#. module: partner_supplier_information +#: view:res.partner:0 +msgid "Information" +msgstr "Information" + +#. module: partner_supplier_information +#: field:res.partner,ngo:0 +msgid "NGO" +msgstr "ONG" + +#. module: partner_supplier_information +#: view:res.partner:0 +msgid "Bank Details" +msgstr "Coordonnées bancaires" + +#. module: partner_supplier_information +#: field:res.partner,rcs_registration_number:0 +msgid "Registration number" +msgstr "N° d'enregistrement" + +#. module: partner_supplier_information +#: field:res.partner,acronym:0 +msgid "Acronym" +msgstr "Acronyme" + +#. module: partner_supplier_information +#: field:res.partner,rcs_registration_location:0 +msgid "Registration location" +msgstr "Lieu d'enregistrement" + +#. module: partner_supplier_information +#: help:res.partner,acronym:0 +msgid "Acronym." +msgstr "Acronyme." + +#. module: partner_supplier_information +#: help:res.partner,rcs_registration_location:0 +msgid "Registration location." +msgstr "Lieu d'enregistrement." + +#. module: partner_supplier_information +#: field:res.partner,legal_form:0 +msgid "Legal form" +msgstr "Forme juridique" + +#. module: partner_supplier_information +#: help:res.partner,confirmed_supplier:0 +msgid "confirmed supplier." +msgstr "fournisseur confirmé." + +#. module: partner_supplier_information +#: help:res.partner,legal_form:0 +msgid "Legal form." +msgstr "Forme juridique." + +#. module: partner_supplier_information +#: field:res.partner,confirmed_supplier:0 +msgid "Confirmed supplier" +msgstr "Fournisseur confirmé" + +#. module: partner_supplier_information +#: help:res.partner,rcs_registration_number:0 +msgid "Registration number." +msgstr "N° d'enregistrement." + +#. module: partner_supplier_information +#: model:ir.model,name:partner_supplier_information.model_res_partner +msgid "Partner" +msgstr "Organisme" + +#. module: partner_supplier_information +#: help:res.partner,ngo:0 +msgid "Non-governmental organization." +msgstr "Organisation non gouvernementale." + +#. module: partner_supplier_information +#: field:res.partner,rcs_date:0 +msgid "Registration date" +msgstr "Date d'enregistrement" + +#. module: partner_supplier_information +#: field:res.partner,matriculation_number:0 +msgid "Matriculation number" +msgstr "Numéro d'immatriculation" + +#. module: partner_supplier_information +#: help:res.partner,rcs_date:0 +msgid "Registration date." +msgstr "Date d'enregistrement." + +#. module: partner_supplier_information +#: view:res.partner:0 +msgid "Supplier informations" +msgstr "Informations fournisseur" === removed file 'partner_supplier_information/i18n/fr.po' --- partner_supplier_information/i18n/fr.po 2014-01-03 15:07:50 +0000 +++ partner_supplier_information/i18n/fr.po 1970-01-01 00:00:00 +0000 @@ -1,102 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * partner_supplier_information -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-01-03 07:28+0000\n" -"PO-Revision-Date: 2014-01-03 02:30-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_supplier_information -#: help:res.partner,ong:0 -msgid "ONG." -msgstr "ONG." - -#. module: partner_supplier_information -#: field:res.partner,rcs_registration_number:0 -msgid "Registration number" -msgstr "N° d'enregistrement" - -#. module: partner_supplier_information -#: field:res.partner,acronym:0 -msgid "Acronym" -msgstr "Acronyme" - -#. module: partner_supplier_information -#: field:res.partner,rcs_registration_location:0 -msgid "Registration location" -msgstr "Lieu d'enregistrement" - -#. module: partner_supplier_information -#: help:res.partner,acronym:0 -msgid "Acronym." -msgstr "Acronyme." - -#. module: partner_supplier_information -#: help:res.partner,rcs_registration_location:0 -msgid "Registration location." -msgstr "Lieu d'enregistrement." - -#. module: partner_supplier_information -#: field:res.partner,ong:0 -msgid "ONG" -msgstr "ONG" - -#. module: partner_supplier_information -#: help:res.partner,immatriculation_number:0 -msgid "Immatriculation number." -msgstr "Numéro d'immatriculation." - -#. module: partner_supplier_information -#: field:res.partner,legal_form:0 -msgid "Legal form" -msgstr "Forme juridique" - -#. module: partner_supplier_information -#: help:res.partner,confirmed_supplier:0 -msgid "confirmed supplier." -msgstr "fournisseur confirmé." - -#. module: partner_supplier_information -#: help:res.partner,legal_form:0 -msgid "Legal form." -msgstr "Forme juridique." - -#. module: partner_supplier_information -#: field:res.partner,immatriculation_number:0 -msgid "Immatriculation number" -msgstr "Numéro d'immatriculation" - -#. module: partner_supplier_information -#: field:res.partner,confirmed_supplier:0 -msgid "Confirmed supplier" -msgstr "Fournisseur confirmé" - -#. module: partner_supplier_information -#: help:res.partner,rcs_registration_number:0 -msgid "Registration number." -msgstr "N° d'enregistrement." - -#. module: partner_supplier_information -#: model:ir.model,name:partner_supplier_information.model_res_partner -msgid "Partner" -msgstr "Organisme" - -#. module: partner_supplier_information -#: help:res.partner,rcs_date:0 -msgid "Registration date." -msgstr "Date d'enregistrement." - -#. module: partner_supplier_information -#: field:res.partner,rcs_date:0 -msgid "Registration date" -msgstr "Date d'enregistrement" === added file 'partner_supplier_information/i18n/partner_supplier_information.pot' --- partner_supplier_information/i18n/partner_supplier_information.pot 1970-01-01 00:00:00 +0000 +++ partner_supplier_information/i18n/partner_supplier_information.pot 2014-01-09 18:44:07 +0000 @@ -0,0 +1,117 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_supplier_information +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-01-09 18:17+0000\n" +"PO-Revision-Date: 2014-01-09 13:17-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_supplier_information +#: help:res.partner,matriculation_number:0 +msgid "Matriculation number." +msgstr "" + +#. module: partner_supplier_information +#: view:res.partner:0 +msgid "Information" +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,ngo:0 +msgid "NGO" +msgstr "" + +#. module: partner_supplier_information +#: view:res.partner:0 +msgid "Bank Details" +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,rcs_registration_number:0 +msgid "Registration number" +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,acronym:0 +msgid "Acronym" +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,rcs_registration_location:0 +msgid "Registration location" +msgstr "" + +#. module: partner_supplier_information +#: help:res.partner,acronym:0 +msgid "Acronym." +msgstr "" + +#. module: partner_supplier_information +#: help:res.partner,rcs_registration_location:0 +msgid "Registration location." +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,legal_form:0 +msgid "Legal form" +msgstr "" + +#. module: partner_supplier_information +#: help:res.partner,confirmed_supplier:0 +msgid "confirmed supplier." +msgstr "" + +#. module: partner_supplier_information +#: help:res.partner,legal_form:0 +msgid "Legal form." +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,confirmed_supplier:0 +msgid "Confirmed supplier" +msgstr "" + +#. module: partner_supplier_information +#: help:res.partner,rcs_registration_number:0 +msgid "Registration number." +msgstr "" + +#. module: partner_supplier_information +#: model:ir.model,name:partner_supplier_information.model_res_partner +msgid "Partner" +msgstr "" + +#. module: partner_supplier_information +#: help:res.partner,ngo:0 +msgid "Non-governmental organization." +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,rcs_date:0 +msgid "Registration date" +msgstr "" + +#. module: partner_supplier_information +#: field:res.partner,matriculation_number:0 +msgid "Matriculation number" +msgstr "" + +#. module: partner_supplier_information +#: help:res.partner,rcs_date:0 +msgid "Registration date." +msgstr "" + +#. module: partner_supplier_information +#: view:res.partner:0 +msgid "Supplier informations" +msgstr "" === removed file 'partner_supplier_information/i18n/partner_supplier_information.pot' --- partner_supplier_information/i18n/partner_supplier_information.pot 2014-01-03 15:07:50 +0000 +++ partner_supplier_information/i18n/partner_supplier_information.pot 1970-01-01 00:00:00 +0000 @@ -1,102 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * partner_supplier_information -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-01-03 07:27+0000\n" -"PO-Revision-Date: 2014-01-03 02:28-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_supplier_information -#: help:res.partner,ong:0 -msgid "ONG." -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,rcs_registration_number:0 -msgid "Registration number" -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,acronym:0 -msgid "Acronym" -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,rcs_registration_location:0 -msgid "Registration location" -msgstr "" - -#. module: partner_supplier_information -#: help:res.partner,acronym:0 -msgid "Acronym." -msgstr "" - -#. module: partner_supplier_information -#: help:res.partner,rcs_registration_location:0 -msgid "Registration location." -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,ong:0 -msgid "ONG" -msgstr "" - -#. module: partner_supplier_information -#: help:res.partner,immatriculation_number:0 -msgid "Immatriculation number." -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,legal_form:0 -msgid "Legal form" -msgstr "" - -#. module: partner_supplier_information -#: help:res.partner,confirmed_supplier:0 -msgid "confirmed supplier." -msgstr "" - -#. module: partner_supplier_information -#: help:res.partner,legal_form:0 -msgid "Legal form." -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,immatriculation_number:0 -msgid "Immatriculation number" -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,confirmed_supplier:0 -msgid "Confirmed supplier" -msgstr "" - -#. module: partner_supplier_information -#: help:res.partner,rcs_registration_number:0 -msgid "Registration number." -msgstr "" - -#. module: partner_supplier_information -#: model:ir.model,name:partner_supplier_information.model_res_partner -msgid "Partner" -msgstr "" - -#. module: partner_supplier_information -#: help:res.partner,rcs_date:0 -msgid "Registration date." -msgstr "" - -#. module: partner_supplier_information -#: field:res.partner,rcs_date:0 -msgid "Registration date" -msgstr "" === added file 'partner_supplier_information/res_bank_view.xml' --- partner_supplier_information/res_bank_view.xml 1970-01-01 00:00:00 +0000 +++ partner_supplier_information/res_bank_view.xml 2014-01-09 18:44:07 +0000 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <!--redefine bank_ids tree--> + <record id="view_partner_property_bank_form" model="ir.ui.view"> + <field name="name">res.partner.property.bank.inherit.bank.form</field> + <field name="model">res.partner</field> + <field name="inherit_id" ref="account.view_partner_property_form"/> + <field name="arch" type="xml"> + <!--redefine bank_ids tree--> + <field name="bank_ids" position="replace"> + <field name="bank_ids" + context="{'default_partner_id': active_id, 'form_view_ref': 'base.view_partner_bank_form'}"> + <tree string="Bank Details"> + <field name="active"/> + <field name="state" invisible="1"/> + <field name="sequence" invisible="1"/> + <field name="acc_number"/> + <field name="bank_name"/> + <field name="owner_name"/> + </tree> + </field> + </field> + </field> + </record> + </data> +</openerp> === added file 'partner_supplier_information/res_partner.py' --- partner_supplier_information/res_partner.py 1970-01-01 00:00:00 +0000 +++ partner_supplier_information/res_partner.py 2014-01-09 18:44:07 +0000 @@ -0,0 +1,41 @@ +# -*- 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 = { + 'legal_form': fields.char('Legal form', size=256, help="Legal form."), + 'ngo': fields.boolean('NGO', help="Non-governmental organization."), + 'acronym': fields.char('Acronym', size=256, help="Acronym."), + 'confirmed_supplier': fields.boolean('Confirmed supplier', help="confirmed supplier."), + 'rcs_registration_number': fields.char('Registration number', size=256, + help="Registration number."), + 'rcs_date': fields.date('Registration date', help="Registration date."), + 'rcs_registration_location': fields.char('Registration location', size=256, + help="Registration location."), + 'matriculation_number': fields.char('Matriculation number', size=256, help="Matriculation number."), + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === removed file 'partner_supplier_information/res_partner.py' --- partner_supplier_information/res_partner.py 2014-01-03 15:07:50 +0000 +++ partner_supplier_information/res_partner.py 1970-01-01 00:00:00 +0000 @@ -1,41 +0,0 @@ -# -*- 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 = { - 'legal_form': fields.char('Legal form', size=256, help="Legal form."), - 'ong': fields.boolean('ONG', help="ONG."), - 'acronym': fields.char('Acronym', size=256, help="Acronym."), - 'confirmed_supplier': fields.boolean('Confirmed supplier', help="confirmed supplier."), - 'rcs_registration_number': fields.char('Registration number', size=256, - help="Registration number."), - 'rcs_date': fields.date('Registration date', help="Registration date."), - 'rcs_registration_location': fields.char('Registration location', size=256, - help="Registration location."), - 'immatriculation_number': fields.char('Immatriculation number', size=256, help="Immatriculation number."), - } - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'partner_supplier_information/res_partner_view.xml' --- partner_supplier_information/res_partner_view.xml 1970-01-01 00:00:00 +0000 +++ partner_supplier_information/res_partner_view.xml 2014-01-09 18:44:07 +0000 @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + <!--Add legal form, ngo,acronym,confirmed supplier, + rcs number,rcs date, rcs and SIRET number fields in form view--> + <record id="view_partner_property_supplier_info_form" model="ir.ui.view"> + <field name="name">res.partner.property.supplier.info.form.inherit</field> + <field name="model">res.partner</field> + <field name="inherit_id" ref="account.view_partner_property_form"/> + <field name="arch" type="xml"> + <xpath expr="//page[@string='Accounting']/group[1]/group[2]" + position="after"> + <group string="Supplier informations" col="4" colspan="4" + attrs="{'invisible': [('supplier', '=', False)]}"> + <field name="legal_form"/> + <field name="ngo"/> + <field name="acronym"/> + <field name="confirmed_supplier"/> + </group> + <group string="Information" col="4" colspan="4" + attrs="{'invisible': [('confirmed_supplier', '=', False)]}"> + <field name="rcs_registration_number"/> + <field name="rcs_date"/> + <field name="rcs_registration_location"/> + </group> + </xpath> + + <!--add immatriculation number in form view--> + <field name="last_reconciliation_date" + position="after"> + <field name="matriculation_number" + attrs="{'invisible': [('confirmed_supplier', '=', False)]}"/> + </field> + </field> + </record> + </data> +</openerp>
-- Mailing list: https://launchpad.net/~savoirfairelinux-openerp Post to : [email protected] Unsubscribe : https://launchpad.net/~savoirfairelinux-openerp More help : https://help.launchpad.net/ListHelp

