← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 663237] [NEW] [6.0][sale][HIGH] Services sale order never finished

 

Public bug reported:

Hi,

I create sale order with one service line, when I confirm it, it
executes action_ship_create() function, in this function, if product
isn't service, it creates a picking, a move and then a procurement where
it sets the created move, but if the product is service it only creates
the procurement, without move. Then, in procurements, I confirm the
procurement and it in the end calls to check_move_done() function, in
this function it does:

return all(procurement.move_id.state == 'done' for procurement in
self.browse(cr, uid, ids))

But, my service procurement hasn't move_id and it always returns False
and it never finished the procurement therefore it never finished the
sale order.

I think that, if procurement hasn't move, it should finish always. But,
why does procurement exist for service products? or, why does
procurement create without move_id?

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
[6.0][sale][HIGH] Services sale order never finished
https://bugs.launchpad.net/bugs/663237
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Addons Modules: New

Bug description:
Hi,

I create sale order with one service line, when I confirm it, it executes action_ship_create() function, in this function, if product isn't service, it creates a picking, a move and then a procurement where it sets the created move, but if the product is service it only creates the procurement, without move. Then, in procurements, I confirm the procurement and it in the end calls to check_move_done() function, in this function it does:

return all(procurement.move_id.state == 'done' for procurement in self.browse(cr, uid, ids)) 

But, my service procurement hasn't move_id and it always returns False and it never finished the procurement therefore it never finished the sale order.

I think that, if procurement hasn't move, it should finish always. But, why does procurement exist for service products? or, why does procurement create without move_id?





Follow ups

References