Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2531 Visualizzazioni

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
Abbandona
Autore

Thank you @Mehjabin.


Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 22
3753
1
mar 25
1627
4
ott 24
1899
0
apr 24
2088
0
feb 24
1304