Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2585 Представления

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
3858
1
мар. 25
1694
4
окт. 24
2004
0
апр. 24
2201
0
февр. 24
1360