Hi
I have a problem that when i input order line in a certian order. After i save that order the order of the lines isn't the same anymore. is there a way to solve this or is this just the way openerp orders the order lines.
Kind regards
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
I have a problem that when i input order line in a certian order. After i save that order the order of the lines isn't the same anymore. is there a way to solve this or is this just the way openerp orders the order lines.
Kind regards
Hi,
in 'sale.order.line'
:
_order = 'order_id desc, sequence'
_defaults = {
'sequence': 10,
}
Sequence : Gives the sequence order when displaying a list of sales order lines.
so all order lines have a sequence=10.
to keep order of the input lines change _order by;
-- _order = 'order_id desc, sequence'
++ _order = 'id'
you can change it in sale.py but this is not the best way must create a new module to overwrite _order.
Thanks that worked for me
the easier way would be to make a change in the form view of sale order or invoice. on the line field name = sequence: replace <field name="sequence" widget="handle"/> with just <field name="sequence"/> Done.
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
importing Purchase Order shown as a RFQ
แก้ไขแล้ว
|
|
2
พ.ค. 25
|
2236 | |
|
3
ธ.ค. 24
|
6528 | ||
|
1
ก.ค. 24
|
3176 | ||
Purchase Product Description Incorrect
แก้ไขแล้ว
|
|
1
มิ.ย. 24
|
2196 | |
|
2
มิ.ย. 24
|
3078 |