From 813e10402a4f62d0a5a63fde39ec7a7cc6a988c0 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 22:39:22 +0100 Subject: [PATCH 01/14] [IMP] PEP8 complaint and add docstring bzr revid: christophe.chauvet@syleam.fr-20091207213922-zx3mfh9tfdkg4zj2 --- addons/multi_company/__init__.py | 2 - addons/multi_company/multi_company.py | 56 +++++++++++++++++---------- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git a/addons/multi_company/__init__.py b/addons/multi_company/__init__.py index e96ecdf56e6..5856adc9616 100644 --- a/addons/multi_company/__init__.py +++ b/addons/multi_company/__init__.py @@ -21,7 +21,5 @@ import multi_company - - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/multi_company/multi_company.py b/addons/multi_company/multi_company.py index a55e28f51a2..8a4af4f9499 100644 --- a/addons/multi_company/multi_company.py +++ b/addons/multi_company/multi_company.py @@ -18,35 +18,51 @@ # along with this program. If not, see . # ############################################################################## -from mx import DateTime -import time -import netsvc -from osv import fields, osv -from tools import config -from tools.translate import _ -import tools + +""" +The multicompany module add management to easily custom value by default +for each company +""" + +from osv import osv +from osv import fields class multi_company_default(osv.osv): + """ + Manage multi company default value + """ _name = 'multi_company.default' + _description = 'Default multi company' _order = 'sequence,id' + _columns = { - 'sequence': fields.integer('Sequence'), - 'name': fields.char('Name', size=32, required=True), - 'company_id': fields.many2one('res.company', 'Main Company', required=True), - 'company_dest_id': fields.many2one('res.company', 'Default Company', required=True), - 'object_id': fields.many2one('ir.model', 'Object', required=True), - 'expression': fields.char('Expression', size=32, required=True), - } + 'sequence': fields.integer('Sequence'), + 'name': fields.char('Name', size=32, required=True), + 'company_id': fields.many2one('res.company', 'Main Company', required=True), + 'company_dest_id': fields.many2one('res.company', 'Default Company', required=True), + 'object_id': fields.many2one('ir.model', 'Object', required=True), + 'expression': fields.char('Expression', size=32, required=True), + } + _defaults = { - 'expression': lambda *a: 'True', - 'sequence': lambda *a: 1 - } + 'expression': lambda *a: 'True', + 'sequence': lambda *a: 1 + } + multi_company_default() class res_company(osv.osv): + """ + Change method to retrieve the company by default + """ _inherit = 'res.company' - - def _company_default_get(self, cr, uid, object=False, context={}): + + def _company_default_get(self, cr, uid, object=False, context=None): + """ + Check if the object for this company have a default value + """ + if not context: + context = {} proxy = self.pool.get('multi_company.default') ids = proxy.search(cr, uid, [('object_id.model', '=', object)]) for rule in proxy.browse(cr, uid, ids, context): @@ -54,7 +70,7 @@ class res_company(osv.osv): if eval(rule.expression, {'context': context, 'user': user}): return rule.company_dest_id.id return super(res_company, self)._company_default_get(cr, uid, object, context) - + res_company() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: From 50bdc196101589e722043c4b3abcd632a016956c Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 22:42:13 +0100 Subject: [PATCH 02/14] [IMP] Add priority field [IMP] Cut the menuitem line too long bzr revid: christophe.chauvet@syleam.fr-20091207214213-x81audj8xwv4rl12 --- addons/multi_company/multi_company_view.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addons/multi_company/multi_company_view.xml b/addons/multi_company/multi_company_view.xml index baac5b322d4..49594a3df8a 100644 --- a/addons/multi_company/multi_company_view.xml +++ b/addons/multi_company/multi_company_view.xml @@ -5,6 +5,7 @@ multi_company.default.tree multi_company.default tree + @@ -20,6 +21,7 @@ multi_company.default.form multi_company.default form +
@@ -31,15 +33,17 @@
- + Multi Company ir.actions.act_window multi_company.default form - - - + + + From a5aa5ca822befa9264ede0f7763e18531f22e0f0 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 22:46:33 +0100 Subject: [PATCH 03/14] [IMP]Complete to pass test for module quality successfully bzr revid: christophe.chauvet@syleam.fr-20091207214633-xnjuvmei5p0qiul4 --- addons/multi_company/__terp__.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/addons/multi_company/__terp__.py b/addons/multi_company/__terp__.py index c2728db3a61..378b9d7c951 100644 --- a/addons/multi_company/__terp__.py +++ b/addons/multi_company/__terp__.py @@ -24,13 +24,23 @@ 'name': 'Multi Company', 'version': '1.0', 'category': 'Custom', - 'description': " ", + 'description': """This module add the possibility to easily manage + the default value for each object + """, 'author': 'Tiny', - 'depends': ['base','sale','project'], + 'website': 'http://www.openerp.com/', + 'depends': [ + 'base', + 'sale', + 'project' + ], + 'init_xml': [], 'update_xml': [ 'multi_company_view.xml', ], - 'demo_xml': ['multi_company_demo.xml'], + 'demo_xml': [ + 'multi_company_demo.xml' + ], 'installable': True, 'active': False, } From c7667674f964e7a9b6b195988a4f0c5add385786 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 22:50:11 +0100 Subject: [PATCH 04/14] [ADD] Security rules on multicompany bzr revid: christophe.chauvet@syleam.fr-20091207215011-ucd3aqlsnfoumjfv --- addons/multi_company/__terp__.py | 1 + addons/multi_company/security/ir.model.access.csv | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 addons/multi_company/security/ir.model.access.csv diff --git a/addons/multi_company/__terp__.py b/addons/multi_company/__terp__.py index 378b9d7c951..d54acabd3b7 100644 --- a/addons/multi_company/__terp__.py +++ b/addons/multi_company/__terp__.py @@ -36,6 +36,7 @@ ], 'init_xml': [], 'update_xml': [ + 'security/ir.model.access.csv', 'multi_company_view.xml', ], 'demo_xml': [ diff --git a/addons/multi_company/security/ir.model.access.csv b/addons/multi_company/security/ir.model.access.csv new file mode 100644 index 00000000000..3ea1d07dcad --- /dev/null +++ b/addons/multi_company/security/ir.model.access.csv @@ -0,0 +1,2 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"access_multi_company_default user","multi_company_default User","multi_company.model_multi_company_default","base.group_user",1,0,0,0 From 4dfab1ce7d602ca5fcf7ab803f6ea1433196a277 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 22:57:07 +0100 Subject: [PATCH 05/14] [ADD] Add translation on multi company module bzr revid: christophe.chauvet@syleam.fr-20091207215707-2v806tpkc9s7eq0g --- addons/multi_company/i18n/fr.po | 134 ++++++++++++++++++++ addons/multi_company/i18n/multi_company.pot | 131 +++++++++++++++++++ 2 files changed, 265 insertions(+) create mode 100644 addons/multi_company/i18n/fr.po create mode 100644 addons/multi_company/i18n/multi_company.pot diff --git a/addons/multi_company/i18n/fr.po b/addons/multi_company/i18n/fr.po new file mode 100644 index 00000000000..324dc0494a8 --- /dev/null +++ b/addons/multi_company/i18n/fr.po @@ -0,0 +1,134 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * multi_company +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2009-12-07 21:51:04+0000\n" +"PO-Revision-Date: 2009-12-07 22:56+0100\n" +"Last-Translator: Christophe Chauvet \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Translate Toolkit 1.3.0\n" + +#. module: multi_company +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "XML invalide pour cette vue!" + +#. module: multi_company +#: field:multi_company.default,object_id:0 +msgid "Object" +msgstr "Objet" + +#. module: multi_company +#: constraint:ir.model:0 +msgid "The Object name must start with x_ and not contain any special character !" +msgstr "" + +#. module: multi_company +#: field:multi_company.default,company_dest_id:0 +msgid "Default Company" +msgstr "Société par défaut" + +#. module: multi_company +#: constraint:product.template:0 +msgid "Error: UOS must be in a different category than the UOM" +msgstr "" + +#. module: multi_company +#: model:product.category,name:multi_company.Odoo1 +msgid "Odoo Offers" +msgstr "Offres Odoo" + +#. module: multi_company +#: constraint:res.company:0 +msgid "Error! You can not create recursive companies." +msgstr "Erreur! Vous ne pouvez pas créer de sociétés récursives." + +#. module: multi_company +#: model:ir.model,name:multi_company.model_multi_company_default +msgid "multi_company.default" +msgstr "multi_company.default" + +#. module: multi_company +#: constraint:product.category:0 +msgid "Error ! You can not create recursive categories." +msgstr "" + +#. module: multi_company +#: constraint:product.template:0 +msgid "Error: The default UOM and the purchase UOM must be in the same category." +msgstr "" + +#. module: multi_company +#: field:multi_company.default,company_id:0 +msgid "Main Company" +msgstr "Société principale" + +#. module: multi_company +#: model:ir.actions.act_window,name:multi_company.action_inventory_form +#: model:ir.module.module,shortdesc:multi_company.module_meta_information +#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form +#: view:multi_company.default:0 +msgid "Multi Company" +msgstr "Multi société" + +#. module: multi_company +#: constraint:product.product:0 +msgid "Error: Invalid ean code" +msgstr "Erreur: code EAN invalide" + +#. module: multi_company +#: model:ir.module.module,description:multi_company.module_meta_information +msgid "" +"This module add the possibility to easily manage \n" +" the default value for each object\n" +" " +msgstr "" +"Ce module ajoute la possibilité de gérer facilement \n" +" les valeurs par défaut de chaques objets\n" +" " + +#. module: multi_company +#: constraint:res.partner:0 +msgid "The VAT doesn't seem to be correct." +msgstr "" + +#. module: multi_company +#: constraint:ir.actions.act_window:0 +msgid "Invalid model name in the action definition." +msgstr "" + +#. module: multi_company +#: field:multi_company.default,sequence:0 +msgid "Sequence" +msgstr "Séquence" + +#. module: multi_company +#: model:res.company,overdue_msg:multi_company.res_company_odoo +#: model:res.company,overdue_msg:multi_company.res_company_oerp_be +#: model:res.company,overdue_msg:multi_company.res_company_oerp_editor +#: model:res.company,overdue_msg:multi_company.res_company_oerp_in +#: model:res.company,overdue_msg:multi_company.res_company_oerp_us +msgid "Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting department" +msgstr "" + +#. module: multi_company +#: model:product.template,name:multi_company.product_product_odoo1_product_template +msgid "Odoo Offer" +msgstr "Offre Odoo" + +#. module: multi_company +#: field:multi_company.default,expression:0 +msgid "Expression" +msgstr "Expression" + +#. module: multi_company +#: field:multi_company.default,name:0 +msgid "Name" +msgstr "Nom" + diff --git a/addons/multi_company/i18n/multi_company.pot b/addons/multi_company/i18n/multi_company.pot new file mode 100644 index 00000000000..bd6e985b710 --- /dev/null +++ b/addons/multi_company/i18n/multi_company.pot @@ -0,0 +1,131 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * multi_company +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 5.0.6\n" +"Report-Msgid-Bugs-To: support@openerp.com\n" +"POT-Creation-Date: 2009-12-07 21:51:04+0000\n" +"PO-Revision-Date: 2009-12-07 21:51:04+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: multi_company +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "" + +#. module: multi_company +#: field:multi_company.default,object_id:0 +msgid "Object" +msgstr "" + +#. module: multi_company +#: constraint:ir.model:0 +msgid "The Object name must start with x_ and not contain any special character !" +msgstr "" + +#. module: multi_company +#: field:multi_company.default,company_dest_id:0 +msgid "Default Company" +msgstr "" + +#. module: multi_company +#: constraint:product.template:0 +msgid "Error: UOS must be in a different category than the UOM" +msgstr "" + +#. module: multi_company +#: model:product.category,name:multi_company.Odoo1 +msgid "Odoo Offers" +msgstr "" + +#. module: multi_company +#: constraint:res.company:0 +msgid "Error! You can not create recursive companies." +msgstr "" + +#. module: multi_company +#: model:ir.model,name:multi_company.model_multi_company_default +msgid "multi_company.default" +msgstr "" + +#. module: multi_company +#: constraint:product.category:0 +msgid "Error ! You can not create recursive categories." +msgstr "" + +#. module: multi_company +#: constraint:product.template:0 +msgid "Error: The default UOM and the purchase UOM must be in the same category." +msgstr "" + +#. module: multi_company +#: field:multi_company.default,company_id:0 +msgid "Main Company" +msgstr "" + +#. module: multi_company +#: model:ir.actions.act_window,name:multi_company.action_inventory_form +#: model:ir.module.module,shortdesc:multi_company.module_meta_information +#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form +#: view:multi_company.default:0 +msgid "Multi Company" +msgstr "" + +#. module: multi_company +#: constraint:product.product:0 +msgid "Error: Invalid ean code" +msgstr "" + +#. module: multi_company +#: model:ir.module.module,description:multi_company.module_meta_information +msgid "This module add the possibility to easily manage \n" +" the default value for each object\n" +" " +msgstr "" + +#. module: multi_company +#: constraint:res.partner:0 +msgid "The VAT doesn't seem to be correct." +msgstr "" + +#. module: multi_company +#: constraint:ir.actions.act_window:0 +msgid "Invalid model name in the action definition." +msgstr "" + +#. module: multi_company +#: field:multi_company.default,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: multi_company +#: model:res.company,overdue_msg:multi_company.res_company_odoo +#: model:res.company,overdue_msg:multi_company.res_company_oerp_be +#: model:res.company,overdue_msg:multi_company.res_company_oerp_editor +#: model:res.company,overdue_msg:multi_company.res_company_oerp_in +#: model:res.company,overdue_msg:multi_company.res_company_oerp_us +msgid "Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting department" +msgstr "" + +#. module: multi_company +#: model:product.template,name:multi_company.product_product_odoo1_product_template +msgid "Odoo Offer" +msgstr "" + +#. module: multi_company +#: field:multi_company.default,expression:0 +msgid "Expression" +msgstr "" + +#. module: multi_company +#: field:multi_company.default,name:0 +msgid "Name" +msgstr "" + From 0c3ad8a1c05fff6ffc78635882de6b4bce6e0d32 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 23:13:09 +0100 Subject: [PATCH 06/14] [ADD] Add help on each field [IMP] Update template and french translation bzr revid: christophe.chauvet@syleam.fr-20091207221309-06rr0d1srkakelyq --- addons/multi_company/i18n/fr.po | 183 +++++++++++--------- addons/multi_company/i18n/multi_company.pot | 169 ++++++++++-------- addons/multi_company/multi_company.py | 14 +- 3 files changed, 210 insertions(+), 156 deletions(-) diff --git a/addons/multi_company/i18n/fr.po b/addons/multi_company/i18n/fr.po index 324dc0494a8..5d68473837f 100644 --- a/addons/multi_company/i18n/fr.po +++ b/addons/multi_company/i18n/fr.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-07 21:51:04+0000\n" -"PO-Revision-Date: 2009-12-07 22:56+0100\n" +"POT-Creation-Date: 2009-12-07 22:08:12+0000\n" +"PO-Revision-Date: 2009-12-07 23:12+0100\n" "Last-Translator: Christophe Chauvet \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" @@ -15,25 +15,88 @@ msgstr "" "X-Generator: Translate Toolkit 1.3.0\n" #. module: multi_company -#: constraint:ir.ui.view:0 -msgid "Invalid XML for View Architecture!" -msgstr "XML invalide pour cette vue!" - -#. module: multi_company -#: field:multi_company.default,object_id:0 -msgid "Object" -msgstr "Objet" +#: help:multi_company.default,object_id:0 +msgid "Object affect by this rules" +msgstr "" #. module: multi_company #: constraint:ir.model:0 msgid "The Object name must start with x_ and not contain any special character !" msgstr "" +#. module: multi_company +#: constraint:product.template:0 +msgid "Error: The default UOM and the purchase UOM must be in the same category." +msgstr "" + +#. module: multi_company +#: constraint:res.partner:0 +msgid "The VAT doesn't seem to be correct." +msgstr "" + +#. module: multi_company +#: constraint:ir.actions.act_window:0 +msgid "Invalid model name in the action definition." +msgstr "" + +#. module: multi_company +#: model:res.company,overdue_msg:multi_company.res_company_odoo +#: model:res.company,overdue_msg:multi_company.res_company_oerp_be +#: model:res.company,overdue_msg:multi_company.res_company_oerp_editor +#: model:res.company,overdue_msg:multi_company.res_company_oerp_in +#: model:res.company,overdue_msg:multi_company.res_company_oerp_us +msgid "Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting department" +msgstr "" + #. module: multi_company #: field:multi_company.default,company_dest_id:0 msgid "Default Company" msgstr "Société par défaut" +#. module: multi_company +#: field:multi_company.default,object_id:0 +msgid "Object" +msgstr "Objet" + +#. module: multi_company +#: model:ir.actions.act_window,name:multi_company.action_inventory_form +#: model:ir.module.module,shortdesc:multi_company.module_meta_information +#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form +#: view:multi_company.default:0 +msgid "Multi Company" +msgstr "Multi société" + +#. module: multi_company +#: model:ir.module.module,description:multi_company.module_meta_information +msgid "" +"This module add the possibility to easily manage \n" +" the default value for each object\n" +" " +msgstr "" +"Ce module ajoute la possibilité de gérer facilement \n" +" les valeurs par défaut de chaques objets\n" +" " + +#. module: multi_company +#: field:multi_company.default,company_id:0 +msgid "Main Company" +msgstr "Société principale" + +#. module: multi_company +#: help:multi_company.default,company_dest_id:0 +msgid "Company to store the current record" +msgstr "Société dans lequel l'enregistrement courant sera stocké" + +#. module: multi_company +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "XML invalide pour cette vue!" + +#. module: multi_company +#: field:multi_company.default,name:0 +msgid "Name" +msgstr "Nom" + #. module: multi_company #: constraint:product.template:0 msgid "Error: UOS must be in a different category than the UOM" @@ -49,78 +112,20 @@ msgstr "Offres Odoo" msgid "Error! You can not create recursive companies." msgstr "Erreur! Vous ne pouvez pas créer de sociétés récursives." +#. module: multi_company +#: help:multi_company.default,name:0 +msgid "Name it to easily find a record" +msgstr "La nommer facilement de façon a trouver l'enregistrement" + #. module: multi_company #: model:ir.model,name:multi_company.model_multi_company_default msgid "multi_company.default" msgstr "multi_company.default" #. module: multi_company -#: constraint:product.category:0 -msgid "Error ! You can not create recursive categories." -msgstr "" - -#. module: multi_company -#: constraint:product.template:0 -msgid "Error: The default UOM and the purchase UOM must be in the same category." -msgstr "" - -#. module: multi_company -#: field:multi_company.default,company_id:0 -msgid "Main Company" -msgstr "Société principale" - -#. module: multi_company -#: model:ir.actions.act_window,name:multi_company.action_inventory_form -#: model:ir.module.module,shortdesc:multi_company.module_meta_information -#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form -#: view:multi_company.default:0 -msgid "Multi Company" -msgstr "Multi société" - -#. module: multi_company -#: constraint:product.product:0 -msgid "Error: Invalid ean code" -msgstr "Erreur: code EAN invalide" - -#. module: multi_company -#: model:ir.module.module,description:multi_company.module_meta_information -msgid "" -"This module add the possibility to easily manage \n" -" the default value for each object\n" -" " -msgstr "" -"Ce module ajoute la possibilité de gérer facilement \n" -" les valeurs par défaut de chaques objets\n" -" " - -#. module: multi_company -#: constraint:res.partner:0 -msgid "The VAT doesn't seem to be correct." -msgstr "" - -#. module: multi_company -#: constraint:ir.actions.act_window:0 -msgid "Invalid model name in the action definition." -msgstr "" - -#. module: multi_company -#: field:multi_company.default,sequence:0 -msgid "Sequence" -msgstr "Séquence" - -#. module: multi_company -#: model:res.company,overdue_msg:multi_company.res_company_odoo -#: model:res.company,overdue_msg:multi_company.res_company_oerp_be -#: model:res.company,overdue_msg:multi_company.res_company_oerp_editor -#: model:res.company,overdue_msg:multi_company.res_company_oerp_in -#: model:res.company,overdue_msg:multi_company.res_company_oerp_us -msgid "Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting department" -msgstr "" - -#. module: multi_company -#: model:product.template,name:multi_company.product_product_odoo1_product_template -msgid "Odoo Offer" -msgstr "Offre Odoo" +#: help:multi_company.default,company_id:0 +msgid "Company where the user is connected" +msgstr "Société dans laquelle l'utilisateur est connectée" #. module: multi_company #: field:multi_company.default,expression:0 @@ -128,7 +133,27 @@ msgid "Expression" msgstr "Expression" #. module: multi_company -#: field:multi_company.default,name:0 -msgid "Name" -msgstr "Nom" +#: model:product.template,name:multi_company.product_product_odoo1_product_template +msgid "Odoo Offer" +msgstr "Offre Odoo" + +#. module: multi_company +#: field:multi_company.default,sequence:0 +msgid "Sequence" +msgstr "Séquence" + +#. module: multi_company +#: constraint:product.category:0 +msgid "Error ! You can not create recursive categories." +msgstr "" + +#. module: multi_company +#: constraint:product.product:0 +msgid "Error: Invalid ean code" +msgstr "Erreur: code EAN invalide" + +#. module: multi_company +#: help:multi_company.default,expression:0 +msgid "Expression, must be True to match" +msgstr "L'expression doit être à True pour correspondre" diff --git a/addons/multi_company/i18n/multi_company.pot b/addons/multi_company/i18n/multi_company.pot index bd6e985b710..008821e0ea5 100644 --- a/addons/multi_company/i18n/multi_company.pot +++ b/addons/multi_company/i18n/multi_company.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 5.0.6\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-07 21:51:04+0000\n" -"PO-Revision-Date: 2009-12-07 21:51:04+0000\n" +"POT-Creation-Date: 2009-12-07 22:08:12+0000\n" +"PO-Revision-Date: 2009-12-07 22:08:12+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,13 +16,8 @@ msgstr "" "Plural-Forms: \n" #. module: multi_company -#: constraint:ir.ui.view:0 -msgid "Invalid XML for View Architecture!" -msgstr "" - -#. module: multi_company -#: field:multi_company.default,object_id:0 -msgid "Object" +#: help:multi_company.default,object_id:0 +msgid "Object affect by this rules" msgstr "" #. module: multi_company @@ -30,11 +25,75 @@ msgstr "" msgid "The Object name must start with x_ and not contain any special character !" msgstr "" +#. module: multi_company +#: constraint:product.template:0 +msgid "Error: The default UOM and the purchase UOM must be in the same category." +msgstr "" + +#. module: multi_company +#: constraint:res.partner:0 +msgid "The VAT doesn't seem to be correct." +msgstr "" + +#. module: multi_company +#: constraint:ir.actions.act_window:0 +msgid "Invalid model name in the action definition." +msgstr "" + +#. module: multi_company +#: model:res.company,overdue_msg:multi_company.res_company_odoo +#: model:res.company,overdue_msg:multi_company.res_company_oerp_be +#: model:res.company,overdue_msg:multi_company.res_company_oerp_editor +#: model:res.company,overdue_msg:multi_company.res_company_oerp_in +#: model:res.company,overdue_msg:multi_company.res_company_oerp_us +msgid "Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting department" +msgstr "" + #. module: multi_company #: field:multi_company.default,company_dest_id:0 msgid "Default Company" msgstr "" +#. module: multi_company +#: field:multi_company.default,object_id:0 +msgid "Object" +msgstr "" + +#. module: multi_company +#: model:ir.actions.act_window,name:multi_company.action_inventory_form +#: model:ir.module.module,shortdesc:multi_company.module_meta_information +#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form +#: view:multi_company.default:0 +msgid "Multi Company" +msgstr "" + +#. module: multi_company +#: model:ir.module.module,description:multi_company.module_meta_information +msgid "This module add the possibility to easily manage \n" +" the default value for each object\n" +" " +msgstr "" + +#. module: multi_company +#: field:multi_company.default,company_id:0 +msgid "Main Company" +msgstr "" + +#. module: multi_company +#: help:multi_company.default,company_dest_id:0 +msgid "Company to store the current record" +msgstr "" + +#. module: multi_company +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "" + +#. module: multi_company +#: field:multi_company.default,name:0 +msgid "Name" +msgstr "" + #. module: multi_company #: constraint:product.template:0 msgid "Error: UOS must be in a different category than the UOM" @@ -50,73 +109,19 @@ msgstr "" msgid "Error! You can not create recursive companies." msgstr "" +#. module: multi_company +#: help:multi_company.default,name:0 +msgid "Name it to easily find a record" +msgstr "" + #. module: multi_company #: model:ir.model,name:multi_company.model_multi_company_default msgid "multi_company.default" msgstr "" #. module: multi_company -#: constraint:product.category:0 -msgid "Error ! You can not create recursive categories." -msgstr "" - -#. module: multi_company -#: constraint:product.template:0 -msgid "Error: The default UOM and the purchase UOM must be in the same category." -msgstr "" - -#. module: multi_company -#: field:multi_company.default,company_id:0 -msgid "Main Company" -msgstr "" - -#. module: multi_company -#: model:ir.actions.act_window,name:multi_company.action_inventory_form -#: model:ir.module.module,shortdesc:multi_company.module_meta_information -#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form -#: view:multi_company.default:0 -msgid "Multi Company" -msgstr "" - -#. module: multi_company -#: constraint:product.product:0 -msgid "Error: Invalid ean code" -msgstr "" - -#. module: multi_company -#: model:ir.module.module,description:multi_company.module_meta_information -msgid "This module add the possibility to easily manage \n" -" the default value for each object\n" -" " -msgstr "" - -#. module: multi_company -#: constraint:res.partner:0 -msgid "The VAT doesn't seem to be correct." -msgstr "" - -#. module: multi_company -#: constraint:ir.actions.act_window:0 -msgid "Invalid model name in the action definition." -msgstr "" - -#. module: multi_company -#: field:multi_company.default,sequence:0 -msgid "Sequence" -msgstr "" - -#. module: multi_company -#: model:res.company,overdue_msg:multi_company.res_company_odoo -#: model:res.company,overdue_msg:multi_company.res_company_oerp_be -#: model:res.company,overdue_msg:multi_company.res_company_oerp_editor -#: model:res.company,overdue_msg:multi_company.res_company_oerp_in -#: model:res.company,overdue_msg:multi_company.res_company_oerp_us -msgid "Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting department" -msgstr "" - -#. module: multi_company -#: model:product.template,name:multi_company.product_product_odoo1_product_template -msgid "Odoo Offer" +#: help:multi_company.default,company_id:0 +msgid "Company where the user is connected" msgstr "" #. module: multi_company @@ -125,7 +130,27 @@ msgid "Expression" msgstr "" #. module: multi_company -#: field:multi_company.default,name:0 -msgid "Name" +#: model:product.template,name:multi_company.product_product_odoo1_product_template +msgid "Odoo Offer" +msgstr "" + +#. module: multi_company +#: field:multi_company.default,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: multi_company +#: constraint:product.category:0 +msgid "Error ! You can not create recursive categories." +msgstr "" + +#. module: multi_company +#: constraint:product.product:0 +msgid "Error: Invalid ean code" +msgstr "" + +#. module: multi_company +#: help:multi_company.default,expression:0 +msgid "Expression, must be True to match" msgstr "" diff --git a/addons/multi_company/multi_company.py b/addons/multi_company/multi_company.py index 8a4af4f9499..e7e29cfc021 100644 --- a/addons/multi_company/multi_company.py +++ b/addons/multi_company/multi_company.py @@ -37,11 +37,15 @@ class multi_company_default(osv.osv): _columns = { 'sequence': fields.integer('Sequence'), - 'name': fields.char('Name', size=32, required=True), - 'company_id': fields.many2one('res.company', 'Main Company', required=True), - 'company_dest_id': fields.many2one('res.company', 'Default Company', required=True), - 'object_id': fields.many2one('ir.model', 'Object', required=True), - 'expression': fields.char('Expression', size=32, required=True), + 'name': fields.char('Name', size=32, required=True, help='Name it to easily find a record'), + 'company_id': fields.many2one('res.company', 'Main Company', required=True, + help='Company where the user is connected'), + 'company_dest_id': fields.many2one('res.company', 'Default Company', required=True, + help='Company to store the current record'), + 'object_id': fields.many2one('ir.model', 'Object', required=True, + help='Object affect by this rules'), + 'expression': fields.char('Expression', size=32, required=True, + help='Expression, must be True to match'), } _defaults = { From cfa910540d74afc3c5a27e0f4a94b81e7e4bde03 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 23:15:14 +0100 Subject: [PATCH 07/14] [ADD] missing translation bzr revid: christophe.chauvet@syleam.fr-20091207221514-s6p3vuz37vqyue4s --- addons/multi_company/i18n/fr.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/multi_company/i18n/fr.po b/addons/multi_company/i18n/fr.po index 5d68473837f..a7a622549ca 100644 --- a/addons/multi_company/i18n/fr.po +++ b/addons/multi_company/i18n/fr.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-07 22:08:12+0000\n" -"PO-Revision-Date: 2009-12-07 23:12+0100\n" +"PO-Revision-Date: 2009-12-07 23:14+0100\n" "Last-Translator: Christophe Chauvet \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" @@ -17,7 +17,7 @@ msgstr "" #. module: multi_company #: help:multi_company.default,object_id:0 msgid "Object affect by this rules" -msgstr "" +msgstr "Objet en relation avec cette règle" #. module: multi_company #: constraint:ir.model:0 From 34e6f15329ad5651270a7b66f73f8d7fe9127e0f Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 23:29:20 +0100 Subject: [PATCH 08/14] [ADD] Add search view on multi_company default bzr revid: christophe.chauvet@syleam.fr-20091207222920-5ofoeta3v4smc2th --- addons/multi_company/multi_company_view.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/addons/multi_company/multi_company_view.xml b/addons/multi_company/multi_company_view.xml index 49594a3df8a..ad16a33f0f3 100644 --- a/addons/multi_company/multi_company_view.xml +++ b/addons/multi_company/multi_company_view.xml @@ -34,11 +34,27 @@
+ + multi_company.default.search + multi_company.default + search + + + + + + + + + + + Multi Company ir.actions.act_window multi_company.default form + Date: Mon, 7 Dec 2009 23:32:38 +0100 Subject: [PATCH 09/14] [ADD] Change order on multi company default to easily find for one company all lines in a single list [IMP] Change sequence 1 to 100 bzr revid: christophe.chauvet@syleam.fr-20091207223238-l65atmgun6evnrms --- addons/multi_company/multi_company.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/multi_company/multi_company.py b/addons/multi_company/multi_company.py index e7e29cfc021..ff52408df60 100644 --- a/addons/multi_company/multi_company.py +++ b/addons/multi_company/multi_company.py @@ -33,7 +33,7 @@ class multi_company_default(osv.osv): """ _name = 'multi_company.default' _description = 'Default multi company' - _order = 'sequence,id' + _order = 'company_id,company_dest_id,sequence,id' _columns = { 'sequence': fields.integer('Sequence'), @@ -50,7 +50,7 @@ class multi_company_default(osv.osv): _defaults = { 'expression': lambda *a: 'True', - 'sequence': lambda *a: 1 + 'sequence': lambda *a: 100, } multi_company_default() From db949d535e991429c5cf796e0f052dedbc275807 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Mon, 7 Dec 2009 23:36:12 +0100 Subject: [PATCH 10/14] add syleam in author bzr revid: christophe.chauvet@syleam.fr-20091207223612-6hgwu0lipimubxla --- addons/multi_company/__terp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/multi_company/__terp__.py b/addons/multi_company/__terp__.py index d54acabd3b7..b23144e56f4 100644 --- a/addons/multi_company/__terp__.py +++ b/addons/multi_company/__terp__.py @@ -27,7 +27,7 @@ 'description': """This module add the possibility to easily manage the default value for each object """, - 'author': 'Tiny', + 'author': 'Tiny,SYLEAM', 'website': 'http://www.openerp.com/', 'depends': [ 'base', From a4cfc08caf1e7b038556006d4c5f11d5e4b0facc Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Tue, 8 Dec 2009 11:00:27 +0100 Subject: [PATCH 11/14] [IMP] Improve tree and form view to be more readable [IMP] Change the order [IMP] Update template and french translation bzr revid: christophe.chauvet@syleam.fr-20091208100027-r0jsx0b0g7f2yel2 --- addons/multi_company/i18n/fr.po | 14 +++++++++++-- addons/multi_company/i18n/multi_company.pot | 14 +++++++++++-- addons/multi_company/multi_company.py | 2 +- addons/multi_company/multi_company_view.xml | 22 ++++++++++++--------- 4 files changed, 38 insertions(+), 14 deletions(-) diff --git a/addons/multi_company/i18n/fr.po b/addons/multi_company/i18n/fr.po index a7a622549ca..868649dba08 100644 --- a/addons/multi_company/i18n/fr.po +++ b/addons/multi_company/i18n/fr.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-07 22:08:12+0000\n" -"PO-Revision-Date: 2009-12-07 23:14+0100\n" +"POT-Creation-Date: 2009-12-08 09:51:18+0000\n" +"PO-Revision-Date: 2009-12-08 10:52+0100\n" "Last-Translator: Christophe Chauvet \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" @@ -82,6 +82,11 @@ msgstr "" msgid "Main Company" msgstr "Société principale" +#. module: multi_company +#: view:multi_company.default:0 +msgid "Condition" +msgstr "Condition" + #. module: multi_company #: help:multi_company.default,company_dest_id:0 msgid "Company to store the current record" @@ -157,3 +162,8 @@ msgstr "Erreur: code EAN invalide" msgid "Expression, must be True to match" msgstr "L'expression doit être à True pour correspondre" +#. module: multi_company +#: view:multi_company.default:0 +msgid "Matching" +msgstr "Critère de correspondance" + diff --git a/addons/multi_company/i18n/multi_company.pot b/addons/multi_company/i18n/multi_company.pot index 008821e0ea5..0764bafa15e 100644 --- a/addons/multi_company/i18n/multi_company.pot +++ b/addons/multi_company/i18n/multi_company.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 5.0.6\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-07 22:08:12+0000\n" -"PO-Revision-Date: 2009-12-07 22:08:12+0000\n" +"POT-Creation-Date: 2009-12-08 09:51:18+0000\n" +"PO-Revision-Date: 2009-12-08 09:51:18+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -79,6 +79,11 @@ msgstr "" msgid "Main Company" msgstr "" +#. module: multi_company +#: view:multi_company.default:0 +msgid "Condition" +msgstr "" + #. module: multi_company #: help:multi_company.default,company_dest_id:0 msgid "Company to store the current record" @@ -154,3 +159,8 @@ msgstr "" msgid "Expression, must be True to match" msgstr "" +#. module: multi_company +#: view:multi_company.default:0 +msgid "Matching" +msgstr "" + diff --git a/addons/multi_company/multi_company.py b/addons/multi_company/multi_company.py index ff52408df60..2c56935c394 100644 --- a/addons/multi_company/multi_company.py +++ b/addons/multi_company/multi_company.py @@ -33,7 +33,7 @@ class multi_company_default(osv.osv): """ _name = 'multi_company.default' _description = 'Default multi company' - _order = 'company_id,company_dest_id,sequence,id' + _order = 'company_id,sequence,id' _columns = { 'sequence': fields.integer('Sequence'), diff --git a/addons/multi_company/multi_company_view.xml b/addons/multi_company/multi_company_view.xml index ad16a33f0f3..1644e2e4f05 100644 --- a/addons/multi_company/multi_company_view.xml +++ b/addons/multi_company/multi_company_view.xml @@ -8,12 +8,12 @@ - - - + + + @@ -24,12 +24,16 @@
- - - - - - + + + + + + + + + + From d75a0e513312f2d4d686c3a03dc50d968d53af01 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Tue, 8 Dec 2009 11:17:25 +0100 Subject: [PATCH 12/14] [ADD] Inherit copy to add (copy) in the name field [IMP] Update template and french translation bzr revid: christophe.chauvet@syleam.fr-20091208101725-dp7al0teb8eq2zj2 --- addons/multi_company/i18n/fr.po | 10 ++++++++-- addons/multi_company/i18n/multi_company.pot | 10 ++++++++-- addons/multi_company/multi_company.py | 14 ++++++++++++++ 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/addons/multi_company/i18n/fr.po b/addons/multi_company/i18n/fr.po index 868649dba08..083b0b464ec 100644 --- a/addons/multi_company/i18n/fr.po +++ b/addons/multi_company/i18n/fr.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-08 09:51:18+0000\n" -"PO-Revision-Date: 2009-12-08 10:52+0100\n" +"POT-Creation-Date: 2009-12-08 10:15:44+0000\n" +"PO-Revision-Date: 2009-12-08 11:16+0100\n" "Last-Translator: Christophe Chauvet \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" @@ -162,6 +162,12 @@ msgstr "Erreur: code EAN invalide" msgid "Expression, must be True to match" msgstr "L'expression doit être à True pour correspondre" +#. module: multi_company +#: code:addons/multi_company/multi_company.py:0 +#, python-format +msgid " (copy)" +msgstr " (copie)" + #. module: multi_company #: view:multi_company.default:0 msgid "Matching" diff --git a/addons/multi_company/i18n/multi_company.pot b/addons/multi_company/i18n/multi_company.pot index 0764bafa15e..a9ce1afdac9 100644 --- a/addons/multi_company/i18n/multi_company.pot +++ b/addons/multi_company/i18n/multi_company.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 5.0.6\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-08 09:51:18+0000\n" -"PO-Revision-Date: 2009-12-08 09:51:18+0000\n" +"POT-Creation-Date: 2009-12-08 10:15:44+0000\n" +"PO-Revision-Date: 2009-12-08 10:15:44+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -159,6 +159,12 @@ msgstr "" msgid "Expression, must be True to match" msgstr "" +#. module: multi_company +#: code:addons/multi_company/multi_company.py:0 +#, python-format +msgid " (copy)" +msgstr "" + #. module: multi_company #: view:multi_company.default:0 msgid "Matching" diff --git a/addons/multi_company/multi_company.py b/addons/multi_company/multi_company.py index 2c56935c394..6af7e342bed 100644 --- a/addons/multi_company/multi_company.py +++ b/addons/multi_company/multi_company.py @@ -26,6 +26,7 @@ for each company from osv import osv from osv import fields +from tools.translate import _ class multi_company_default(osv.osv): """ @@ -53,6 +54,19 @@ class multi_company_default(osv.osv): 'sequence': lambda *a: 100, } + def copy(self, cr, uid, id, default=None, context=None): + """ + Add (copy) in the name when duplicate record + """ + if not context: + context = {} + if not default: + default = {} + company = self.browse(cr, uid, id, context=context) + default = default.copy() + default['name'] = company.name + _(' (copy)') + return super(multi_company_default, self).copy(cr, uid, id, default, context=context) + multi_company_default() class res_company(osv.osv): From 6d4a82d12e3a4c0c14572d5d6019022b853159e5 Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Tue, 8 Dec 2009 12:43:20 +0100 Subject: [PATCH 13/14] [IMP] Change menu "Multi Company" by "Default Company per Object" [IMP] Move menu Mult Company in Administration -> Customization -> Multi Company bzr revid: christophe.chauvet@syleam.fr-20091208114320-l2lsi7h3t1okygc3 --- addons/multi_company/multi_company_view.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/multi_company/multi_company_view.xml b/addons/multi_company/multi_company_view.xml index 1644e2e4f05..b39a5ad0b7e 100644 --- a/addons/multi_company/multi_company_view.xml +++ b/addons/multi_company/multi_company_view.xml @@ -54,16 +54,21 @@ - Multi Company + Default Company per Object ir.actions.act_window multi_company.default form + + + parent="menu_custom_multicompany"/> From 37b6db6293019ae3dee8d9d117c0ac85b693ee3c Mon Sep 17 00:00:00 2001 From: Christophe Chauvet Date: Tue, 8 Dec 2009 12:48:28 +0100 Subject: [PATCH 14/14] [IMP] Update template and french translation bzr revid: christophe.chauvet@syleam.fr-20091208114828-ptvp9l3eju7aqw4t --- addons/multi_company/i18n/fr.po | 21 +++++++++++++++++---- addons/multi_company/i18n/multi_company.pot | 21 +++++++++++++++++---- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/addons/multi_company/i18n/fr.po b/addons/multi_company/i18n/fr.po index 083b0b464ec..4254264e1c6 100644 --- a/addons/multi_company/i18n/fr.po +++ b/addons/multi_company/i18n/fr.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-08 10:15:44+0000\n" -"PO-Revision-Date: 2009-12-08 11:16+0100\n" +"POT-Creation-Date: 2009-12-08 11:46:41+0000\n" +"PO-Revision-Date: 2009-12-08 12:48+0100\n" "Last-Translator: Christophe Chauvet \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" @@ -59,9 +59,7 @@ msgid "Object" msgstr "Objet" #. module: multi_company -#: model:ir.actions.act_window,name:multi_company.action_inventory_form #: model:ir.module.module,shortdesc:multi_company.module_meta_information -#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form #: view:multi_company.default:0 msgid "Multi Company" msgstr "Multi société" @@ -122,6 +120,11 @@ msgstr "Erreur! Vous ne pouvez pas créer de sociétés récursives." msgid "Name it to easily find a record" msgstr "La nommer facilement de façon a trouver l'enregistrement" +#. module: multi_company +#: model:ir.ui.menu,name:multi_company.menu_custom_multicompany +msgid "Multi company" +msgstr "Multi société" + #. module: multi_company #: model:ir.model,name:multi_company.model_multi_company_default msgid "multi_company.default" @@ -132,6 +135,11 @@ msgstr "multi_company.default" msgid "Company where the user is connected" msgstr "Société dans laquelle l'utilisateur est connectée" +#. module: multi_company +#: model:ir.actions.act_window,name:multi_company.action_inventory_form +msgid "Default Company per Object" +msgstr "Société par défaut par objet" + #. module: multi_company #: field:multi_company.default,expression:0 msgid "Expression" @@ -162,6 +170,11 @@ msgstr "Erreur: code EAN invalide" msgid "Expression, must be True to match" msgstr "L'expression doit être à True pour correspondre" +#. module: multi_company +#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form +msgid "Default company per Object" +msgstr "Société par défaut par objet" + #. module: multi_company #: code:addons/multi_company/multi_company.py:0 #, python-format diff --git a/addons/multi_company/i18n/multi_company.pot b/addons/multi_company/i18n/multi_company.pot index a9ce1afdac9..8f3048ebafa 100644 --- a/addons/multi_company/i18n/multi_company.pot +++ b/addons/multi_company/i18n/multi_company.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 5.0.6\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2009-12-08 10:15:44+0000\n" -"PO-Revision-Date: 2009-12-08 10:15:44+0000\n" +"POT-Creation-Date: 2009-12-08 11:46:41+0000\n" +"PO-Revision-Date: 2009-12-08 11:46:41+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -60,9 +60,7 @@ msgid "Object" msgstr "" #. module: multi_company -#: model:ir.actions.act_window,name:multi_company.action_inventory_form #: model:ir.module.module,shortdesc:multi_company.module_meta_information -#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form #: view:multi_company.default:0 msgid "Multi Company" msgstr "" @@ -119,6 +117,11 @@ msgstr "" msgid "Name it to easily find a record" msgstr "" +#. module: multi_company +#: model:ir.ui.menu,name:multi_company.menu_custom_multicompany +msgid "Multi company" +msgstr "" + #. module: multi_company #: model:ir.model,name:multi_company.model_multi_company_default msgid "multi_company.default" @@ -129,6 +132,11 @@ msgstr "" msgid "Company where the user is connected" msgstr "" +#. module: multi_company +#: model:ir.actions.act_window,name:multi_company.action_inventory_form +msgid "Default Company per Object" +msgstr "" + #. module: multi_company #: field:multi_company.default,expression:0 msgid "Expression" @@ -159,6 +167,11 @@ msgstr "" msgid "Expression, must be True to match" msgstr "" +#. module: multi_company +#: model:ir.ui.menu,name:multi_company.menu_action_inventory_form +msgid "Default company per Object" +msgstr "" + #. module: multi_company #: code:addons/multi_company/multi_company.py:0 #, python-format