when I get into write I do not see those values which were not edited in vals.get(). How do I manage to get those field values that were not edited by user and I need those fields for some validation.
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
5706
Tampilan
Hi,
use ORM method browse.
Syntax :browse(cr, uid, select, context=None, list_class=None, fields_process=None)
Example :
def write(self, cr, uid, ids, vals, context=None):
partner = self.browse(cr, uid, ids[0], context=context)
#for example get first_name
first_name=partner.first_name
# all other field partner.field_name
Thank You.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
[v14] How do I write values into a One2Many field?
Diselesaikan
|
|
2
Agu 22
|
13983 | |
Write and update data with automated action
Diselesaikan
|
|
1
Jul 24
|
1472 | |
|
1
Mar 15
|
5223 | ||
|
1
Sep 23
|
2165 | ||
|
1
Agu 19
|
6032 |