Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: MIS Builder
Entity: mis.report.instance.period
Compute Method: _compute_source_aml_model_id
| Inputs | Method | Outputs |
|---|---|---|
|
for record in self:
if record.source == SRC_ACTUALS:
if not record.report_instance_id.report_id:
raise UserError(
- _(
+ self.env._(
"Please select a report template and/or "
"save the report before adding columns."
)
)
# use the default model defined on the report template
record.source_aml_model_id = (
record.report_instance_id.report_id.move_lines_source
)
elif record.source in (SRC_SUMCOL, SRC_CMPCOL):
record.source_aml_model_id = False
elif record.source == SRC_ACTUALS_ALT:
pass
|
|
