plz give some answers...
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
I guess that what you wanna do is use a button to trigger the report download. If that is your case you could do it like:
def get_label(self, cr, uid, ids, context=None):
if ids:
if not isinstance(ids, list):
ids = [ids]
context = dict(context or {}, active_ids=ids, active_model=self._name)
return {
'type': 'ir.actions.report.xml',
'report_name': 'mrp.product_label_document',
'context': context,
}
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація