Odoo Help

0

0
1 Answer
1
Virali
6/17/15, 3:11 AM

If you want to print report using get_action method you need to pass ids of model 'stock.picking' and model name('stock.picking).

 STEPS:

--> First search stock picking ids which comes in given assortment like:

as you are in soortment object you can take ids[0].

pick_ids = self.pool.get('stock.picking').search(cr, uid, [('assortment_id', '=', ids[0])], context=context)

--> Then simpaly just return report using get_action 

return self.pool.get('report').get_action(cr, uid, pick_ids, 'stock.report_picking', context=context)


Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now