When I want to override in a custom module some workflow I usually do this:
@classmethod
@ModelView.button
@Workflow.transition('validated')
def validate_invoice(cls, invoices):
super().validate_invoice(invoices)
# My stuff
But I notice that doing this it also works:
@classmethod
def validate_invoice(cls, invoices):
super().validate_invoice(invoices)
# My stuff
So I’m wondering if it’s needed for something the ModelView and Workflow. Also I want to question about other decorators like @set_employee('quoted_by')
.
Thanks.