In openerp journal entry generation for stock movements decided by the product field "Inventory valuation". It has tow values 1. periodical (manual) 2. Realtime (Automated). If we select 2nd option, there is a journal entry generated when stock movement is there with this product. I am developing a module, that don't require jornal entry eventhough eventhough the product inventory valuation value is "Realtime (Automated)" . I am using below three functions to move the stock.
*************************************************************************
inventry_line_obj = self.pool.get('stock.inventory.line')
inventry_line_obj.create(cr , uid, line_data, context=context)
inventry_obj.action_confirm(cr, uid, [inventory_id], context=context)
inventry_obj.action_done(cr, uid, [inventory_id], context=context)
**********************************************************************
Please suggest function that make moves and not generate the journal entries. OR Give me a peace of code. That generate stock moves without generating journal entry irrespective of the product inventory valuation value.