跳至内容
菜单
此问题已终结

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

形象
丢弃
相关帖文 回复 查看 活动
1
7月 22
3746
1
3月 25
1623
4
10月 24
1898
0
4月 24
2081
0
2月 24
1301