Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2544 Widoki

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.

Awatar
Odrzuć
Autor

Thank you @Mehjabin.


Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 22
3776
1
mar 25
1636
4
paź 24
1956
0
kwi 24
2125
0
lut 24
1321