Odoo 도움말

1

0
2 응답
0
Hoang Tran (DCT Solutions VN) Vietnam
19. 7. 27. 오전 5:53

You could create a method in the one2many field's comodel, this method will return an action to navigate to the record form view. You could return a new action, or an existed action. You could also change target to 'new' if you like. See example below:

    @api.multi
def action_show_details(self):
self.ensure_one()
        view = self.env.ref('module.record_form_view')
return {
'name': _('%s') % self.name,
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_model': 'form',
            'res_model': 'model',
'views': [(view.id, 'form')],
'view_id': view.id,
'target': 'current',
'res_id': self.id,
'context': dict(self.env.context),
}
0
ATX France
19. 7. 20. 오후 2:17

odoo.com/fr_FR/forum/aide-1/question/how-to-include-a-button-in-editable-treeview-cell-to-show-an-edit-form-on-the-current-record-61150​

질문하기
Writer
Keep Informed
1 팔로워
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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now