This question has been flagged
1 Reply
3924 Views

We have 60 users for Inventory,Sales,Accounting and Purchase

Sales and Inventory Sequence is jumping some times. We have done some customization on create method but calling super create method.

How to control sequence skip problem.

Thanks for advance

Avatar
Discard
Best Answer

Hello Tenth Planet,

If this sequence skip issue came after your customization in the create method, maybe it is because of the way you super the create function.

Check that you did your code before or after the super.

If it is after the super, there is a chance for skipping the sequence if something prevents the execution of completion of create method in your new code.

So check this first.

@api.model
def create(self, vals):
# do your customization code here. before you super the function
res = super(YourClass, self).create(vals)
return res

If it is not the problem, you have an opportunity in sequence to make the Implementation as No Gap.


Thanks & Regards

Avinash N K

Avatar
Discard
Author

Thanks for you reply Avinash

We have done customization on before calling the super methd

@api.model

def create(self, vals):

# my customization here only

return super(MyClass, self).create(vals)

Let me check with No Gap setting on sequence master (Most of the sequences we are using No Gap, few of them are standard)