good morning , please i want to know how to open a form view of an other model on a new tab of the the browser by clicking on a button and passing context
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
2
Trả lời
605
Lượt xem
in model.py
def function_name(self):
return{
'name' :'Somename',
'domain':[],
'res_model':'your.model',
'type': 'ir.actions.act_window',
'view_mode': 'tree,form',
'target':'new',
'view_type':'tree',
'context': {},
}
in the model.xml call this function within a button.
Adjust function,name,domain,context as its required.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký