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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1792
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jul 22
|
2609 | ||
|
0
Dec 24
|
44 | ||
|
4
Oct 24
|
831 | ||
|
0
Apr 24
|
719 | ||
|
0
Feb 24
|
287 |
Thank you @Mehjabin.