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:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
5572
أدوات العرض
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.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
أغسطس 22
|
13771 | ||
|
1
يوليو 24
|
1295 | ||
|
1
مارس 15
|
5060 | ||
|
1
سبتمبر 23
|
2053 | ||
|
1
أغسطس 19
|
5905 |