Skip to Content
Menú
This question has been flagged
1 Respondre
2535 Vistes

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
Descartar
Autor

Thank you @Mehjabin.


Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 22
3759
1
de març 25
1627
4
d’oct. 24
1902
0
d’abr. 24
2099
0
de febr. 24
1312