Hello,
Im trying to set the specific field name for the label (title) name of the popup form view via the wizard button.
I'd tried with this code:
def open_popup_form_view(self):
return {
'name': ('This is the popup's window of: ', ('context': {'default_name': self.name.id})),
'view_mode': 'form',
'res_model': 'mod.b',
'view_id': self.env.ref('testmodule.pop_up_form_view').id,
'context': {'default_name': self.name.id,
'default_referrence': ' '
},
'target': 'new',
'type': 'ir.actions.act_window',
}
If I just code the label/title via the 'name': ('This is the popup's window of: ') --> It works normally.
But tried with these code like above --> seem like a syntax error.
Please help,
Thank you!