How to Pass Current ID to Wizard via a button form in Odoo 13 Enterprise?
Hello,
I'm trying to open a form view number 2 with the current parameter has filled in the form view number 1. After clicking the button, it can open the Form view (2) but still not have the current name was filled in before.
I'm using Many2one to get already data for the name.
name = fields.
This is my code in py file:
def create_field(self):
return {
'name': self.name,
'type': 'ir.actions.
}
And my code for the button in XML file like this:
<button type="object" string="TĂNG LAO ĐỘNG" name= "create_field" class="
Please help!
Thank you!
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Leon Nguyen for more information if necessary.