My opinion here that this fix is dangerous. The name of the method that use it is "_authorized_reconcile", which means, we check reconcile stuff not state stuff... The problem comes from another place.
May be you should use the "flag" : if not context.get('from_parent_object', False):
Add from_parent_object in context in the wizard that generate the end of year entries and you should not face this trouble anymore.
But please, do not allow state change, this is why we introduce the constraints ;)
Hi,
My opinion here that this fix is dangerous. The name of the method that use it is "_authorized_ reconcile" , which means, we check reconcile stuff not state stuff... The problem comes from another place.
May be you should use the "flag" : if not context. get('from_ parent_ object' , False):
Add from_parent_object in context in the wizard that generate the end of year entries and you should not face this trouble anymore.
But please, do not allow state change, this is why we introduce the constraints ;)
Thanks,
Joël