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:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
1
Reply
3710
Views
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
4
जन॰ 24
|
24057 | ||
|
Attrs attribute
Solved
|
|
2
जन॰ 24
|
2977 | |
|
|
0
अग॰ 23
|
2828 | ||
|
|
5
सित॰ 21
|
18268 | ||
|
|
3
जन॰ 21
|
18680 |