POS receipt modification. Need to create cut bills based on product category?
I use Odoo 9. I would like to modify POS receipt such that
1. It prints the normal bill on click of validate (which is the standard feature)
2. I would like to also like to print category wise cut bills( Ex: I have Order 7 items in which 2 items from Category 1 and 3 items from Category 2 and 2 items from category 3, So I need it to print 3 cut bills with respective categories)
Can anyone help me on how to do? Should it be written in js or py function will do?
Please help me on this