sale: wizard make_invoice raises unexpected exception.

Bug #567987 reported by Eduardo Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Undecided
Unassigned

Bug Description

With a confirmed sale order, you try to run the wizard make_invoices (I have detected with a grouped invoice, selecting two confirmed orders in tree view, but no matter if you try without grouping or even with a single order) and an exception is raised from sale.py :

            #if not lines:
            # raise osv.except_osv(_('Warning'),_('Invoice cannot be created for this Sale Order due to one of the following reasons:\n1.The state is not in %s!\n2.The Sale Order Lines are Invoiced!')%(states,))

This check exists from revision 2685 (http://bazaar.launchpad.net/%7Eopenerp/openobject-addons/5.0/revision/2685).

version 5.0.9 ubuntu

Related branches

Revision history for this message
Eduardo Ruiz (readylan) wrote :

The problem occurs when ORDER_POLICY is set to MANUAL.

Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
milestone: none → 5.0.10
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.