hello community,
i am facing a problem with value error ,
ValueError: : "ProductTemplate._get_report_values() missing 1 required positional argument: 'docids'" while evaluating 'action = model._get_report_values()'
that's the code i am writing
@api.model
def _get_report_values(self, docids, data=None):
print('docids', docids)
docs = self.env['product.template'].browse(docids)
return {
'doc_model': 'product.template',
'data': data,
'docids': docids,
'docs': docs,
'lines': docids.get_lines()
}
hope i can get an answer
thanks in advanced