Kind: Function
Source: atloria-monorepo/libs/parser-core/src/parsers/backend/odoo.parser.ts
Whether a Python file declares Odoo routes.
Both halves are load-bearing. A @route( alone appears in Flask and in plenty of home-grown
decorators; an Odoo import alone is on every model file in an addon. Only together do they mean
"this file registers URLs with Odoo", which is exactly the set of files this parser should claim.
Signature
tsfunction isOdooControllerSource(source: string): boolean
Parameters
| Name | Type |
|---|---|
source | string |
Returns: boolean
Was this page helpful?