Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1577 มุมมอง

I'm new in Odoo. I'm using Odoo 15 EE.

I tried add widget handle for field sequence in Journal Entries but it's not working.

Any reason why by default Odoo hide this field?

As by default this field is invisible.

I tried add in custom view: ( I removed the angle brackets because can't show it in here.)

xpath expr="//field[@name='line_ids']/tree/field[@name='account_id']" position="before"

  ​field name="sequence" widget="handle"

/xpath

 

And for _order in my custom.py 

class AccountMoveLine(models.Model):

​ _inherit = 'account.move.line'

	​ _order = 'sequence asc' 


But it's not show like any handle widget, just showing field sequence with number and can not be rearrange using mouse.

Any help is very appreciate.

Thank you


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

The post in Reddit from WilliamAndre give me an idea to solve it.

So this question is solved

Thank you

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
i cant print journal entry แก้ไขแล้ว
3
ก.ค. 25
2317
1
ก.ย. 24
2621
1
มิ.ย. 24
1487
2
ม.ค. 17
11423
How to add a field from SO to invoice ? แก้ไขแล้ว
1
พ.ค. 22
5421