over 9 years ago
If you want to make print a report in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
- def _get_invoice_id(self, uid, datas):
- ...
- return {ids: [...]}
- ...
- actions: [_get_invoice_id],
- result: {type:print,
- report:account.invoice,
- get_id_from_action: True,
- state:check_refund}
def _get_invoice_id(self, uid, datas): ... return {ids: [...]} ... actions: [_get_invoice_id], result: {type:print, report:account.invoice, get_id_from_action: True, state:check_refund}
Note- With the help of this code we will make print a report
0 Comment(s)