
Dtg Base
A utility belt for Odoo 18 development that adds common helpers through an abstract model you can inherit from. Covers the boring stuff: date and period calculations, timezone conversions, EAN13 barcode generation, Vietnamese text processing (accent stripping), batch processing for large recordsets, and file zipping. Also includes an after_commit decorator for post-transaction operations. It's the kind of thing you'd build yourself over time anyway, just already done. Most useful if you're working in the DTG codebase or dealing with similar needs around localization, inventory barcodes, or time-sensitive data processing.
- skills.sh installs
- 333
- GitHub stars
- 150
- last updated
- Aug 21, 2026
Install
$ npx -y skills add unclecatvn/agent-skills --skill dtg-base --agent claude-codeInstalls into .claude/skills of the current project.
Files
DTG Base Skill
Complete reference for DTG Base module utilities and helpers in Odoo 18.
What is DTG Base?
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.
Quick Reference
| Utility | Description |
|---|---|
| Date & Period | Find first/last date of period, period iteration |
| Timezone | Convert local to UTC, UTC to local |
| Barcode | Check barcode exists, generate EAN13 |
| Batch Processing | Split large recordsets into batches |
| after_commit | Execute code after transaction commit |
| Vietnamese Text | Strip accents, convert to non-accent |
| File Utilities | Zip directories, get file size |
| Number Utilities | Round to decimal places |
Main Guide
File: odoo-18-dtg-base-guide.md
When to use this skill
Sponsors
Details
- Repository
- github.com/unclecatvn/agent-skills
- Categories
- AI & Agent Building, Marketing & SEO
- First seen
- Jun 3, 2026