Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2632 Weergaven

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
Annuleer
Auteur

Thank you @Mehjabin.


Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 22
4128
1
mrt. 25
1926
4
okt. 24
2176
0
apr. 24
2421
0
feb. 24
1498