point_of_sale: workflow erroneous validated in add payment

Bug #373812 reported by Jordi Esteve (www.zikzakmedia.com)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
gpa(OpenERP)

Bug Description

Affects version 5.0 and trunk. Line 437 of point_of_sale/pos.py the pos workflow is erroneous validated:

        wf_service.trg_validate(uid, 'pos.order', order_id, 'payment', cr)

The signal must be 'paid' instead of 'payment', like line 225 of the same file:

        wf_service.trg_validate(uid, 'pos.order', order.id, 'paid', cr)

Now the pos payments are working luckily because, in the payment wizard, after calling add_payment() (that validates erroneously the workflow) is always called test_order_lines() (that validates the workflow correctly).

Changed in openobject-addons:
status: New → In Progress
Changed in openobject-addons:
assignee: nobody → gpa(tiny) (gpa-openerp)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed in revision 2318.
Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Released
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.