In opeerp-7 quantity wise product has four measurements "on hand" "incoming" "outgoing" "forcasted". The quatity of product which are there in sales confirmation (not delivered) add to "outgoing". The quatity of product which are there in purchase confirmation (not received) add to "incoming". These quatities added to incoming or outgoing after confirm the orders. I need the case like when i create draft sales order for p1 quantity=10, that quantity should add to outgoing. similarly in purcahse order, when i create draft purchase order for p1 quantity=10, that quantity should add to incoming. Does it possible in openerp?
I have try like this.
_product_outgoing_qty = _get_product_available_func(('confirmed','waiting','assigned','draft'), ('out',))
_product_incoming_qty = _get_product_available_func(('confirmed','waiting','assigned','draft'), ('in',))
Please observe the above code. I have added "draft state" to above two functions. But it's not helping me.