Hi everyone!
I'm having a problem with several of our cron when they run on a kubernetes environment. Most of the time, the cron works fine and produces the expected results, but from time to time, i have this kind of errors:
ValueError: <class 'AttributeError'>: "'sale.order' object has no attribute 'cron_generate_invoice'" while evaluating
'model.cron_generate_invoice()'
I know that this issue appear when the method does not exist on the model, or it might also appear if the dependency to the module in which it is defined is not correctly set. But in my case, the cron and the method are defined in the same module, and the cron works most of the time, so i don't think its a code related issue.
Has anyone already faced this kind of errors? It really is a problem for us, since multiple crons are used to generated invoices, or things that will need to be invoiced later. So of course, the invoices are wrong or were simply never created :/
Thanks a lot!