I have this class
name = fields.Char("Name")
sequence = fields.Integer("Sequence")
description = fields.Text("Description")
I need a search method to find the id with lower sequence
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have this class
name = fields.Char("Name")
sequence = fields.Integer("Sequence")
description = fields.Text("Description")
I need a search method to find the id with lower sequence
Hi Josemi
you could do it like:
lowest_id = self.env['model_name'].search([('sequence', '!=', False)], order='ASC', limit=1)สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
2
ก.พ. 25
|
9471 | |||
|
0
ส.ค. 22
|
59 | |||
|
How to compare dates before validation
แก้ไขแล้ว
|
1
ก.พ. 16
|
6647 | ||
|
0
ธ.ค. 24
|
1547 | |||
|
1
มี.ค. 24
|
2253 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.