Hi,
how can i search a specific field (mobile) in res.partner using on_change function
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
how can i search a specific field (mobile) in res.partner using on_change function
Hi Abir,
When you call an onchange function you can access any value from that model through self. For example:
@api.onchange('mobile')
def onchange_phone(self):
# for example: get the value from the field 'mobile' in a variable named 'mobile'
mobile = self.mobile
# Set a static value on the field 'phone'. You can also use the 'mobile' variable or anything else here.
self.phone = '014'
Regards,
Yenthe
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ý| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
1
thg 7 20
|
21594 | ||
|
|
1
thg 3 19
|
5297 | ||
|
|
0
thg 12 18
|
13 | ||
|
|
0
thg 1 17
|
2827 | ||
|
Onchange many2one partner_bank_id
Đã xử lý
|
|
1
thg 5 16
|
4437 |