[FIX] Removes grouping functionality in creating invoices from sales orders and avoids double invoices

lp bug: https://launchpad.net/bugs/1092843 fixed

bzr revid: jco@openerp.com-20130226153109-xs603vv26vyiuke0
This commit is contained in:
Josse Colpaert 2013-02-26 16:31:09 +01:00
parent dafdd4d967
commit d4c87342fb
2 changed files with 5 additions and 7 deletions

View File

@ -51,7 +51,6 @@ class sale_make_invoice(osv.osv_memory):
if context is None:
context = {}
data = self.read(cr, uid, ids)[0]
order_obj.action_invoice_create(cr, uid, context.get(('active_ids'), []), data['grouped'], date_invoice = data['invoice_date'])
wf_service = netsvc.LocalService("workflow")
for id in context.get(('active_ids'), []):
wf_service.trg_validate(uid, 'sale.order', id, 'manual_invoice', cr)

View File

@ -6,16 +6,15 @@
<field name="model">sale.make.invoice</field>
<field name="arch" type="xml">
<form string="Create invoices" version="7.0">
<header>
<button name="make_invoices" string="Create Invoices" type="object" class="oe_highlight" />
or
<button string="Cancel" class="oe_link" special="cancel" />
</header>
<separator colspan="4" string="Do you really want to create the invoice(s)?" />
<group>
<field name="grouped"/>
<field name="invoice_date"/>
</group>
<footer>
<button name="make_invoices" string="Create Invoices" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
</field>
</record>