diff --git a/openerp/addons/base/__openerp__.py b/openerp/addons/base/__openerp__.py index a5f8a848705..5b65bff4bd7 100644 --- a/openerp/addons/base/__openerp__.py +++ b/openerp/addons/base/__openerp__.py @@ -56,6 +56,7 @@ 'module/wizard/base_module_configuration_view.xml', 'module/wizard/base_export_language_view.xml', 'module/wizard/base_update_translations_view.xml', + 'module/wizard/base_module_immediate_install.xml', 'res/res_company_view.xml', 'res/res_request_view.xml', 'res/res_lang_view.xml', @@ -79,6 +80,7 @@ 'demo_xml': [ 'base_demo.xml', 'res/res_partner_demo.xml', + 'res/res_partner_demo.yml', 'res/res_widget_demo.xml', ], 'test': [ diff --git a/openerp/addons/base/base_data.xml b/openerp/addons/base/base_data.xml index 03e3b43cd78..cb8e5e992c7 100644 --- a/openerp/addons/base/base_data.xml +++ b/openerp/addons/base/base_data.xml @@ -1060,6 +1060,13 @@ + 45, Rue du Palais + Paris + 75016 + + +33 1 49 51 23 94 + info@yourcompany.com + www.yourcompany.com @@ -1081,8 +1088,9 @@ Your Company - Web: www.companyname.com - Tel: +1-212-555-12345 - IBAN: XX12 3456 7890 1234 5678 - SWIFT: SWIFTCODE - VAT: Company vat number + Your Company Slogan + Web: http://www.yourcompany.com - Tel: +33 1 49 51 23 94 + Bank Accounts... to be configured in menu Settings > Accounting/Invoicing. @@ -1623,7 +1631,7 @@ - Reserve + International Bank diff --git a/openerp/addons/base/base_demo.xml b/openerp/addons/base/base_demo.xml index a0149096902..34feb3af990 100644 --- a/openerp/addons/base/base_demo.xml +++ b/openerp/addons/base/base_demo.xml @@ -1,19 +1,6 @@ - - - Fabien D'souza - Chaussee de Namur - 1367 - Gerompont - (+32).81.81.37.00 - default - - - - - demo demo diff --git a/openerp/addons/base/i18n/it.po b/openerp/addons/base/i18n/it.po index 5fc3ece66a8..e1f369680a2 100644 --- a/openerp/addons/base/i18n/it.po +++ b/openerp/addons/base/i18n/it.po @@ -7,14 +7,15 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:44+0000\n" -"PO-Revision-Date: 2012-02-16 22:06+0000\n" -"Last-Translator: Davide Corio - agilebg.com \n" +"PO-Revision-Date: 2012-08-10 18:42+0000\n" +"Last-Translator: Leonardo Pistone - Agile BG - Domsense " +"\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-19 04:40+0000\n" -"X-Generator: Launchpad (build 15637)\n" +"X-Launchpad-Export-Date: 2012-08-11 05:45+0000\n" +"X-Generator: Launchpad (build 15780)\n" #. module: base #: model:res.country,name:base.sh @@ -849,6 +850,10 @@ msgid "" "Launch Manually Once: after hacing been launched manually, it sets " "automatically to Done." msgstr "" +"Manuale: Esegui manualmente\n" +"Automatico: Viene eseguito ogni volta che il sistema viene riconfigurato \n" +"Esegui manualmente una volta sola: una volta lanciata l'esecuzione, lo stato " +"viene impostato autmaticamente su \"Eseguito\"" #. module: base #: selection:base.language.install,lang:0 @@ -1593,7 +1598,7 @@ msgstr "Login" #: model:ir.actions.act_window,name:base.action_wizard_update_translations #: model:ir.ui.menu,name:base.menu_wizard_update_translations msgid "Synchronize Terms" -msgstr "" +msgstr "Sincronizza Termini" #. module: base #: view:ir.actions.server:0 @@ -2980,7 +2985,7 @@ msgstr "Armenia" #: model:ir.actions.act_window,name:base.ir_property_form #: model:ir.ui.menu,name:base.menu_ir_property_form_all msgid "Configuration Parameters" -msgstr "Parametri Configurazione" +msgstr "Parametri di configurazione" #. module: base #: constraint:ir.cron:0 @@ -3077,7 +3082,7 @@ msgstr "" #. module: base #: model:ir.module.module,shortdesc:base.module_wiki_quality_manual msgid "Wiki: Quality Manual" -msgstr "" +msgstr "Wiki: Manuale della Qualità" #. module: base #: selection:ir.actions.act_window.view,view_mode:0 @@ -3105,7 +3110,7 @@ msgstr "Settore Risorse Umane" #. module: base #: model:ir.ui.menu,name:base.menu_dashboard_admin msgid "Administration Dashboard" -msgstr "" +msgstr "Dashboard di Amministrazione" #. module: base #: code:addons/orm.py:4408 @@ -3748,7 +3753,7 @@ msgstr "" #. module: base #: model:ir.module.category,name:base.module_category_human_resources msgid "Human Resources" -msgstr "" +msgstr "Risorse Umane" #. module: base #: model:ir.actions.act_window,name:base.action_country @@ -3808,7 +3813,7 @@ msgstr "Partita IVA" #. module: base #: field:res.users,new_password:0 msgid "Set password" -msgstr "" +msgstr "Nuova password" #. module: base #: view:res.lang:0 @@ -4737,7 +4742,7 @@ msgstr "Kenia" #: model:ir.actions.act_window,name:base.action_translation #: model:ir.ui.menu,name:base.menu_action_translation msgid "Translated Terms" -msgstr "" +msgstr "Termini Tradotti" #. module: base #: view:res.partner.event:0 @@ -6368,7 +6373,7 @@ msgstr "Menu" #. module: base #: selection:ir.actions.todo,type:0 msgid "Launch Manually Once" -msgstr "" +msgstr "Esegui manualmente una volta sola" #. module: base #: model:ir.module.category,name:base.module_category_hidden @@ -6741,6 +6746,8 @@ msgid "" "password, otherwise leave empty. After a change of password, the user has to " "login again." msgstr "" +"Per modificare la password scrivila qui, altrimenti lascia il campo vuoto. " +"Dopo aver cambiato la password, l'utente deve fare nuovamente login." #. module: base #: view:publisher_warranty.contract:0 @@ -6929,7 +6936,7 @@ msgstr "" #. module: base #: view:ir.property:0 msgid "Parameters that are used by all resources." -msgstr "" +msgstr "Parametri utilizzati da tutte le risorse" #. module: base #: model:res.country,name:base.mz @@ -9394,7 +9401,7 @@ msgstr "" #: model:ir.model,name:base.model_ir_model #: model:ir.ui.menu,name:base.ir_model_model_menu msgid "Models" -msgstr "" +msgstr "Modelli" #. module: base #: code:addons/base/ir/ir_cron.py:292 @@ -9405,7 +9412,7 @@ msgstr "" #. module: base #: selection:ir.actions.todo,type:0 msgid "Launch Manually" -msgstr "" +msgstr "Esegui manualmente" #. module: base #: model:res.country,name:base.be @@ -10753,7 +10760,7 @@ msgstr "Nazione" #. module: base #: model:ir.ui.menu,name:base.next_id_5 msgid "Sequences & Identifiers" -msgstr "" +msgstr "Sequenze e Identificatori" #. module: base #: model:ir.module.module,description:base.module_l10n_th @@ -12636,7 +12643,7 @@ msgstr "ir.values" #. module: base #: model:res.groups,name:base.group_no_one msgid "Technical Features" -msgstr "" +msgstr "Funzionalità tecniche" #. module: base #: selection:base.language.install,lang:0 @@ -12656,7 +12663,7 @@ msgstr "" #: view:ir.model.data:0 #: model:ir.ui.menu,name:base.ir_model_data_menu msgid "External Identifiers" -msgstr "" +msgstr "Identificatori Esterni" #. module: base #: model:res.groups,name:base.group_sale_salesman @@ -12950,6 +12957,7 @@ msgid "" "Please define at least one SMTP server, or provide the SMTP parameters " "explicitly." msgstr "" +"Definire almeno un server SMTP, o fornire esplicitamente i parametri SMTP" #. module: base #: view:ir.attachment:0 @@ -12993,7 +13001,7 @@ msgstr "Gabon" #. module: base #: model:res.groups,name:base.group_multi_company msgid "Multi Companies" -msgstr "" +msgstr "Multi-azienda" #. module: base #: view:ir.model:0 @@ -13166,7 +13174,7 @@ msgstr "Varie" #: view:ir.mail_server:0 #: model:ir.ui.menu,name:base.menu_mail_servers msgid "Outgoing Mail Servers" -msgstr "" +msgstr "Server della Posta in Uscita" #. module: base #: model:res.country,name:base.cn diff --git a/openerp/addons/base/i18n/nl.po b/openerp/addons/base/i18n/nl.po index 818bd5c4602..45560f7e363 100644 --- a/openerp/addons/base/i18n/nl.po +++ b/openerp/addons/base/i18n/nl.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:44+0000\n" -"PO-Revision-Date: 2012-02-19 13:01+0000\n" +"PO-Revision-Date: 2012-08-09 06:15+0000\n" "Last-Translator: Erwin \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-19 04:38+0000\n" -"X-Generator: Launchpad (build 15637)\n" +"X-Launchpad-Export-Date: 2012-08-10 04:58+0000\n" +"X-Generator: Launchpad (build 15761)\n" #. module: base #: model:res.country,name:base.sh @@ -1443,7 +1443,7 @@ msgstr "" "U kunt de navolgende extra data toevoegen aan een verkooporder:\n" "* Aanvraagdatum\n" "* Bevestigde datum\n" -"* Effectieve datum\n" +"* Boek datum\n" #. module: base #: model:ir.module.module,shortdesc:base.module_account_sequence @@ -8110,7 +8110,7 @@ msgstr "Kenmerk" #. module: base #: model:ir.module.module,shortdesc:base.module_analytic msgid "Analytic Accounting" -msgstr "Kostenplaats boekhouding" +msgstr "Kostenplaatsen" #. module: base #: view:ir.actions.report.xml:0 diff --git a/openerp/addons/base/ir/ir_actions.py b/openerp/addons/base/ir/ir_actions.py index fc6ae9ea60e..72fd6aab349 100644 --- a/openerp/addons/base/ir/ir_actions.py +++ b/openerp/addons/base/ir/ir_actions.py @@ -223,11 +223,11 @@ class act_window(osv.osv): help="Model name of the object to open in the view window"), 'src_model': fields.char('Source Model', size=64, help="Optional model name of the objects on which this action should be visible"), - 'target': fields.selection([('current','Current Window'),('new','New Window'),('inline','Inline')], 'Target Window'), - 'view_type': fields.selection((('tree','Tree'),('form','Form')), string='View Type', required=True, - help="View type: set to 'tree' for a hierarchical tree view, or 'form' for other views"), + 'target': fields.selection([('current','Current Window'),('new','New Window'),('inline','Inline Edit'),('inlineview','Inline View')], 'Target Window'), 'view_mode': fields.char('View Mode', size=250, required=True, help="Comma-separated list of allowed view modes, such as 'form', 'tree', 'calendar', etc. (Default: tree,form)"), + 'view_type': fields.selection((('tree','Tree'),('form','Form')), string='View Type', required=True, + help="View type: Tree type to use for the tree view, set to 'tree' for a hierarchical tree view, or 'form' for a regular list view"), 'usage': fields.char('Action Usage', size=32, help="Used to filter menu and home actions from the user form."), 'view_ids': fields.one2many('ir.actions.act_window.view', 'act_window_id', 'Views'), diff --git a/openerp/addons/base/module/module.py b/openerp/addons/base/module/module.py index 4eee580ec40..1272b6fc7a1 100644 --- a/openerp/addons/base/module/module.py +++ b/openerp/addons/base/module/module.py @@ -180,8 +180,8 @@ class module(osv.osv): _columns = { 'name': fields.char("Technical Name", size=128, readonly=True, required=True, select=True), 'category_id': fields.many2one('ir.module.category', 'Category', readonly=True, select=True), - 'shortdesc': fields.char('Module Name', size=256, readonly=True, translate=True), - 'summary': fields.char('Summary', size=256, readonly=True, translate=True), + 'shortdesc': fields.char('Module Name', size=64, readonly=True, translate=True), + 'summary': fields.char('Summary', size=64, readonly=True, translate=True), 'description': fields.text("Description", readonly=True, translate=True), 'author': fields.char("Author", size=128, readonly=True), 'maintainer': fields.char('Maintainer', size=128, readonly=True), @@ -358,22 +358,7 @@ class module(osv.osv): :returns: next res.config item to execute :rtype: dict[str, object] """ - self.button_install(cr, uid, ids, context=context) - cr.commit() - _, pool = pooler.restart_pool(cr.dbname, update_module=True) - - config = pool.get('res.config').next(cr, uid, [], context=context) or {} - if config.get('type') not in ('ir.actions.reload', 'ir.actions.act_window_close'): - return config - - # reload the client; open the first available root menu - menu_obj = self.pool.get('ir.ui.menu') - menu_ids = menu_obj.search(cr, uid, [('parent_id', '=', False)], context=context) - return { - 'type': 'ir.actions.client', - 'tag': 'reload', - 'params': {'menu_id': menu_ids and menu_ids[0] or False}, - } + return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) def button_install_cancel(self, cr, uid, ids, context=None): self.write(cr, uid, ids, {'state': 'uninstalled', 'demo':False}) @@ -418,8 +403,35 @@ class module(osv.osv): known_dep_ids, exclude_states,context)) return list(known_dep_ids) + def _button_immediate_function(self, cr, uid, ids, function, context=None): + function(cr, uid, ids, context=context) + + cr.commit() + _, pool = pooler.restart_pool(cr.dbname, update_module=True) + + config = pool.get('res.config').next(cr, uid, [], context=context) or {} + if config.get('type') not in ('ir.actions.reload', 'ir.actions.act_window_close'): + return config + + # reload the client; open the first available root menu + menu_obj = self.pool.get('ir.ui.menu') + menu_ids = menu_obj.search(cr, uid, [('parent_id', '=', False)], context=context) + + return { + 'type' : 'ir.actions.client', + 'tag' : 'reload', + 'params' : {'menu_id' : menu_ids and menu_ids[0] or False} + } + + def button_immediate_uninstall(self, cr, uid, ids, context=None): + """ + Uninstall the selected module(s) immediately and fully, + returns the next res.config action to execute + """ + return self._button_immediate_function(cr, uid, ids, self.button_uninstall, context=context) + def button_uninstall(self, cr, uid, ids, context=None): - if any(m.name == 'base' for m in self.browse(cr, uid, ids)): + if any(m.name == 'base' for m in self.browse(cr, uid, ids, context=context)): raise orm.except_orm(_('Error'), _("The `base` module cannot be uninstalled")) dep_ids = self.downstream_dependencies(cr, uid, ids, context=context) self.write(cr, uid, ids + dep_ids, {'state': 'to remove'}) @@ -429,6 +441,13 @@ class module(osv.osv): self.write(cr, uid, ids, {'state': 'installed'}) return True + def button_immediate_upgrade(self, cr, uid, ids, context=None): + """ + Upgrade the selected module(s) immediately and fully, + return the next res.config action to execute + """ + return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context) + def button_upgrade(self, cr, uid, ids, context=None): depobj = self.pool.get('ir.module.module.dependency') todo = self.browse(cr, uid, ids, context=context) diff --git a/openerp/addons/base/module/module_view.xml b/openerp/addons/base/module/module_view.xml index 7252f09db05..fb60bcd25fd 100644 --- a/openerp/addons/base/module/module_view.xml +++ b/openerp/addons/base/module/module_view.xml @@ -112,8 +112,8 @@