Skip to content

isOdooControllerSource

reference
1 min readUpdated

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

ts
function isOdooControllerSource(source: string): boolean

Parameters

NameType
sourcestring

Returns: boolean

Was this page helpful?

Download as PDF