Odoo Hilfe

0

0
1 Answer
1
Avatar

Jithin

--Jithin--

816
| 5 1 7
Calicut, Indien
--Jithin--



Jithin
15.06.19, 03:41

Hi Usman Farzand,
you can call wizard on a button click and pass ID,Try like below

def action_method(self):

return {
'name': self.name,
'res_model': 'wizard_model_name',
'type': 'ir.actions.act_window',
'context': {'current_id': self.id},
'view_mode': 'form',
'view_type': 'form',
'target': 'new',
}


2 Comments
Usman Farzand
15.06.19, 03:53

how i can get value in py file of current_id pls

Jithin
15.06.19, 07:52

try like below:

amount = context.get('current_id')

you can call paren form like:

c_obj = self.env['obj.obj'].browse([(self._context['current_id'])])

Fragen Sie
Writer
Keep Informed
1 Verfolger
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now