Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2546 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you @Mehjabin.


Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 22
3777
1
thg 3 25
1636
4
thg 10 24
1958
0
thg 4 24
2129
0
thg 2 24
1321