in an onchange function i need to call a field(in order to get its value) from another class . any help please ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
4408
มุมมอง
You'll find lots of examples in addons folder
Example:-
def onchange_partner_id(self, cr, uid, ids, part, context=None):
part = self.pool.get('res.partner').browse(cr, uid, part, context=context)
user = part.user_id and part.user_id.id or uid
val = {
'user_id': user
}
return {'value': val}
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ