unclecatvn/agent-skills / skills/dtg-base
dtg-base
VerifiedComplete 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.
| File | Kind | Size |
|---|---|---|
| CLAUDE.md | markdown | 3.3 KB |
| README.md | markdown | 1.4 KB |
| SKILL.md | skill md | 3.5 KB |
| odoo-18-dtg-base-guide.md | markdown | 20.7 KB |
README.md
View on GitHub# DTG Base Skill
Complete reference for DTG Base module utilities and helpers in Odoo 18.
## Overview
DTG Base is a custom abstract model that provides common utility methods for Odoo development. This skill contains comprehensive documentation for all DTGBase utilities.
## What's Included
- **Date & Period Utilities** - Find first/last dates, iterate over periods
- **Timezone Conversion** - Convert between local time and UTC
- **Barcode Utilities** - Validate and generate EAN13 barcodes
- **Batch Processing** - Split large recordsets into manageable batches
- **after_commit Decorator** - Execute code after transaction commit
- **Vietnamese Text** - Strip accents for search/comparison
- **File Utilities** - Zip directories, get file sizes
- **Number Utilities** - Round to specific decimal places
## Files
| File | Description |
|------|-------------|
| `SKILL.md` | Master index and quick reference |
| `CLAUDE.md` | AI agent guidance |
| `odoo-18-dtg-base-guide.md` | Complete DTG Base utilities reference |
## Quick Start
```python
class MyModel(models.Model):
_name = 'my.model'
_inherit = ['dtg_base.dtg_base']
def my_method(self):
# Use 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')
```
## Links
- [Full Documentation](./odoo-18-dtg-base-guide.md)
- [SKILL.md](./SKILL.md) - Quick reference
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |