odoo-16.0
Odoo 16 development reference for Python models and ORM (search, domain, read_group, compute fields), XML/CSV data and views,…
Complete reference for DTG Base module utilities and helpers. DTGBase is an abstract model providing common utility methods for date/time handling, barcode generation, timezone conversion, file operations, and more.
$ npx -y skills add unclecatvn/agent-skills --skill dtg-base --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dtg-baseContext preview
The summary Claude sees to decide when to auto-load this skill.
Complete reference for DTG Base module utilities and helpers. DTGBase is an abstract model providing common utility methods for date/time handling, barcode generation, timezone conversion, file operations, and more.
name: dtg-base description: Complete reference for DTG Base module utilities and helpers. DTGBase is an abstract model providing common utility methods for date/time handling, barcode generation, timezone conversion, file operations, and more. globs: "**/addons_customs/erp/**/*.py" license: MIT author: UncleCat version: 1.0.0
Complete reference for DTG Base module utilities and helpers in Odoo 18.
DTG Base is a custom abstract model (`dtg_base.DTGBase`) that provides common utility methods for Odoo development. It's designed to be inherited by other models to gain access to helpful utilities.
| Utility | Description | |---------|-------------| | [Date & Period](#date--period-utilities) | Find first/last date of period, period iteration | | [Timezone](#timezone-conversion) | Convert local to UTC, UTC to local | | [Barcode](#barcode-utilities) | Check barcode exists, generate EAN13 | | [Batch Processing](#batch-processing) | Split large recordsets into batches | | [after_commit](#after_commit-decorator) | Execute code after transaction commit | | [Vietnamese Text](#string--text-utilities) | Strip accents, convert to non-accent | | [File Utilities](#file-utilities) | Zip directories, get file size | | [Number Utilities](#number-utilities) | Round to decimal places |
---
**File**: `odoo-18-dtg-base-guide.md`
---
**Location**: `addons_customs/erp/dtg_base/models/dtg_base.py`
from odoo import models
class MyModel(models.Model):
_name = 'my.model'
_inherit = ['dtg_base.dtg_base']
def my_method(self):
# Now you have access to all DTGBase utilities
first_date = self.find_first_date_of_period('2024-01-15', 'month')
utc_date = self.convert_local_to_utc('2024-01-15 10:00:00')---
agent-skills/skills/dtg-base/ ├── SKILL.md # This file - master index ├── odoo-18-dtg-base-guide.md # Complete DTG Base utilities reference └── README.md # Skill overview
---
---
**For detailed documentation, see [odoo-18-dtg-base-guide.md](./odoo-18-dtg-base-guide.md)**
Reference packs, a trace-first development workflow, and specialized reviewers that make AI coding assistants work from your real Odoo source instead of from memory. Odoo 16–19.
Odoo 16 development reference for Python models and ORM (search, domain, read_group, compute fields), XML/CSV data and views,…
Odoo 17 development reference for Python models and ORM (search, domain, read_group, compute fields), XML/CSV data and views,…
Odoo 18 development reference for Python models and ORM (search, domain, read_group, compute fields), XML/CSV data and views,…
Odoo 19 development knowledge base with 18 specialized guides covering Actions (ir.actions.*, cron jobs, server actions),…
Guides Odoo-style commit creation following official Odoo git guidelines. Drafts `[TAG] module: short description` messages,…
Mandatory pre-code gate and definition-of-done for ANY Odoo change (add field, override method, inherit view/xpath, OWL/JS patch,…