openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #03257
[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_user_firstname into lp:partner-contact-management
elhadji.dem@xxxxxxxxxxxxxxxxxxxx has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_user_firstname 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_user_firstname/+merge/204049
Add user_firstname module; It allows to display firstname field on user view form and tree
--
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner-contact-management-base_contact_add_user_firstname/+merge/204049
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_user_firstname into lp:partner-contact-management.
=== added directory 'user_firstname'
=== added file 'user_firstname/__init__.py'
--- user_firstname/__init__.py 1970-01-01 00:00:00 +0000
+++ user_firstname/__init__.py 2014-01-30 17:19:49 +0000
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# This module copyright (C) 2013, 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/>.
+#
+##############################################################################
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'user_firstname/__openerp__.py'
--- user_firstname/__openerp__.py 1970-01-01 00:00:00 +0000
+++ user_firstname/__openerp__.py 2014-01-30 17:19:49 +0000
@@ -0,0 +1,55 @@
+# -*- 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': 'User First Name, Last Name',
+ 'version': '0.1',
+ 'category': 'Customer Relationship Management',
+ 'summary': 'Add First Name to user',
+ 'description': """
+User First Name, Last Name
+==========================
+
+This module allows you to add firstname and lastname in user form,
+and concatenate both in name field.
+
+Contributors
+------------
+* El Hadji Dem (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+ 'author': 'Savoir-faire Linux',
+ 'website': 'www.savoirfairelinux.com',
+ 'license': 'AGPL-3',
+ 'depends': [
+ 'partner_firstname',
+ ],
+ 'data': [
+ 'res_user_view.xml',
+ ],
+ 'test': [],
+ 'demo': [
+ ],
+ 'installable': True,
+ 'active': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'user_firstname/i18n'
=== added file 'user_firstname/i18n/fr.po'
--- user_firstname/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ user_firstname/i18n/fr.po 2014-01-30 17:19:49 +0000
@@ -0,0 +1,32 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * user_firstname
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-12-20 21:38+0000\n"
+"PO-Revision-Date: 2013-12-20 16:39-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.5.4\n"
+
+#. module: user_firstname
+#: view:res.users:0
+msgid "e.g. Lastname"
+msgstr "Nom"
+
+#. module: user_firstname
+#: model:ir.model,name:user_firstname.model_res_users
+msgid "Users"
+msgstr "Utilisateurs"
+
+#. module: user_firstname
+#: view:res.users:0
+msgid "e.g. Firstname"
+msgstr "Prénom"
=== added file 'user_firstname/i18n/user_firstname.pot'
--- user_firstname/i18n/user_firstname.pot 1970-01-01 00:00:00 +0000
+++ user_firstname/i18n/user_firstname.pot 2014-01-30 17:19:49 +0000
@@ -0,0 +1,32 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * user_firstname
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-12-20 21:36+0000\n"
+"PO-Revision-Date: 2013-12-20 16:37-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.5.4\n"
+
+#. module: user_firstname
+#: view:res.users:0
+msgid "e.g. Lastname"
+msgstr ""
+
+#. module: user_firstname
+#: model:ir.model,name:user_firstname.model_res_users
+msgid "Users"
+msgstr ""
+
+#. module: user_firstname
+#: view:res.users:0
+msgid "e.g. Firstname"
+msgstr ""
=== added file 'user_firstname/res_user_view.xml'
--- user_firstname/res_user_view.xml 1970-01-01 00:00:00 +0000
+++ user_firstname/res_user_view.xml 2014-01-30 17:19:49 +0000
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <record id="view_users_firstname_form" model="ir.ui.view">
+ <field name="name">res.users.form.firstname.inherit44</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_form"/>
+ <field name="arch" type="xml">
+ <label for="name" position="replace"/>
+ <field name="name" position="replace">
+ <field name="firstname" placeholder="e.g. Firstname"/>
+ <field name="name" placeholder="e.g. Lastname"/>
+ </field>
+ </field>
+ </record>
+
+ <record id="view_users_firstname_tree" model="ir.ui.view">
+ <field name="name">res.users.firstname.tree</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_tree"/>
+ <field name="arch" type="xml">
+ <field name="name" position="replace">
+ <field name="full_name"/>
+ </field>
+ </field>
+ </record>
+ <!--search in full name-->
+ <record id="view_users_firstname_search" model="ir.ui.view">
+ <field name="name">res.users.search</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_search"/>
+ <field name="arch" type="xml">
+ <field name="name" position="replace">
+ <field name="name"
+ filter_domain="['|', ('full_name', 'ilike', self), ('login', 'ilike', self)]"
+ string="User"/>
+ </field>
+ </field>
+ </record>
+
+ </data>
+</openerp>
Follow ups