Install
$ agentstack add skill-unclecatvn-agent-skills-dtg-base ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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](#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 | | [aftercommit](#aftercommit-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 |
Main Guide
File: odoo-18-dtg-base-guide.md
When to use this skill
- Working with DTG Odoo codebase
- Need date/period calculations
- Timezone conversions
- Barcode validation
- Batch processing large recordsets
- Vietnamese text processing
- File zipping utilities
DTGBase Abstract Model
Inherit from DTGBase
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')
File Structure
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
Utilities Overview
Date & Period Utilities
find_first_date_of_period(date, period_type)- Get first date of periodfind_last_date_of_period(date, period_type)- Get last date of periodperiod_iter(start_date, end_date, period_type)- Iterate over periods
Timezone Conversion
convert_local_to_utc(local_dt, tz=None)- Convert local datetime to UTCconvert_utc_to_local(utc_dt, tz=None)- Convert UTC datetime to local
Barcode Utilities
barcode_exists(barcode, exclude_id=0)- Check if barcode already existsget_ean13 barcode)- Generate/check EAN13 barcode
Batch Processing
splittor(limit=None)- Split recordset into batches for processing
String & Text Utilities
strip_accents(text)- Remove Vietnamese accents_no_accent_vietnamese(text)- Convert Vietnamese text
File Utilities
zip_dir(source_dir, output_file)- Zip a directoryzip_dirs(dirs, output_file)- Zip multiple directories_get_file_size(file_path)- Get human-readable file size
Number Utilities
round_decimal(value, decimal_places)- Round to specific decimal places
For detailed documentation, see [odoo-18-dtg-base-guide.md](./odoo-18-dtg-base-guide.md)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: unclecatvn
- Source: unclecatvn/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.