Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2589 Переглядів

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.

Аватар
Відмінити
Автор

Thank you @Mehjabin.


Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лип. 22
3877
1
бер. 25
1716
4
жовт. 24
2014
0
квіт. 24
2231
0
лют. 24
1382