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
回覆
5718
瀏覽次數
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
8月 22
|
13983 | ||
|
1
7月 24
|
1472 | ||
|
1
3月 15
|
5223 | ||
|
1
9月 23
|
2165 | ||
|
1
8月 19
|
6032 |