hi guys, I want to show a field in the res.partner form view but the field is in another object. How can i do to show it in that view? Thanks a lot for your answers
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
3713
Tampilan
Hi,
You must define a field type function in res.partner. and in this function get information in another object.
def _get_other(self,cr,uid,ids,field,arg,context=None):
res={}
//your treatment
return res
_columns = {
'other': fields.function(_get_other, method=True, type='float',string='Info other'),
}
Thank You.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
4
Jan 24
|
24067 | ||
|
Attrs attribute
Diselesaikan
|
|
2
Jan 24
|
2981 | |
|
|
0
Agu 23
|
2830 | ||
|
Not displaying the form and tree view
Diselesaikan
|
|
5
Sep 21
|
18272 | |
|
|
3
Jan 21
|
18695 |