diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index f64fa6bb839..766a9b888bc 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -101,13 +101,13 @@ 3 - on_trigger + special 5 - on_trigger + special diff --git a/addons/account/configurable_account_chart.xml b/addons/account/configurable_account_chart.xml index c4b3899b772..6ec78163d92 100644 --- a/addons/account/configurable_account_chart.xml +++ b/addons/account/configurable_account_chart.xml @@ -617,7 +617,7 @@ Generate Chart of Accounts from a Chart Template open - on_trigger + special diff --git a/addons/account_sequence/account_sequence_installer_view.xml b/addons/account_sequence/account_sequence_installer_view.xml index 3a812a187c4..a1fce67e4b1 100644 --- a/addons/account_sequence/account_sequence_installer_view.xml +++ b/addons/account_sequence/account_sequence_installer_view.xml @@ -50,7 +50,7 @@ 3 - on_trigger + special diff --git a/addons/association/profile_association.xml b/addons/association/profile_association.xml index 95e46457cca..3181ac32a78 100644 --- a/addons/association/profile_association.xml +++ b/addons/association/profile_association.xml @@ -50,7 +50,7 @@ id="config_install_module"> 3 - always + normal_recurring 3 - always + normal_recurring diff --git a/addons/base_setup/base_setup_installer.xml b/addons/base_setup/base_setup_installer.xml index 13906abe6ba..e37a9eabee0 100644 --- a/addons/base_setup/base_setup_installer.xml +++ b/addons/base_setup/base_setup_installer.xml @@ -1,5 +1,6 @@ + base.setup.installer.view base.setup.installer @@ -61,7 +62,107 @@ 2 - always + normal_recurring + + + + + migrade.application.installer.modules.form + migrade.application.installer.modules + form + + + +
+ Migrate data from another application +
+ + Migrate data from another application + + + Import data from other applications. Following the selected application, you can import more or less type of data matching to OpenERP objects. Choose the application and then the data you want to import in OpenERP + + + Configure + + + + + + + + + + +
+
+
+ + + Migrate data from another application + ir.actions.act_window + migrade.application.installer.modules + + form + form + new + + + + + normal_recurring + + + + + + Import or create customers + product.installer + form + + + +
+ Import or create customers +
+ + Import or create customers + + + Create some customers, suppliers and their contacts manually or import a CSV spreadsheet by clicking on the import link + + + 15 + + + + + + + + +
+
+
+ + + Import or create customers + ir.actions.act_window + product.installer + + form + form + new + + + + + + normal + skip + +
diff --git a/addons/base_setup/base_setup_todo.xml b/addons/base_setup/base_setup_todo.xml index 234571b458e..7467cad4d4b 100644 --- a/addons/base_setup/base_setup_todo.xml +++ b/addons/base_setup/base_setup_todo.xml @@ -67,7 +67,7 @@ 1 - never + normal skip diff --git a/addons/base_setup/installer.py b/addons/base_setup/installer.py index 34c68fcf9f9..5e0987cb7a4 100644 --- a/addons/base_setup/installer.py +++ b/addons/base_setup/installer.py @@ -145,7 +145,62 @@ class base_setup_installer(osv.osv_memory): elif i.state == 'installed': if modules_selected: for instl in modules_selected: - cr.execute("update ir_actions_todo set restart='on_trigger' , state='open' from ir_model_data as data where data.res_id = ir_actions_todo.id and data.model = 'ir.actions.todo' and data.module like '%"+instl+"%'") + cr.execute("update ir_actions_todo set state='open' from ir_model_data as data where data.res_id = ir_actions_todo.id and data.model = 'ir.actions.todo' and data.module like '%"+instl+"%'") return + base_setup_installer() + +#Migrate data from another application Conf wiz + +class migrade_application_installer_modules(osv.osv_memory): + _name = 'migrade.application.installer.modules' + _inherit = 'res.config.installer' + _columns = { + 'import_saleforce': fields.boolean('Import Saleforce', + help="For Import Saleforce"), + 'import_sugarcrm': fields.boolean('Import Sugarcrm', + help="For Import Sugarcrm"), + 'sync_google_contact': fields.boolean('Sync Google Contact', + help="For Sync Google Contact"), + 'quickbooks_ippids': fields.boolean('Quickbooks Ippids', + help="For Quickbooks Ippids"), + } + +migrade_application_installer_modules() + +class product_installer(osv.osv_memory): + _name = 'product.installer' + _inherit = 'res.config' + _columns = { + 'customers': fields.selection([('create','Create'), ('import','Import')], 'Customers', size=32, required=True, help="Import or create customers"), + + } + _defaults = { + 'customers': 'create', + } + + def execute(self, cr, uid, ids, context=None): + if context is None: + context = {} + data_obj = self.pool.get('ir.model.data') + val = self.browse(cr, uid, ids, context=context)[0] + if val.customers == 'create': + id2 = data_obj._get_id(cr, uid, 'base', 'view_partner_form') + if id2: + id2 = data_obj.browse(cr, uid, id2, context=context).res_id + return { + 'view_type': 'form', + 'view_mode': 'form', + 'res_model': 'res.partner', + 'views': [(id2, 'form')], + 'type': 'ir.actions.act_window', + 'target': 'current', + 'nodestroy':False, + } + if val.customers == 'import': + return {'type': 'ir.actions.act_window'} + +product_installer() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/crm/crm_installer_view.xml b/addons/crm/crm_installer_view.xml index 0f7ff03f6f3..4f882728e9e 100644 --- a/addons/crm/crm_installer_view.xml +++ b/addons/crm/crm_installer_view.xml @@ -61,7 +61,7 @@ 3 - on_trigger + special diff --git a/addons/document/wizard/document_configuration_view.xml b/addons/document/wizard/document_configuration_view.xml index 8aa874782b9..bdbaf410499 100644 --- a/addons/document/wizard/document_configuration_view.xml +++ b/addons/document/wizard/document_configuration_view.xml @@ -46,7 +46,7 @@ - +
diff --git a/addons/document_ics/document_ics_config_wizard.xml b/addons/document_ics/document_ics_config_wizard.xml index e338765e97d..5767e4ee74d 100644 --- a/addons/document_ics/document_ics_config_wizard.xml +++ b/addons/document_ics/document_ics_config_wizard.xml @@ -55,7 +55,7 @@ - always + special diff --git a/addons/hr/hr_installer.xml b/addons/hr/hr_installer.xml index c1d7eaac43c..a4951dcb121 100644 --- a/addons/hr/hr_installer.xml +++ b/addons/hr/hr_installer.xml @@ -52,7 +52,7 @@ 3 - on_trigger + special diff --git a/addons/knowledge/knowledge_installer.xml b/addons/knowledge/knowledge_installer.xml index 79f6cfb178e..a8c458a1fe1 100644 --- a/addons/knowledge/knowledge_installer.xml +++ b/addons/knowledge/knowledge_installer.xml @@ -53,7 +53,7 @@ 3 - on_trigger + special diff --git a/addons/l10n_be/l10n_be_wizard.xml b/addons/l10n_be/l10n_be_wizard.xml index 5b3c42b22fa..a78951ca466 100644 --- a/addons/l10n_be/l10n_be_wizard.xml +++ b/addons/l10n_be/l10n_be_wizard.xml @@ -4,7 +4,7 @@ - on_trigger + special diff --git a/addons/l10n_br/data/l10n_br_account_chart_template.xml b/addons/l10n_br/data/l10n_br_account_chart_template.xml index 4b548f65c8c..8872baae2d9 100644 --- a/addons/l10n_br/data/l10n_br_account_chart_template.xml +++ b/addons/l10n_br/data/l10n_br_account_chart_template.xml @@ -19,7 +19,7 @@ This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template.
open - on_trigger + special diff --git a/addons/l10n_cr/l10n_wizard.xml b/addons/l10n_cr/l10n_wizard.xml index 5b3c42b22fa..a78951ca466 100644 --- a/addons/l10n_cr/l10n_wizard.xml +++ b/addons/l10n_cr/l10n_wizard.xml @@ -4,7 +4,7 @@ - on_trigger + special diff --git a/addons/l10n_es/l10n_es_wizard.xml b/addons/l10n_es/l10n_es_wizard.xml index 3bbda51e00c..2d7a955fd6d 100644 --- a/addons/l10n_es/l10n_es_wizard.xml +++ b/addons/l10n_es/l10n_es_wizard.xml @@ -4,7 +4,7 @@ - on_trigger + special diff --git a/addons/l10n_fr/l10n_fr_wizard.xml b/addons/l10n_fr/l10n_fr_wizard.xml index 48147ac172d..972551b7389 100644 --- a/addons/l10n_fr/l10n_fr_wizard.xml +++ b/addons/l10n_fr/l10n_fr_wizard.xml @@ -4,7 +4,7 @@ - on_trigger + special diff --git a/addons/l10n_lu/l10n_lu_wizard.xml b/addons/l10n_lu/l10n_lu_wizard.xml index 5942e7800d0..0d2a1da607b 100644 --- a/addons/l10n_lu/l10n_lu_wizard.xml +++ b/addons/l10n_lu/l10n_lu_wizard.xml @@ -4,7 +4,7 @@ - on_trigger + special diff --git a/addons/l10n_ma/l10n_ma_wizard.xml b/addons/l10n_ma/l10n_ma_wizard.xml index 4768ed60dee..caf81480ef8 100644 --- a/addons/l10n_ma/l10n_ma_wizard.xml +++ b/addons/l10n_ma/l10n_ma_wizard.xml @@ -4,7 +4,7 @@ - on_trigger + special diff --git a/addons/l10n_uk/l10n_uk_wizard.xml b/addons/l10n_uk/l10n_uk_wizard.xml index 62fe38a1642..0ce7559b0e6 100644 --- a/addons/l10n_uk/l10n_uk_wizard.xml +++ b/addons/l10n_uk/l10n_uk_wizard.xml @@ -8,7 +8,7 @@ This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template. open - on_trigger + special diff --git a/addons/marketing/marketing_view.xml b/addons/marketing/marketing_view.xml index c6c8c6e6946..4b6b282527e 100644 --- a/addons/marketing/marketing_view.xml +++ b/addons/marketing/marketing_view.xml @@ -58,7 +58,7 @@ 3 - always + normal_recurring diff --git a/addons/mrp/mrp_installer.xml b/addons/mrp/mrp_installer.xml index 4008385ff32..47c7aadfe89 100644 --- a/addons/mrp/mrp_installer.xml +++ b/addons/mrp/mrp_installer.xml @@ -48,7 +48,7 @@ 3 - on_trigger + special diff --git a/addons/outlook/outlook_installer.xml b/addons/outlook/outlook_installer.xml index e9fd756ff3d..978a713a4ae 100644 --- a/addons/outlook/outlook_installer.xml +++ b/addons/outlook/outlook_installer.xml @@ -9,10 +9,10 @@
- Outlook Plug-In Configuration + Load Outlook Plug-In
- Outlook Plug-In + Load Outlook Plug-In This plug-in allows you to link your e-mail to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one. @@ -49,7 +49,7 @@ - Outlook Plug-In Configuration + Load Outlook Plug-In ir.actions.act_window outlook.installer @@ -64,7 +64,7 @@ - Outlook Plug-In Configuration + Load Outlook Plug-In ir.actions.act_window outlook.installer @@ -81,7 +81,7 @@
diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index acc0a72ff3b..18bbfb2a7f8 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -654,7 +654,8 @@ form - + + diff --git a/addons/product/__openerp__.py b/addons/product/__openerp__.py index a1ee0d144b5..bcddcc93bdf 100644 --- a/addons/product/__openerp__.py +++ b/addons/product/__openerp__.py @@ -55,6 +55,7 @@ Print product labels with barcode. 'product_data.xml', 'product_report.xml', 'product_view.xml', + 'wizard/product_installer.xml', 'product_shortcut_data.xml', 'pricelist_view.xml', 'partner_view.xml', diff --git a/addons/product/wizard/product_installer.xml b/addons/product/wizard/product_installer.xml new file mode 100644 index 00000000000..95c6d00fa16 --- /dev/null +++ b/addons/product/wizard/product_installer.xml @@ -0,0 +1,23 @@ + + + + + + Create some products + ir.actions.act_window + product.product + form + form + + + + + + + current + normal + skip + + + + diff --git a/addons/profile_tools/misc_tools_installer.xml b/addons/profile_tools/misc_tools_installer.xml index c21f703b291..d1bfcd259c4 100644 --- a/addons/profile_tools/misc_tools_installer.xml +++ b/addons/profile_tools/misc_tools_installer.xml @@ -48,7 +48,7 @@ - on_trigger + special 3 diff --git a/addons/project/project_installer.xml b/addons/project/project_installer.xml index 7200986beb2..c704a980000 100644 --- a/addons/project/project_installer.xml +++ b/addons/project/project_installer.xml @@ -50,7 +50,7 @@ - on_trigger + special 3 diff --git a/addons/purchase_double_validation/purchase_double_validation_installer.xml b/addons/purchase_double_validation/purchase_double_validation_installer.xml index 2cafbd7cd9a..b3eb4f84574 100644 --- a/addons/purchase_double_validation/purchase_double_validation_installer.xml +++ b/addons/purchase_double_validation/purchase_double_validation_installer.xml @@ -44,7 +44,7 @@ - on_trigger + special diff --git a/addons/report_designer/report_designer_installer.xml b/addons/report_designer/report_designer_installer.xml index 31f6d16ae22..d3416162ab8 100644 --- a/addons/report_designer/report_designer_installer.xml +++ b/addons/report_designer/report_designer_installer.xml @@ -45,7 +45,7 @@ - on_trigger + special 3 diff --git a/addons/sale/sale.py b/addons/sale/sale.py index f80d610eb03..0758fac6c19 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -1177,14 +1177,10 @@ class sale_config_picking_policy(osv.osv_memory): _columns = { 'name': fields.char('Name', size=64), - 'picking_policy': fields.selection([ - ('direct', 'Direct Delivery'), - ('one', 'All at Once') - ], 'Picking Default Policy', required=True, help="The Shipping Policy is used to configure per order if you want to deliver as soon as possible when one product is available or you wait that all products are available.."), 'order_policy': fields.selection([ ('manual', 'Invoice Based on Sales Orders'), ('picking', 'Invoice Based on Deliveries'), - ], 'Shipping Default Policy', required=True, + ], 'Invoice Method', required=True, help="You can generate invoices based on sales orders or based on shippings."), 'step': fields.selection([ ('one', 'Delivery Order Only'), @@ -1196,7 +1192,6 @@ class sale_config_picking_policy(osv.osv_memory): "in one or two operations by the worker.") } _defaults = { - 'picking_policy': 'direct', 'order_policy': 'manual', 'step': 'one' } @@ -1204,7 +1199,6 @@ class sale_config_picking_policy(osv.osv_memory): def execute(self, cr, uid, ids, context=None): for o in self.browse(cr, uid, ids, context=context): ir_values_obj = self.pool.get('ir.values') - ir_values_obj.set(cr, uid, 'default', False, 'picking_policy', ['sale.order'], o.picking_policy) ir_values_obj.set(cr, uid, 'default', False, 'order_policy', ['sale.order'], o.order_policy) if o.step == 'two': md = self.pool.get('ir.model.data') diff --git a/addons/sale/sale_installer.xml b/addons/sale/sale_installer.xml index ad707a1abec..6d67b105578 100644 --- a/addons/sale/sale_installer.xml +++ b/addons/sale/sale_installer.xml @@ -47,7 +47,7 @@ - on_trigger + special 3 diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 9925354346b..f311b13c95b 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -521,7 +521,7 @@ @@ -545,18 +545,16 @@ Configure Sales Order Logistics - Setup your sales workflow and default values. + Define your invoice method. A services company usually invoices based on sale orders while a retailer usually invoices based on deliveries. 15 - - - + @@ -576,7 +574,7 @@ - always + normal_recurring diff --git a/addons/thunderbird/thunderbird_installer.xml b/addons/thunderbird/thunderbird_installer.xml index 0059cdfd8ab..eb734c1625c 100644 --- a/addons/thunderbird/thunderbird_installer.xml +++ b/addons/thunderbird/thunderbird_installer.xml @@ -9,10 +9,10 @@
- Thunderbird Plug-In Configuration + Load Thunderbird Plug-In
- Thunderbird Plug-In + Load Thunderbird Plug-In This plug-in allows you to link your e-mail to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one. @@ -50,7 +50,7 @@ - Thunderbird Plug-In Configuration + Load Thunderbird Plug-In ir.actions.act_window thunderbird.installer @@ -61,13 +61,13 @@ - always + normal_recurring 3 - Thunderbird Plug-In Configuration + Load Thunderbird Plug-In ir.actions.act_window thunderbird.installer @@ -78,7 +78,7 @@ - +