diff --git a/addons/email_template/wizard/mail_compose_message.py b/addons/email_template/wizard/mail_compose_message.py index 2cb7b9b6dff..beede1122dc 100644 --- a/addons/email_template/wizard/mail_compose_message.py +++ b/addons/email_template/wizard/mail_compose_message.py @@ -50,7 +50,7 @@ class mail_compose_message(osv.TransientModel): res.update( self.onchange_template_id( cr, uid, [], context['default_template_id'], res.get('composition_mode'), - res.get('model'), res.get('res_id'), context=context + res.get('model'), res.get('res_id', context.get('active_id')), context=context )['value'] ) return res diff --git a/addons/sale/res_config.py b/addons/sale/res_config.py index d9e1091a3df..a595671d460 100644 --- a/addons/sale/res_config.py +++ b/addons/sale/res_config.py @@ -93,6 +93,8 @@ Example: 10% for retailers, promotion of 5 EUR on this product, etc."""), help='This adds the \'Margin\' on sales order.\n' 'This gives the profitability by calculating the difference between the Unit Price and Cost Price.\n' '-This installs the module sale_margin.'), + 'module_website_quotation': fields.boolean("Allow online quotations and templates", + help='This adds the online quotation'), 'module_sale_journal': fields.boolean("Allow batch invoicing of delivery orders through journals", help='Allows you to categorize your sales and deliveries (picking lists) between different journals, ' 'and perform batch operations on journals.\n' diff --git a/addons/sale/res_config_view.xml b/addons/sale/res_config_view.xml index 44d9888212e..34f05226a30 100644 --- a/addons/sale/res_config_view.xml +++ b/addons/sale/res_config_view.xml @@ -80,6 +80,10 @@
+
+ +