[FIX] Sale: QWeb action returned when clicking on print button on form view
bzr revid: openerp-sle@openerp-sle.home-20140212230002-4e1rsmeutg45h237
This commit is contained in:
parent
271f350268
commit
a2805ee6d7
|
@ -409,12 +409,7 @@ class sale_order(osv.osv):
|
||||||
'''
|
'''
|
||||||
assert len(ids) == 1, 'This option should only be used for a single id at a time'
|
assert len(ids) == 1, 'This option should only be used for a single id at a time'
|
||||||
self.signal_quotation_sent(cr, uid, ids)
|
self.signal_quotation_sent(cr, uid, ids)
|
||||||
datas = {
|
return self.pool['report'].get_action(cr, uid, ids, 'sale.report_saleorder', context=context)
|
||||||
'model': 'sale.order',
|
|
||||||
'ids': ids,
|
|
||||||
'form': self.read(cr, uid, ids[0], context=context),
|
|
||||||
}
|
|
||||||
return {'type': 'ir.actions.report.xml', 'report_name': 'sale.order', 'datas': datas, 'nodestroy': True}
|
|
||||||
|
|
||||||
def manual_invoice(self, cr, uid, ids, context=None):
|
def manual_invoice(self, cr, uid, ids, context=None):
|
||||||
""" create invoices for the given sales orders (ids), and open the form
|
""" create invoices for the given sales orders (ids), and open the form
|
||||||
|
|
Loading…
Reference in New Issue