_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.
<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"/>
_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'."),
_defaults = {
'default_order_policy': 'manual',
- 'group_invoice_so_lines': True,
}
def default_get(self, cr, uid, fields, context=None):