← Back to team overview

openerp-community-reviewer team mailing list archive

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

 

Mathieu Benoit has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/partner_category_description into lp:partner-contact-management.

Requested reviews:
  Partner and Contact Core Editors (partner-contact-core-editors)
  Joao Alfredo Gama Batista (joao-gama): code review, no tests
  Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter)

For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner_category_description/+merge/213697

Add field description to partner.category.
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner_category_description/+merge/213697
Your team Partner and Contact Core Editors is requested to review the proposed merge of lp:~savoirfairelinux-openerp/partner-contact-management/partner_category_description into lp:partner-contact-management.
=== added directory 'partner_category_description'
=== added file 'partner_category_description/__init__.py'
--- partner_category_description/__init__.py	1970-01-01 00:00:00 +0000
+++ partner_category_description/__init__.py	2014-04-01 18:02:54 +0000
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2014 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

=== added file 'partner_category_description/__openerp__.py'
--- partner_category_description/__openerp__.py	1970-01-01 00:00:00 +0000
+++ partner_category_description/__openerp__.py	2014-04-01 18:02:54 +0000
@@ -0,0 +1,49 @@
+# -*- encoding: utf-8 -*-
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2014 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 Category Description',
+    'version': '0.1',
+    'author': 'Savoir-faire Linux',
+    'maintainer': 'Savoir-faire Linux',
+    'website': 'http://www.savoirfairelinux.com',
+    'license': 'AGPL-3',
+    'category': 'Partner',
+    'summary': 'Partner category description',
+    'description': """
+Partner Category Description module
+===================================
+This module adds a translatable description to the partner tags.
+
+.. image:: /partner_category_description/static/src/demo/view_partner_quantity_description.png
+
+Contributors
+------------
+* Mathieu Benoit (mathieu.benoit@xxxxxxxxxxxxxxxxxxxx)
+""",
+    'depends': [],
+    'external_dependencies': {
+        'python': [],
+    },
+    'data': [
+        'res_partner_view.xml'
+    ],
+    'installable': True,
+}

=== added directory 'partner_category_description/i18n'
=== added file 'partner_category_description/i18n/fr.po'
--- partner_category_description/i18n/fr.po	1970-01-01 00:00:00 +0000
+++ partner_category_description/i18n/fr.po	2014-04-01 18:02:54 +0000
@@ -0,0 +1,28 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# 	* partner_category_description
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-03-17 22:26+0000\n"
+"PO-Revision-Date: 2014-03-17 18:31-0500\n"
+"Last-Translator: <>\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.6.4\n"
+"Language: fr\n"
+
+#. module: partner_category_description
+#: model:ir.model,name:partner_category_description.model_res_partner_category
+msgid "Partner Categories"
+msgstr "Catégories de partenaires"
+
+#. module: partner_category_description
+#: field:res.partner.category,description:0
+msgid "Description"
+msgstr "Description"

=== added file 'partner_category_description/i18n/partner_category_description.pot'
--- partner_category_description/i18n/partner_category_description.pot	1970-01-01 00:00:00 +0000
+++ partner_category_description/i18n/partner_category_description.pot	2014-04-01 18:02:54 +0000
@@ -0,0 +1,27 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# 	* partner_category_description
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-03-17 22:26+0000\n"
+"PO-Revision-Date: 2014-03-17 18:30-0500\n"
+"Last-Translator: <>\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.6.4\n"
+
+#. module: partner_category_description
+#: model:ir.model,name:partner_category_description.model_res_partner_category
+msgid "Partner Categories"
+msgstr ""
+
+#. module: partner_category_description
+#: field:res.partner.category,description:0
+msgid "Description"
+msgstr ""

=== added file 'partner_category_description/res_partner.py'
--- partner_category_description/res_partner.py	1970-01-01 00:00:00 +0000
+++ partner_category_description/res_partner.py	2014-04-01 18:02:54 +0000
@@ -0,0 +1,29 @@
+# -*- encoding: utf-8 -*-
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2014 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_category(orm.Model):
+    _inherit = "res.partner.category"
+
+    _columns = {
+        'description': fields.text('Description', translate=True)
+    }

=== added file 'partner_category_description/res_partner_view.xml'
--- partner_category_description/res_partner_view.xml	1970-01-01 00:00:00 +0000
+++ partner_category_description/res_partner_view.xml	2014-04-01 18:02:54 +0000
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE openerp SYSTEM "openerp.dtd">
+<openerp>
+  <data>
+    <!-- Categories -->
+    <record id="view_partner_category_desc_form" model="ir.ui.view">
+      <field name="model">res.partner.category</field>
+      <field name="inherit_id" ref="base.view_partner_category_form"/>
+      <field name="arch" type="xml">
+        <group col="4" position="after">
+          <group>
+            <field name="description"/>
+          </group>
+        </group>
+      </field>
+    </record>
+  </data>
+</openerp>
\ No newline at end of file

=== added directory 'partner_category_description/static'
=== added directory 'partner_category_description/static/src'
=== added directory 'partner_category_description/static/src/demo'
=== added file 'partner_category_description/static/src/demo/icon.png'
Binary files partner_category_description/static/src/demo/icon.png	1970-01-01 00:00:00 +0000 and partner_category_description/static/src/demo/icon.png	2014-04-01 18:02:54 +0000 differ
=== added file 'partner_category_description/static/src/demo/view_partner_quantity_description.png'
Binary files partner_category_description/static/src/demo/view_partner_quantity_description.png	1970-01-01 00:00:00 +0000 and partner_category_description/static/src/demo/view_partner_quantity_description.png	2014-04-01 18:02:54 +0000 differ

Follow ups