Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: US Sales Tax Engine

Entity: us.tax.import.batch

Compute Method: _compute_name

View 18.0
Inputs Method Outputs
  • started_at
  • state_id
  • state_id.code
  • source
- for rec in self:
-             date_str = rec.started_at.strftime("%Y-%m-%d") if rec.started_at else ""
-             state = rec.state_id.code if rec.state_id else "ALL"
-             rec.name = f"{rec.source} | {state} | {date_str}"
  • name

Back to entity