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

I have made my custom button in journal entries form of odoo 15 and i want to generate sequence with that button instead of post button please guide me.

อวตาร
ละทิ้ง
ผู้เขียน

Thank you @Mehjabin.


คำตอบที่ดีที่สุด

Hi Danish,

name = fields.Char(string='Number', copy=False, compute='_compute_name', readonly=False, store=True, index=True, tracking=True)

This is the field where the sequence is generating in journal entry, and is using the compute function "_compute_name" for this. You can modify this function as you need and try

Hope this will help you

Thank You

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 22
3896
1
มี.ค. 25
1727
4
ต.ค. 24
2019
0
เม.ย. 24
2245
0
ก.พ. 24
1396