Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2637 Visualizações

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

Thank you @Mehjabin.


Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jul. 22
4131
1
mar. 25
1927
4
out. 24
2176
0
abr. 24
2424
0
fev. 24
1501