workorder_count = fields.Integer('# Work Orders', compute='_compute_workorder_count')
"workorder+=1" it doesn't work
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
workorder_count = fields.Integer('# Work Orders', compute='_compute_workorder_count')
"workorder+=1" it doesn't work
Hi,
workorder_count = fields.Integer('# Work Orders', compute='_compute_workorder_count')
The above line is field declaration and if you have to increment the value on the field workorder_count, write a function in the name you have mentioned in the compute "_compute_workorder_count".
@api.depends('workorder_count')
def _compute_workorder_count(self):
self.workorder_count += 1
Thanks
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
0
أغسطس 22
|
3266 | |||
|
1
يوليو 22
|
21091 | |||
|
0
أبريل 22
|
3824 | |||
|
3
سبتمبر 21
|
3954 | |||
|
2
سبتمبر 21
|
5380 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Can You Explain Your Question in Brief?