savoirfairelinux-openerp team mailing list archive
-
savoirfairelinux-openerp team
-
Mailing list archive
-
Message #00753
lp:~savoirfairelinux-openerp/partner-contact-management/partner_employee_user_functions_firstname_lastname into lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions
elhadji.dem@xxxxxxxxxxxxxxxxxxxx has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/partner_employee_user_functions_firstname_lastname 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/partner_employee_user_functions_firstname_lastname/+merge/200423
[IMP]
- add partner_maiden_name module (It adds maiden name in partner and contact view)
- add partner_member_observer module (it adds 2 booleans fields member_state and observer_state in partner view; it allows to say if partner is a member state or observer state)
- add partner_supplier_information module (It adds specific information about supplier in partner view)
- add res_bank_account module (It adds title bank account information, observation and active fields in res_partner_bank)
- add employee_firstname module (it adds lastname and firstname in employee view)
- add user_firstname (It adds lastname and firstname in user view)
--
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/partner_employee_user_functions_firstname_lastname/+merge/200423
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions.
=== modified file 'base_contact_by_functions/__openerp__.py'
--- base_contact_by_functions/__openerp__.py 2013-12-17 19:13:54 +0000
+++ base_contact_by_functions/__openerp__.py 2014-01-03 17:21:42 +0000
@@ -39,13 +39,12 @@
""",
'depends': [
'base_contact',
- 'partner_firstname',
],
'external_dependencies': {},
'data': [
'functions_view.xml',
+ 'res_institutions_view.xml',
'res_partner_view.xml',
- 'res_institutions_view.xml',
],
'demo': [],
'test': [],
=== modified file 'base_contact_by_functions/i18n/base_contact_by_functions.pot'
--- base_contact_by_functions/i18n/base_contact_by_functions.pot 2013-12-19 16:49:45 +0000
+++ base_contact_by_functions/i18n/base_contact_by_functions.pot 2014-01-03 17:21:42 +0000
@@ -6,9 +6,9 @@
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-12-19 16:17+0000\n"
-"PO-Revision-Date: 2013-12-19 11:18-0500\n"
-"Last-Translator: \n"
+"POT-Creation-Date: 2014-01-03 16:48+0000\n"
+"PO-Revision-Date: 2014-01-03 11:48-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"
@@ -17,6 +17,11 @@
"X-Generator: Poedit 1.5.4\n"
#. module: base_contact_by_functions
+#: field:res.category.functions,category_id:0
+msgid "Category"
+msgstr ""
+
+#. module: base_contact_by_functions
#: view:res.partner:0
msgid "City"
msgstr ""
@@ -25,15 +30,22 @@
#: field:functions,partner_ids:0
#: model:ir.actions.act_window,name:base_contact_by_functions.action_functions_tree_list
#: model:ir.model,name:base_contact_by_functions.model_functions
-#: view:res.institution:0 field:res.institution,institutionfunction_ids:0
+#: field:res.category.functions,functions_id:0 view:res.institution:0
+#: field:res.institution,institutionfunction_ids:0
#: field:res.institution.functions,functions_id:0 view:res.partner:0
-#: field:res.partner,functions_ids:0
+#: field:res.partner,functions_ids:0 view:res.partner.category:0
+#: field:res.partner.category,categoryfunction_ids:0
msgid "Functions"
msgstr ""
#. module: base_contact_by_functions
-#: field:functions,institution_id:0
-msgid "institution"
+#: view:res.partner:0
+msgid "History (Functions)"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: model:ir.model,name:base_contact_by_functions.model_res_institution_functions
+msgid "Institutions functions"
msgstr ""
#. module: base_contact_by_functions
@@ -57,7 +69,7 @@
msgstr ""
#. module: base_contact_by_functions
-#: view:functions:0 view:res.institution:0
+#: view:functions:0 view:res.institution:0 view:res.partner.category:0
msgid "FunctionsTree"
msgstr ""
@@ -72,13 +84,19 @@
msgstr ""
#. module: base_contact_by_functions
-#: view:functions:0 view:res.institution:0
+#: help:res.category.functions,sequence:0
+#: help:res.institution.functions,sequence:0
+msgid "Used to order"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:functions:0 view:res.institution:0 view:res.partner.category:0
msgid "FunctionsForm"
msgstr ""
#. module: base_contact_by_functions
#: view:res.partner:0
-msgid "à"
+msgid "e.g. Sales Director"
msgstr ""
#. module: base_contact_by_functions
@@ -113,12 +131,17 @@
#. module: base_contact_by_functions
#: view:res.partner:0
-msgid "Phone:"
-msgstr ""
-
-#. module: base_contact_by_functions
-#: model:ir.model,name:base_contact_by_functions.model_res_institution_functions
-msgid "Institutions functions"
+msgid "Function"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Parent Organism"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: field:res.partner,delivered_country:0
+msgid "Country Passport"
msgstr ""
#. module: base_contact_by_functions
@@ -128,13 +151,12 @@
#. module: base_contact_by_functions
#: model:ir.actions.act_window,name:base_contact_by_functions.action_partner_customer_form
-#: view:res.partner:0
msgid "Company"
msgstr ""
#. module: base_contact_by_functions
-#: view:res.partner:0
-msgid "History (Functions)"
+#: model:ir.model,name:base_contact_by_functions.model_res_category_functions
+msgid "Categories functions"
msgstr ""
#. module: base_contact_by_functions
@@ -159,6 +181,16 @@
#. module: base_contact_by_functions
#: view:res.partner:0
+msgid "Is an Organism?"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Parent organism"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
msgid "have the same form for contact and other postions"
msgstr ""
@@ -168,6 +200,11 @@
msgstr ""
#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Phone:"
+msgstr ""
+
+#. module: base_contact_by_functions
#: field:functions,name:0 field:res.institution,name:0
msgid "Name"
msgstr ""
@@ -179,10 +216,20 @@
#. module: base_contact_by_functions
#: view:res.partner:0
+msgid "Use organism address"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
msgid "Country"
msgstr ""
#. module: base_contact_by_functions
+#: field:functions,institution_id:0
+msgid "institution"
+msgstr ""
+
+#. module: base_contact_by_functions
#: field:res.partner,function_id:0
msgid "Position Occupied"
msgstr ""
@@ -203,8 +250,13 @@
msgstr ""
#. module: base_contact_by_functions
-#: field:functions,acronym:0
-msgid "Acronym"
+#: model:ir.model,name:base_contact_by_functions.model_res_partner_category
+msgid "Partner Categories"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Organism"
msgstr ""
#. module: base_contact_by_functions
@@ -216,6 +268,11 @@
#. module: base_contact_by_functions
#: view:res.partner:0
+msgid "à"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
msgid "History"
msgstr ""
@@ -225,8 +282,13 @@
msgstr ""
#. module: base_contact_by_functions
-#: help:res.partner,maiden_name:0
-msgid "Maiden name."
+#: view:res.partner.category:0
+msgid "Add function"
+msgstr ""
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Bank Details"
msgstr ""
#. module: base_contact_by_functions
@@ -235,7 +297,8 @@
msgstr ""
#. module: base_contact_by_functions
-#: field:res.institution,sequence:0 field:res.institution.functions,sequence:0
+#: field:res.category.functions,sequence:0 field:res.institution,sequence:0
+#: field:res.institution.functions,sequence:0
msgid "Sequence"
msgstr ""
@@ -245,13 +308,13 @@
msgstr ""
#. module: base_contact_by_functions
-#: help:res.institution.functions,sequence:0
-msgid "Used to order"
+#: view:res.partner:0
+msgid "Use address organism"
msgstr ""
#. module: base_contact_by_functions
-#: field:res.partner,delivered_country:0
-msgid "Country Passport"
+#: field:functions,acronym:0
+msgid "Acronym"
msgstr ""
#. module: base_contact_by_functions
@@ -278,13 +341,3 @@
#: field:res.partner,naming:0
msgid "Naming"
msgstr ""
-
-#. module: base_contact_by_functions
-#: view:res.partner:0 field:res.partner,maiden_name:0
-msgid "Maiden name"
-msgstr ""
-
-#. module: base_contact_by_functions
-#: view:res.partner:0
-msgid "e.g. Sales Director"
-msgstr ""
=== modified file 'base_contact_by_functions/i18n/fr.po'
--- base_contact_by_functions/i18n/fr.po 2013-12-19 16:49:45 +0000
+++ base_contact_by_functions/i18n/fr.po 2014-01-03 17:21:42 +0000
@@ -6,9 +6,9 @@
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-12-19 16:19+0000\n"
-"PO-Revision-Date: 2013-12-19 11:25-0500\n"
-"Last-Translator: \n"
+"POT-Creation-Date: 2014-01-03 16:49+0000\n"
+"PO-Revision-Date: 2014-01-03 11:51-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"
@@ -17,6 +17,11 @@
"X-Generator: Poedit 1.5.4\n"
#. module: base_contact_by_functions
+#: field:res.category.functions,category_id:0
+msgid "Category"
+msgstr "Catégorie"
+
+#. module: base_contact_by_functions
#: view:res.partner:0
msgid "City"
msgstr "Ville"
@@ -25,16 +30,23 @@
#: field:functions,partner_ids:0
#: model:ir.actions.act_window,name:base_contact_by_functions.action_functions_tree_list
#: model:ir.model,name:base_contact_by_functions.model_functions
-#: view:res.institution:0 field:res.institution,institutionfunction_ids:0
+#: field:res.category.functions,functions_id:0 view:res.institution:0
+#: field:res.institution,institutionfunction_ids:0
#: field:res.institution.functions,functions_id:0 view:res.partner:0
-#: field:res.partner,functions_ids:0
+#: field:res.partner,functions_ids:0 view:res.partner.category:0
+#: field:res.partner.category,categoryfunction_ids:0
msgid "Functions"
msgstr "Fonctions"
#. module: base_contact_by_functions
-#: field:functions,institution_id:0
-msgid "institution"
-msgstr "institution"
+#: view:res.partner:0
+msgid "History (Functions)"
+msgstr "Historique (Fonctions)"
+
+#. module: base_contact_by_functions
+#: model:ir.model,name:base_contact_by_functions.model_res_institution_functions
+msgid "Institutions functions"
+msgstr "Fonctions des institutions"
#. module: base_contact_by_functions
#: help:res.partner,delivered_country:0
@@ -57,7 +69,7 @@
msgstr "Ajouter des fonctions de cette institution"
#. module: base_contact_by_functions
-#: view:functions:0 view:res.institution:0
+#: view:functions:0 view:res.institution:0 view:res.partner.category:0
msgid "FunctionsTree"
msgstr "FonctionsTree"
@@ -72,14 +84,20 @@
msgstr "État"
#. module: base_contact_by_functions
-#: view:functions:0 view:res.institution:0
+#: help:res.category.functions,sequence:0
+#: help:res.institution.functions,sequence:0
+msgid "Used to order"
+msgstr "Permet d'ordonner"
+
+#. module: base_contact_by_functions
+#: view:functions:0 view:res.institution:0 view:res.partner.category:0
msgid "FunctionsForm"
msgstr "FonctionsForm"
#. module: base_contact_by_functions
#: view:res.partner:0
-msgid "à"
-msgstr "à"
+msgid "e.g. Sales Director"
+msgstr "e.g. Directeur"
#. module: base_contact_by_functions
#: help:functions,acronym:0
@@ -113,13 +131,18 @@
#. module: base_contact_by_functions
#: view:res.partner:0
-msgid "Phone:"
-msgstr "Téléphone:"
-
-#. module: base_contact_by_functions
-#: model:ir.model,name:base_contact_by_functions.model_res_institution_functions
-msgid "Institutions functions"
-msgstr "Fonctions des institutions"
+msgid "Function"
+msgstr "Fonction"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Parent Organism"
+msgstr "Organisme parent"
+
+#. module: base_contact_by_functions
+#: field:res.partner,delivered_country:0
+msgid "Country Passport"
+msgstr "Pays de délivrance du passeport"
#. module: base_contact_by_functions
#: field:res.partner,other_contact_history_ids:0
@@ -128,14 +151,13 @@
#. module: base_contact_by_functions
#: model:ir.actions.act_window,name:base_contact_by_functions.action_partner_customer_form
-#: view:res.partner:0
msgid "Company"
msgstr "Organisme"
#. module: base_contact_by_functions
-#: view:res.partner:0
-msgid "History (Functions)"
-msgstr "Historique (Fonctions)"
+#: model:ir.model,name:base_contact_by_functions.model_res_category_functions
+msgid "Categories functions"
+msgstr "Categories functions"
#. module: base_contact_by_functions
#: help:res.institution,name:0
@@ -159,6 +181,16 @@
#. module: base_contact_by_functions
#: view:res.partner:0
+msgid "Is an Organism?"
+msgstr "Est un Organisme?"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Parent organism"
+msgstr "Organisme parent"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
msgid "have the same form for contact and other postions"
msgstr "Avoir le même formulaire de contact et d'autres postions"
@@ -168,6 +200,11 @@
msgstr "Sélectionner les fonctions de cet organisme"
#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Phone:"
+msgstr "Téléphone:"
+
+#. module: base_contact_by_functions
#: field:functions,name:0 field:res.institution,name:0
msgid "Name"
msgstr "Nom"
@@ -179,10 +216,20 @@
#. module: base_contact_by_functions
#: view:res.partner:0
+msgid "Use organism address"
+msgstr "Utilisez l'adresse de l'organisme"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
msgid "Country"
msgstr "Pays"
#. module: base_contact_by_functions
+#: field:functions,institution_id:0
+msgid "institution"
+msgstr "institution"
+
+#. module: base_contact_by_functions
#: field:res.partner,function_id:0
msgid "Position Occupied"
msgstr "Fonction Occupée"
@@ -203,9 +250,14 @@
msgstr "Portable :"
#. module: base_contact_by_functions
-#: field:functions,acronym:0
-msgid "Acronym"
-msgstr "Acronyme"
+#: model:ir.model,name:base_contact_by_functions.model_res_partner_category
+msgid "Partner Categories"
+msgstr "Catégories de partenaires"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Organism"
+msgstr "Organisme"
#. module: base_contact_by_functions
#: model:ir.actions.act_window,name:base_contact_by_functions.action_institutions_tree_list
@@ -216,6 +268,11 @@
#. module: base_contact_by_functions
#: view:res.partner:0
+msgid "à"
+msgstr "à"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
msgid "History"
msgstr "Historique"
@@ -225,9 +282,14 @@
msgstr "Date de fin"
#. module: base_contact_by_functions
-#: help:res.partner,maiden_name:0
-msgid "Maiden name."
-msgstr "Nom de jeune fille."
+#: view:res.partner.category:0
+msgid "Add function"
+msgstr "Ajouter fonction"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Bank Details"
+msgstr "Coordonnées bancaires"
#. module: base_contact_by_functions
#: view:res.institution:0
@@ -235,24 +297,25 @@
msgstr "InstitutionsTree"
#. module: base_contact_by_functions
-#: field:res.institution,sequence:0 field:res.institution.functions,sequence:0
+#: field:res.category.functions,sequence:0 field:res.institution,sequence:0
+#: field:res.institution.functions,sequence:0
msgid "Sequence"
-msgstr "Sequence"
+msgstr "Séquence"
#. module: base_contact_by_functions
#: view:res.partner:0
msgid "Bank Accounts"
-msgstr "Compte bancaire"
-
-#. module: base_contact_by_functions
-#: help:res.institution.functions,sequence:0
-msgid "Used to order"
-msgstr "Permet d'ordonner"
-
-#. module: base_contact_by_functions
-#: field:res.partner,delivered_country:0
-msgid "Country Passport"
-msgstr "Pays de délivrance du passeport"
+msgstr "Comptes bancaires"
+
+#. module: base_contact_by_functions
+#: view:res.partner:0
+msgid "Use address organism"
+msgstr "Utiliser l'adresse de l'organisme"
+
+#. module: base_contact_by_functions
+#: field:functions,acronym:0
+msgid "Acronym"
+msgstr "Acronyme"
#. module: base_contact_by_functions
#: help:functions,name:0
@@ -278,13 +341,3 @@
#: field:res.partner,naming:0
msgid "Naming"
msgstr "Appellation"
-
-#. module: base_contact_by_functions
-#: view:res.partner:0 field:res.partner,maiden_name:0
-msgid "Maiden name"
-msgstr "Nom de jeune fille"
-
-#. module: base_contact_by_functions
-#: view:res.partner:0
-msgid "e.g. Sales Director"
-msgstr "e.g. Directeur"
=== modified file 'base_contact_by_functions/res_partner.py'
--- base_contact_by_functions/res_partner.py 2013-12-17 19:13:54 +0000
+++ base_contact_by_functions/res_partner.py 2014-01-03 17:21:42 +0000
@@ -24,6 +24,30 @@
from openerp.osv import orm, fields
+class res_partner_category(orm.Model):
+ """
+ Inherits partner_category
+ """
+ _inherit = 'res.partner.category'
+ _columns = {
+ 'categoryfunction_ids': fields.one2many('res.category.functions', 'category_id', 'Functions'),
+ }
+
+
+class res_category_functions(orm.Model):
+ """
+ Adds this class to link category and functions
+ """
+ _description = 'Categories functions'
+ _name = 'res.category.functions'
+ _order = 'sequence asc'
+ _columns = {
+ 'functions_id': fields.many2one('functions', 'Functions', required='True'),
+ 'sequence': fields.integer('Sequence', help="Used to order"),
+ 'category_id': fields.many2one('res.partner.category', 'Category'),
+ }
+
+
class res_partner(orm.Model):
"""
Inherits partner and adds functions_ids : List of functions
@@ -69,7 +93,12 @@
contact_vals['active'] = True
vals['contact_id'] = super(res_partner, self).create(cr, user, contact_vals,
context=context)
+ self.write(cr, user, vals['contact_id'], {'lastname': vals['lastname']}, context=context)
+ if 'reset_password' in context.keys() or 'install_mode' in context.keys():
+ return vals['contact_id']
res = super(res_partner, self).create(cr, user, vals, context=context)
+ if vals.get('lastname'):
+ self.write(cr, user, res, {'lastname': vals['lastname']}, context=context)
return res
def write(self, cr, user, ids, vals, context=None):
@@ -110,13 +139,16 @@
relation="res.partner",
method=True,
type="one2many"),
- 'function': fields.char('Function', size=256),
- 'maiden_name': fields.char('Maiden name', size=256, help="Maiden name."),
'name': fields.function(_compute_name_custom, string="Name",
type="char",
store=True,
select=True,
readonly=True),
+ # Replace company by Organism
+ 'use_parent_address': fields.boolean(
+ 'Use Organism Address',
+ help="Select this if you want to set organism's address information for this contact"),
+ 'parent_id': fields.many2one('res.partner', 'Related Organism'),
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== modified file 'base_contact_by_functions/res_partner_view.xml'
--- base_contact_by_functions/res_partner_view.xml 2013-12-19 16:49:45 +0000
+++ base_contact_by_functions/res_partner_view.xml 2014-01-03 17:21:42 +0000
@@ -7,6 +7,22 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
+ <label for="is_company" position="replace">
+ <label for="is_company" string="Is an Organism?"/>
+ </label>
+ <field name="use_parent_address" position="replace">
+ <field name="use_parent_address"
+ class="oe_edit_only oe_inline"
+ on_change="onchange_address(use_parent_address, parent_id)"
+ attrs="{'invisible': [('parent_id','=', False),('use_parent_address','=',False)]}"
+ string="Use organism address"/>
+ </field>
+ <label for="use_parent_address" position="replace">
+ <label for="use_parent_address"
+ class="oe_edit_only"
+ attrs="{'invisible': [('parent_id','=', False),('use_parent_address','=',False)]}"
+ string="Use organism address"/>
+ </label>
<notebook position="inside">
<page string="Functions"
attrs="{'invisible': [('is_company','=',False), ('child_ids', '=', [])]}"
@@ -16,7 +32,6 @@
</page>
<page string="History (Functions)" attrs="{'invisible': ['|','|',('is_company','=',True),('contact_id','!=',False),('other_contact_history_ids','=',[])]}">
<separator string="History"/>
- <!--<field name="other_contact_history_ids" readonly="1" domain="[('other_contact_ids.end_date','=','2013-12-06')]"/>-->
<field name="other_contact_history_ids" mode="kanban"
attrs="{'invisible': [('other_contact_history_ids','=',False)]}">
<kanban>
@@ -24,9 +39,9 @@
<field name="name"/>
<field name="title"/>
<field name="email"/>
- <field name="parent_id"/>
+ <field name="parent_id" string="Organism"/>
<field name="is_company"/>
- <field name="function_id"/>
+ <field name="function_id" string="Function"/>
<field name="phone"/>
<field name="street"/>
<field name="street2"/>
@@ -112,8 +127,10 @@
<!-- inherited part -->
<field name="category_id" widget="many2many_tags"
placeholder="Tags..." style="width: 70%%"/>
- <field name="parent_id" placeholder="Company"
- domain="[('is_company','=',True)]"/>
+ <field name="parent_id"
+ placeholder="Organism"
+ domain="[('is_company','=',True)]"
+ string="Parent Organism"/>
<!-- inherited part end -->
<field name="function_id" placeholder="e.g. Sales Director"/>
<group colspan="4">
@@ -127,7 +144,7 @@
</group>
<div>
<field name="use_parent_address"/>
- <label for="use_parent_address"/>
+ <label for="use_parent_address" string="Use organism address"/>
</div>
<group>
<label for="type"/>
@@ -153,7 +170,15 @@
</group>
<field name="supplier" invisible="True"/>
<group string="Bank Accounts">
- <field name="bank_ids" nolabel="1"/>
+ <field name="bank_ids" nolabel="1">
+ <tree string="Bank Details">
+ <field name="state" invisible="1"/>
+ <field name="sequence" invisible="1"/>
+ <field name="acc_number"/>
+ <field name="bank_name"/>
+ <field name="owner_name"/>
+ </tree>
+ </field>
</group>
</sheet>
</form>
@@ -162,13 +187,12 @@
</notebook>
<!--Replace function by function_id defined by organism-->
<field name="function" position="replace">
- <field name="function" attrs="{'invisible': [('is_company','=', True)]}"/>
- </field>
- <!--Add maiden name for contact-->
- <field name="category_id" position="before">
- <field name="maiden_name" attrs="{'invisible': [('is_company','=', True)]}" placeholder="Maiden name"/>
+ <field name="function"
+ attrs="{'invisible': [('is_company','=', True)]}"
+ string="Function"/>
</field>
</field>
+
</record>
<!--Add passportnumber, deleverycoubtry, expiredDate in partner view-->
<record id="view_passport_info_form" model="ir.ui.view">
@@ -208,22 +232,26 @@
<xpath expr="//field[@name='other_contact_ids']/form//field[@name='parent_id']"
position="replace">
<group colspan="4">
- <field name="parent_id" placeholder="Company"
+ <field name="parent_id" placeholder="Organism"
domain="[('is_company','=',True)]"
- on_change="onchange_partner_function(parent_id)"/>
+ on_change="onchange_partner_function(parent_id)"
+ string="Parent Organism"/>
</group>
</xpath>
<xpath expr="//field[@name='other_contact_ids']/form//field[@name='function']"
position="replace">
<group colspan="4">
- <!--TODO; complete the filter for this field : function_id-->
- <field name="function_id"/>
+ <field name="function_id" string="Function"/>
</group>
</xpath>
+ <xpath expr="//field[@name='other_contact_ids']/form//label[@for='use_parent_address']"
+ position="replace">
+ <label for="use_parent_address" string="Use address organism"/>
+ </xpath>
<xpath expr="//field[@name='other_contact_ids']/kanban//field[@name='function']"
position="replace">
<group colspan="4">
- <field name="function_id"/>
+ <field name="function_id" string="Function"/>
</group>
</xpath>
<xpath expr="//field[@name='other_contact_ids']/kanban//field[@name='has_image']"
@@ -310,7 +338,7 @@
</xpath>
have the same form for contact and other postions
<field name="parent_id" position="replace">
- <field name="parent_id" placeholder="Company"
+ <field name="parent_id" placeholder="Organism"
domain="[('is_company','=',True)]"/>
</field>
<xpath expr="//field[@name='child_ids']/form//field[@name='supplier']"
@@ -319,11 +347,7 @@
<field name="bank_ids" nolabel="1"/>
</group>
</xpath>
- <!--Add maiden name for contact-->
- <xpath expr="//field[@name='child_ids']/form//field[@name='category_id']"
- position="before">
- <field name="maiden_name" attrs="{'invisible': [('contact_type','=', 'attached')]}" placeholder="Maiden name"/>
- </xpath>
+
<xpath expr="//field[@name='child_ids']/form//field[@name='function']"
position="after">
<group colspan="4">
@@ -335,14 +359,26 @@
<xpath expr="//field[@name='child_ids']/form//field[@name='function']"
position="replace">
<group colspan="4">
- <field name="parent_id" placeholder="Company" domain="[('is_company','=',True)]"/>
- <field name="function_id" readonly="False" domain="[('id', 'in', parent.functions_ids[0][2])]"/>
+ <field name="parent_id"
+ placeholder="Organism"
+ domain="[('is_company','=',True)]"
+ string="Parent organism" />
+ <field name="function_id"
+ readonly="False"
+ domain="[('id', 'in', parent.functions_ids[0][2])]"
+ string="Function"/>
</group>
</xpath>
+
+ <xpath expr="//field[@name='child_ids']/form//label[@for='use_parent_address']"
+ position="replace">
+ <label for="use_parent_address" string="Use address organism"/>
+ </xpath>
+
<xpath expr="//field[@name='child_ids']/kanban//field[@name='function']"
position="replace">
<group colspan="4">
- <field name="function_id"/>
+ <field name="function_id" string="Function"/>
</group>
</xpath>
<xpath expr="//field[@name='other_contact_ids']/kanban//field[@name='has_image']"
@@ -430,19 +466,68 @@
<field name="domain">[('is_company','=',0)]</field>
<field name="filter" eval="True"/>
</record>
- <!--Redefine this part of view from firstname_partner module -->
- <record id="view_partner_form_firstname_inherit11" model="ir.ui.view">
- <field name="name">res.partner.form.firstname.inherit11</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="partner_firstname.view_partner_form_firstname"/>
+
+ <!--Add country,street fields in tree partner view-->
+ <record model="ir.ui.view" id="view_partner_tree_country_address">
+ <field name="model">res.partner</field>
+ <field name="inherit_id" ref="base.view_partner_tree"/>
+ <field name="arch" type="xml">
+ <field name="country_id" position="replace"/>
+ <field name="name" position="after">
+ <field name="country_id"/>
+ </field>
+ <field name="email" position="after">
+ <field name="street" string="Address"/>
+ </field>
+ </field>
+ </record>
+
+ <!-- Inherit Categories adding functions -->
+ <record id="view_partner_category_functions_form" model="ir.ui.view">
+ <field name="name">Partner Categories Functions</field>
+ <field name="model">res.partner.category</field>
+ <field name="inherit_id" ref="base.view_partner_category_form"/>
<field name="arch" type="xml">
- <xpath expr="//form[@string='Contact']/sheet/div/h1/field[@name='lastname']" position="replace">
- <field name="lastname" attrs="{'required': [('contact_type', '=', 'standalone')], 'invisible': [('contact_type', '=', 'attached')]}"/>
- </xpath>
- <xpath expr="//form[@string='Contact']/sheet/div/h1/field[@name='firstname']" position="replace">
- <field name="firstname" attrs="{'invisible': [('contact_type', '=', 'attached')]}"/>
+ <xpath expr="//form[@string='Partner Category']/group[1]"
+ position="after">
+ <notebook position="inside">
+ <page string="Functions">
+ <separator string="Add function"/>
+ <group col="2" colspan="4">
+ <field name="categoryfunction_ids" nolabel="1">
+ <tree string="FunctionsTree">
+ <field name="sequence"/>
+ <field name="functions_id"/>
+ </tree>
+ <form string="FunctionsForm">
+ <field name="functions_id"/>
+ <field name="sequence"/>
+ </form>
+ </field>
+ </group>
+ </page>
+ </notebook>
</xpath>
</field>
</record>
+
+ <!--Replace company by organism-->
+ <record id="view_partner_simple_form" model="ir.ui.view">
+ <field name="name">res.partner.simplified.form</field>
+ <field name="model">res.partner</field>
+ <field name="arch" type="xml">
+ <label for="is_company" position="replace">
+ <label for="is_company" string="Is an Organism?"/>
+ </label>
+ <field name="parent_id" position="replace">
+ <field name="parent_id"
+ placeholder="Organism"
+ domain="[('is_company', '=', True)]"
+ context="{'default_is_company': True, 'default_supplier': supplier}"
+ attrs="{'invisible': [('is_company','=', True),('parent_id', '=', False)]}"
+ on_change="onchange_address(use_parent_address, parent_id)"/>
+ </field>
+ </field>
+ </record>
</data>
</openerp>
=== added directory 'employee_firstname'
=== added file 'employee_firstname/__init__.py'
--- employee_firstname/__init__.py 1970-01-01 00:00:00 +0000
+++ employee_firstname/__init__.py 2014-01-03 17:21:42 +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 hr
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'employee_firstname/__openerp__.py'
--- employee_firstname/__openerp__.py 1970-01-01 00:00:00 +0000
+++ employee_firstname/__openerp__.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,54 @@
+# -*- 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': 'Employee First Name, Last Name',
+ 'version': '0.1',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'MISC',
+ 'description': """
+Employee First Name, Last Name
+==============================
+
+This module allows you to add firstname and lastname in employee form,
+and concatenate both in name field.
+
+Contributors
+------------
+* EL HADJI DEM (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+ 'depends': [
+ 'hr',
+ ],
+ 'external_dependencies': {},
+ 'data': [
+ 'hr_view.xml',
+ ],
+ 'demo': [],
+ 'test': [],
+ 'installable': True,
+ 'active': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'employee_firstname/hr.py'
--- employee_firstname/hr.py 1970-01-01 00:00:00 +0000
+++ employee_firstname/hr.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,42 @@
+# -*- 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 hr_employee(orm.Model):
+ _inherit = 'hr.employee'
+
+ def init(self, cursor):
+ cursor.execute('SELECT id FROM hr_employee WHERE lastname IS NOT NULL Limit 1')
+ if not cursor.fetchone():
+ cursor.execute('UPDATE hr_employee set lastname = name_related WHERE name_related IS NOT NULL')
+ _columns = {
+ 'firstname': fields.char("Firstname"),
+ 'lastname': fields.char("Lastname", required=True)}
+
+ def create(self, cursor, uid, vals, context=None):
+ names = (vals['firstname'], vals['lastname'])
+ vals['name'] = " ".join([s for s in names if s])
+ return super(hr_employee, self).create(cursor, uid, vals, context=context)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'employee_firstname/hr_view.xml'
--- employee_firstname/hr_view.xml 1970-01-01 00:00:00 +0000
+++ employee_firstname/hr_view.xml 2014-01-03 17:21:42 +0000
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <record id="hr_employee_view_firstname_form" model="ir.ui.view">
+ <field name="name">hr.employee.view.form.inherit.firstname</field>
+ <field name="model">hr.employee</field>
+ <field name="inherit_id" ref="hr.view_employee_form"/>
+ <field name="arch" type="xml">
+ <field name="name" position="replace">
+ <field name="name" invisible="True" nolabel="1" required="False"/>
+ </field>
+ <field name="name" position="after">
+ <field name="firstname" placeholder="e.g. Firstname"/>
+ <field name="lastname" placeholder="e.g. Lastname"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</openerp>
=== added directory 'employee_firstname/i18n'
=== added file 'employee_firstname/i18n/employee_firstname.pot'
--- employee_firstname/i18n/employee_firstname.pot 1970-01-01 00:00:00 +0000
+++ employee_firstname/i18n/employee_firstname.pot 2014-01-03 17:21:42 +0000
@@ -0,0 +1,42 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * employee_firstname
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:55+0000\n"
+"PO-Revision-Date: 2014-01-03 02:55-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: employee_firstname
+#: model:ir.model,name:employee_firstname.model_hr_employee
+msgid "Employee"
+msgstr ""
+
+#. module: employee_firstname
+#: field:hr.employee,lastname:0
+msgid "Lastname"
+msgstr ""
+
+#. module: employee_firstname
+#: view:hr.employee:0
+msgid "e.g. Lastname"
+msgstr ""
+
+#. module: employee_firstname
+#: field:hr.employee,firstname:0
+msgid "Firstname"
+msgstr ""
+
+#. module: employee_firstname
+#: view:hr.employee:0
+msgid "e.g. Firstname"
+msgstr ""
=== added file 'employee_firstname/i18n/fr.po'
--- employee_firstname/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ employee_firstname/i18n/fr.po 2014-01-03 17:21:42 +0000
@@ -0,0 +1,42 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * employee_firstname
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:56+0000\n"
+"PO-Revision-Date: 2014-01-03 02:56-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: employee_firstname
+#: model:ir.model,name:employee_firstname.model_hr_employee
+msgid "Employee"
+msgstr "Employé"
+
+#. module: employee_firstname
+#: field:hr.employee,lastname:0
+msgid "Lastname"
+msgstr "Nom"
+
+#. module: employee_firstname
+#: view:hr.employee:0
+msgid "e.g. Lastname"
+msgstr "Nom"
+
+#. module: employee_firstname
+#: field:hr.employee,firstname:0
+msgid "Firstname"
+msgstr "Prénom"
+
+#. module: employee_firstname
+#: view:hr.employee:0
+msgid "e.g. Firstname"
+msgstr "Prénom"
=== modified file 'partner_firstname/__openerp__.py'
--- partner_firstname/__openerp__.py 2013-02-20 12:43:45 +0000
+++ partner_firstname/__openerp__.py 2014-01-03 17:21:42 +0000
@@ -31,7 +31,7 @@
'data': [
'partner_view.xml',
'res_user_view.xml',
- ],
+ ],
'demo': [],
'test': [],
'auto_install': False,
=== added directory 'partner_maiden_name'
=== added file 'partner_maiden_name/__init__.py'
--- partner_maiden_name/__init__.py 1970-01-01 00:00:00 +0000
+++ partner_maiden_name/__init__.py 2014-01-03 17:21:42 +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:
=== added file 'partner_maiden_name/__openerp__.py'
--- partner_maiden_name/__openerp__.py 1970-01-01 00:00:00 +0000
+++ partner_maiden_name/__openerp__.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,53 @@
+# -*- 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 Maiden Name',
+ 'version': '0.1',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'MISC',
+ 'description': """
+Partner Maiden Name
+===================
+
+This module allows you to add maiden name
+
+Contributors
+------------
+* EL HADJI DEM (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+ 'depends': [
+ 'base',
+ ],
+ 'external_dependencies': {},
+ 'data': [
+ 'res_partner_view.xml',
+ ],
+ 'demo': [],
+ 'test': [],
+ 'installable': True,
+ 'active': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'partner_maiden_name/i18n'
=== added file 'partner_maiden_name/i18n/fr.po'
--- partner_maiden_name/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ partner_maiden_name/i18n/fr.po 2014-01-03 17:21:42 +0000
@@ -0,0 +1,32 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * partner_maiden_name
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:40+0000\n"
+"PO-Revision-Date: 2014-01-03 02:40-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_maiden_name
+#: help:res.partner,maiden_name:0
+msgid "Maiden name."
+msgstr "Nom de jeune fille."
+
+#. module: partner_maiden_name
+#: view:res.partner:0 field:res.partner,maiden_name:0
+msgid "Maiden name"
+msgstr "Nom de jeune fille"
+
+#. module: partner_maiden_name
+#: model:ir.model,name:partner_maiden_name.model_res_partner
+msgid "Partner"
+msgstr "Partenaire"
=== added file 'partner_maiden_name/i18n/partner_maiden_name.pot'
--- partner_maiden_name/i18n/partner_maiden_name.pot 1970-01-01 00:00:00 +0000
+++ partner_maiden_name/i18n/partner_maiden_name.pot 2014-01-03 17:21:42 +0000
@@ -0,0 +1,32 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * partner_maiden_name
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:39+0000\n"
+"PO-Revision-Date: 2014-01-03 02:39-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_maiden_name
+#: help:res.partner,maiden_name:0
+msgid "Maiden name."
+msgstr ""
+
+#. module: partner_maiden_name
+#: view:res.partner:0 field:res.partner,maiden_name:0
+msgid "Maiden name"
+msgstr ""
+
+#. module: partner_maiden_name
+#: model:ir.model,name:partner_maiden_name.model_res_partner
+msgid "Partner"
+msgstr ""
=== added file 'partner_maiden_name/res_partner.py'
--- partner_maiden_name/res_partner.py 1970-01-01 00:00:00 +0000
+++ partner_maiden_name/res_partner.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,32 @@
+# -*- 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 = {
+ 'maiden_name': fields.char('Maiden name', size=256, help="Maiden name."),
+ }
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'partner_maiden_name/res_partner_view.xml'
--- partner_maiden_name/res_partner_view.xml 1970-01-01 00:00:00 +0000
+++ partner_maiden_name/res_partner_view.xml 2014-01-03 17:21:42 +0000
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <!--Add maiden name for contact-->
+ <record id="view_contact_by_function_maiden_name_form" model="ir.ui.view">
+ <field name="name">contact.functions.maiden.name.form.inherit</field>
+ <field name="model">res.partner</field>
+ <field name="inherit_id" ref="base.view_partner_form"/>
+ <field name="arch" type="xml">
+ <field name="category_id" position="before">
+ <field name="maiden_name" attrs="{'invisible': [('is_company','=', True)]}" placeholder="Maiden name"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</openerp>
=== added directory 'partner_member_observer'
=== added file 'partner_member_observer/__init__.py'
--- partner_member_observer/__init__.py 1970-01-01 00:00:00 +0000
+++ partner_member_observer/__init__.py 2014-01-03 17:21:42 +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:
=== added file 'partner_member_observer/__openerp__.py'
--- partner_member_observer/__openerp__.py 1970-01-01 00:00:00 +0000
+++ partner_member_observer/__openerp__.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,53 @@
+# -*- 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 Member State and Observer State',
+ 'version': '0.1',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'MISC',
+ 'description': """
+Partner Member State or Observer State
+======================================
+
+This module allows you to manage member state and observer state.
+
+Contributors
+------------
+* EL HADJI DEM (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+ 'depends': [
+ 'base',
+ ],
+ 'external_dependencies': {},
+ 'data': [
+ 'res_partner_view.xml',
+ ],
+ 'demo': [],
+ 'test': [],
+ 'installable': True,
+ 'active': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'partner_member_observer/i18n'
=== added file 'partner_member_observer/i18n/fr.po'
--- partner_member_observer/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ partner_member_observer/i18n/fr.po 2014-01-03 17:21:42 +0000
@@ -0,0 +1,42 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * partner_member_observer
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:36+0000\n"
+"PO-Revision-Date: 2014-01-03 02:37-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_member_observer
+#: help:res.partner,member_states:0
+msgid "Member state."
+msgstr "Etat membre."
+
+#. module: partner_member_observer
+#: model:ir.model,name:partner_member_observer.model_res_partner
+msgid "Partner"
+msgstr "Organisme"
+
+#. module: partner_member_observer
+#: help:res.partner,observer_state:0
+msgid "Observer state."
+msgstr "Etat observateur."
+
+#. module: partner_member_observer
+#: field:res.partner,member_states:0
+msgid "Member state"
+msgstr "État membre"
+
+#. module: partner_member_observer
+#: field:res.partner,observer_state:0
+msgid "Observer state"
+msgstr "Etat observateur"
=== added file 'partner_member_observer/i18n/partner_member_observer.pot'
--- partner_member_observer/i18n/partner_member_observer.pot 1970-01-01 00:00:00 +0000
+++ partner_member_observer/i18n/partner_member_observer.pot 2014-01-03 17:21:42 +0000
@@ -0,0 +1,42 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * partner_member_observer
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:35+0000\n"
+"PO-Revision-Date: 2014-01-03 02:36-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_member_observer
+#: help:res.partner,member_states:0
+msgid "Member state."
+msgstr ""
+
+#. module: partner_member_observer
+#: model:ir.model,name:partner_member_observer.model_res_partner
+msgid "Partner"
+msgstr ""
+
+#. module: partner_member_observer
+#: help:res.partner,observer_state:0
+msgid "Observer state."
+msgstr ""
+
+#. module: partner_member_observer
+#: field:res.partner,member_states:0
+msgid "Member state"
+msgstr ""
+
+#. module: partner_member_observer
+#: field:res.partner,observer_state:0
+msgid "Observer state"
+msgstr ""
=== added file 'partner_member_observer/res_partner.py'
--- partner_member_observer/res_partner.py 1970-01-01 00:00:00 +0000
+++ partner_member_observer/res_partner.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,33 @@
+# -*- 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 = {
+ 'member_states': fields.boolean('Member state', help="Member state."),
+ 'observer_state': fields.boolean('Observer state', help="Observer state."),
+ }
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'partner_member_observer/res_partner_view.xml'
--- partner_member_observer/res_partner_view.xml 1970-01-01 00:00:00 +0000
+++ partner_member_observer/res_partner_view.xml 2014-01-03 17:21:42 +0000
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <!--Add member state and observer state fields for partner-->
+ <record id="view_contact_by_function_member_observer_form" model="ir.ui.view">
+ <field name="name">contact.functions.member.observer.form.inherit</field>
+ <field name="model">res.partner</field>
+ <field name="inherit_id" ref="base.view_partner_form"/>
+ <field name="arch" type="xml">
+ <field name="email" position="after">
+ <field name="member_states" attrs="{'invisible': [('is_company','!=', True)]}"/>
+ <field name="observer_state" attrs="{'invisible': [('is_company','!=', True)]}"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</openerp>
=== 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-03 17:21:42 +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:
=== 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-03 17:21:42 +0000
@@ -0,0 +1,52 @@
+# -*- 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 (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+ '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'
=== 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-03 17:21:42 +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-03 17:21:42 +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-03 17:21:42 +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."),
+ 'immatriculation_number': fields.char('Immatriculation number', size=256, help="Immatriculation number."),
+ }
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'res_bank_account'
=== added file 'res_bank_account/__init__.py'
--- res_bank_account/__init__.py 1970-01-01 00:00:00 +0000
+++ res_bank_account/__init__.py 2014-01-03 17:21:42 +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_bank
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'res_bank_account/__openerp__.py'
--- res_bank_account/__openerp__.py 1970-01-01 00:00:00 +0000
+++ res_bank_account/__openerp__.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,50 @@
+# -*- 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': 'Bank Account',
+ 'version': '0.1',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'MISC',
+ 'description': """
+Bank Account
+============
+
+
+Contributors
+------------
+* EL HADJI DEM (elhadji.dem@xxxxxxxxxxxxxxxxxxxx)
+""",
+ 'depends': [
+ 'base',
+ ],
+ 'external_dependencies': {},
+ 'data': ['res_bank_view.xml', ],
+ 'demo': [],
+ 'test': [],
+ 'installable': True,
+ 'active': False,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'res_bank_account/i18n'
=== added file 'res_bank_account/i18n/fr.po'
--- res_bank_account/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ res_bank_account/i18n/fr.po 2014-01-03 17:21:42 +0000
@@ -0,0 +1,52 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * res_bank_account
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:26+0000\n"
+"PO-Revision-Date: 2014-01-03 02:26-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: res_bank_account
+#: field:res.partner.bank,observation:0
+msgid "Observation"
+msgstr "Remarque"
+
+#. module: res_bank_account
+#: help:res.partner.bank,active:0
+msgid "Active/Inactive."
+msgstr "Actif/Inactif."
+
+#. module: res_bank_account
+#: model:ir.model,name:res_bank_account.model_res_partner_bank
+msgid "Bank Accounts"
+msgstr "Comptes bancaires"
+
+#. module: res_bank_account
+#: help:res.partner.bank,observation:0
+msgid "Observation."
+msgstr "Remarque."
+
+#. module: res_bank_account
+#: field:res.partner.bank,title_bank_account:0
+msgid "Title bank account"
+msgstr "Intitulé du compte bancaire"
+
+#. module: res_bank_account
+#: field:res.partner.bank,active:0
+msgid "Active"
+msgstr "Active"
+
+#. module: res_bank_account
+#: help:res.partner.bank,title_bank_account:0
+msgid "Title bank account."
+msgstr "Intitulé du compte bancaire."
=== added file 'res_bank_account/i18n/res_bank_account.pot'
--- res_bank_account/i18n/res_bank_account.pot 1970-01-01 00:00:00 +0000
+++ res_bank_account/i18n/res_bank_account.pot 2014-01-03 17:21:42 +0000
@@ -0,0 +1,52 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * res_bank_account
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-01-03 07:25+0000\n"
+"PO-Revision-Date: 2014-01-03 02:25-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: res_bank_account
+#: field:res.partner.bank,observation:0
+msgid "Observation"
+msgstr ""
+
+#. module: res_bank_account
+#: help:res.partner.bank,active:0
+msgid "Active/Inactive."
+msgstr ""
+
+#. module: res_bank_account
+#: model:ir.model,name:res_bank_account.model_res_partner_bank
+msgid "Bank Accounts"
+msgstr ""
+
+#. module: res_bank_account
+#: help:res.partner.bank,observation:0
+msgid "Observation."
+msgstr ""
+
+#. module: res_bank_account
+#: field:res.partner.bank,title_bank_account:0
+msgid "Title bank account"
+msgstr ""
+
+#. module: res_bank_account
+#: field:res.partner.bank,active:0
+msgid "Active"
+msgstr ""
+
+#. module: res_bank_account
+#: help:res.partner.bank,title_bank_account:0
+msgid "Title bank account."
+msgstr ""
=== added file 'res_bank_account/res_bank.py'
--- res_bank_account/res_bank.py 1970-01-01 00:00:00 +0000
+++ res_bank_account/res_bank.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,36 @@
+# -*- 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_bank(orm.Model):
+ _inherit = 'res.partner.bank'
+
+ _columns = {
+ 'title_bank_account': fields.char('Title bank account', size=256,
+ help="Title bank account."),
+ 'observation': fields.text('Observation', help="Observation."),
+ 'active': fields.boolean('Active', help="Active/Inactive."),
+ }
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'res_bank_account/res_bank_view.xml'
--- res_bank_account/res_bank_view.xml 1970-01-01 00:00:00 +0000
+++ res_bank_account/res_bank_view.xml 2014-01-03 17:21:42 +0000
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+
+ <!-- Adds title_bank_account,observation and active fields in res.bank form view -->
+ <record id="view_partner_bank_inherit_add_form" model="ir.ui.view">
+ <field name="name">res.partner.bank.inherit.add.form</field>
+ <field name="model">res.partner.bank</field>
+ <field name="inherit_id" ref="base.view_partner_bank_form"/>
+ <field name="arch" type="xml">
+ <field name="state" position="before">
+ <field name="title_bank_account"/>
+ </field>
+ <field name="acc_number" position="after">
+ <field name="active"/>
+ </field>
+ <xpath expr="//form[@string='Bank account']/group[2]"
+ position="after">
+ <group>
+ <field name="observation"/>
+ </group>
+ </xpath>
+ </field>
+ </record>
+
+ <!--Add active field in tree view-->
+ <record id="view_partner_bank_inherit_active_tree" model="ir.ui.view">
+ <field name="name">res.partner.bank.inherit.active.tree</field>
+ <field name="model">res.partner.bank</field>
+ <field name="inherit_id" ref="base.view_partner_bank_tree"/>
+ <field name="arch" type="xml">
+ <field name="state" position="before">
+ <field name="active"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</openerp>
=== 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-03 17:21:42 +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_user
+
+# 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-03 17:21:42 +0000
@@ -0,0 +1,52 @@
+# -*- 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',
+ 'author': 'Savoir-faire Linux',
+ 'maintainer': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'MISC',
+ '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)
+""",
+ 'depends': [
+ 'base',
+ ],
+ 'external_dependencies': {},
+ 'data': [],
+ 'demo': [],
+ 'test': [],
+ '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-03 17:21:42 +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-03 17:21:42 +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.py'
--- user_firstname/res_user.py 1970-01-01 00:00:00 +0000
+++ user_firstname/res_user.py 2014-01-03 17:21:42 +0000
@@ -0,0 +1,37 @@
+# -*- 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_user(orm.Model):
+ _inherit = 'res.users'
+
+ def create(self, cursor, uid, vals, context=None):
+ if 'install_mode' in context.keys():
+ return super(res_user, self).create(cursor, uid, vals, context=context)
+ names = (vals['firstname'], vals['lastname'])
+ vals['name'] = " ".join([s for s in names if s])
+ vals['display_name'] = vals['name']
+ return super(res_user, self).create(cursor, uid, vals, context=context)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
Follow ups