[FIX] sale, sale_stock: moved back the group_invoice_so_lines into sale module, becau...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 20 Sep 2012 14:36:16 +0000 (16:36 +0200)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 20 Sep 2012 14:36:16 +0000 (16:36 +0200)
bzr revid: qdp-launchpad@openerp.com-20120920143616-trffd9jwwys528qr

addons/sale/res_config.py
addons/sale/res_config_view.xml
addons/sale_stock/res_config.py

index 4cfb1e7..843e1fd 100644 (file)
@@ -27,6 +27,9 @@ class sale_configuration(osv.osv_memory):
     _inherit = 'sale.config.settings'
 
     _columns = {
+        'group_invoice_so_lines': fields.boolean('Generate invoices based on the sale order lines',
+            implied_group='sale.group_invoice_so_lines',
+            help="To allow your salesman to make invoices for sale order lines using the menu 'Lines to Invoice'."),
         'timesheet': fields.boolean('Prepare invoices based on timesheets',
             help = """For modifying account analytic view to show important data to project manager of services companies.
                 You can also view the report of account analytic summary user-wise as well as month wise.
index 6150d4c..9ebbc36 100644 (file)
                     <group>
                         <label for="id" string="Invoicing Process"/>
                         <div>
+                            <div>
+                                <field name="group_invoice_so_lines" on_change="onchange_invoice_methods(group_invoice_so_lines, group_invoice_deli_orders)" class="oe_inline"/>
+                                <label for="group_invoice_so_lines"/>
+                            </div>
                             <div name="timesheet">
                                 <field name="timesheet" class="oe_inline" on_change="onchange_timesheet(timesheet)"/>
                                 <label for="timesheet"/>
index 23d55a4..22b4783 100644 (file)
@@ -27,9 +27,6 @@ class sale_configuration(osv.osv_memory):
     _inherit = 'sale.config.settings'
 
     _columns = {
-        'group_invoice_so_lines': fields.boolean('Generate invoices from the sale order',
-            implied_group='sale.group_invoice_so_lines',
-            help="This option sets your sales as to be invoiced manually, from the Sale Order"),
         'group_invoice_deli_orders': fields.boolean('Generate invoices after and based on delivery orders',
             implied_group='sale_stock.group_invoice_deli_orders',
             help="To allow your salesman to make invoices for Delivery Orders using the menu 'Deliveries to Invoice'."),
@@ -60,7 +57,6 @@ class sale_configuration(osv.osv_memory):
 
     _defaults = {
         'default_order_policy': 'manual',
-        'group_invoice_so_lines': True,
     }
 
     def default_get(self, cr, uid, fields, context=None):