Skip to Content
Menu
This question has been flagged
1 Atsakyti
2565 Rodiniai

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.

Portretas
Atmesti
Autorius

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 22
3828
1
kov. 25
1684
4
spal. 24
1987
0
bal. 24
2192
0
vas. 24
1353