How can I pass value to qweb and add to binary field. Everything is fine but I don't know how to add value to qweb. Here is my code.
def button_plan(self): super(MrpProduction, self).button_plan() for report in self.bom_id.multiple_report: report_name = "action_report_template" template = report pdf = self.env.ref('bks_mo.action_report_template')._render_qweb_pdf(self.ids) report.operation_id.worksheet_type = 'pdf' report.operation_id.worksheet = base64.b64encode(pdf[0])
How can I add template value to qweb.