İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2543 Görünümler

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.

Avatar
Vazgeç
Üretici

Thank you @Mehjabin.


En İyi Yanı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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 22
3772
1
Mar 25
1633
4
Eki 24
1944
0
Nis 24
2117
0
Şub 24
1316