← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_partner_supplier_information into lp:partner-contact-management

 

elhadji.dem@xxxxxxxxxxxxxxxxxxxx has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_partner_supplier_information 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_partner_supplier_information/+merge/204046

 Add partner_supplier_information module: It allows to add some specifics fields just for supplier
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_partner_supplier_information/+merge/204046
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_partner_supplier_information into lp:partner-contact-management.
=== added 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-30 17:12:38 +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_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-30 17:12:38 +0000
@@ -0,0 +1,64 @@
+# -*- 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 (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+    'depends': [
+        'account',
+    ],
+    'external_dependencies': {
+        'python': [],
+    },
+    'data': [
+        'res_partner_view.xml',
+    ],
+    'demo': [],
+    'test': [],
+    'installable': True,
+    'active': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added 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-30 17:12:38 +0000
@@ -0,0 +1,102 @@
+# 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 <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: 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-30 17:12:38 +0000
@@ -0,0 +1,102 @@
+# 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 <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: 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_partner.py'
--- partner_supplier_information/res_partner.py	1970-01-01 00:00:00 +0000
+++ partner_supplier_information/res_partner.py	2014-01-30 17:12:38 +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."),
+        '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."),
+        'matriculation_number': fields.char('Matriculation number', size=256, help="Matriculation 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-30 17:12:38 +0000
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+  <data>
+    <!--Add legal form, ong,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="ong"/>
+            <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 matriculation 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>


Follow ups