Script not allowed

When i try execute my scripts in my custom app files this show “Not permitted”.
Traceback:

  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 72, in is_whitelisted
    raise frappe.PermissionError('Not Allowed, {0}'.format(method))
PermissionError: Not Allowed, <module 'financeiro.financeiro.doctype.titulos.titulos' from '/home/frappe/frappe-bench/apps/financeiro/financeiro/financeiro/doctype/titulos/titulos.py'>

It looks like you don’t have the script whitelisted. add:

frappe.whitelist()

In front of the def titulos code

My code is whitelisted

https://github.com/leonardoaugt/financeiro/blob/master/financeiro/financeiro/doctype/titulos/titulos.py

Tried “allow_guest = True” too
@Ben_Cornwell_Mott

https://github.com/leonardoaugt/financeiro/blob/master/financeiro/financeiro/doctype/titulos/titulos.py#L12

Has missing the name of function in method(i don’t know why this desappeared today…) but, can close topic now.

https://github.com/leonardoaugt/financeiro/blob/master/financeiro/financeiro/doctype/titulos/titulos.js#L18