dtg-base

Reference DTG Base utilities for Odoo 18 development.

120|56|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/unclecatvn/agent-skills --skill dtg-base
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dtg-base
Source: https://github.com/unclecatvn/agent-skills/tree/main/skills/dtg-base
Command: npx skills add https://github.com/unclecatvn/agent-skills --skill dtg-base

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DTG Base provides a centralized, reusable set of Odoo utilities (date/period handling, timezone conversions, barcode operations, batch processing, and file utilities) to speed up development and ensure consistency across modules.

Core Features & Use Cases

  • Date & Period Utilities: find first/last date of a period, iterate periods.
  • Timezone Conversions: convert between local time and UTC, handle DST.
  • Barcode Utilities: check existence and generate EAN13 barcodes.
  • Batch Processing: process large recordsets in memory-friendly batches.
  • Vietnamese Text Utilities: strip accents for search and normalization.
  • File Utilities: zip directories, compute file sizes, and related helpers.

Quick Start

Load and apply the DTG Base utilities in your Odoo module to start using the shared helpers and reference guide.

Frequently Asked Questions about dtg-base

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle timezone conversions between local time and UTC in Odoo 18?

To handle timezone conversions in Odoo 18, use the convert_local_to_utc utility. It manages local time to UTC transformations and handles DST adjustments for consistent datetime operations across modules.

What is the best way to calculate the first and last dates of a period in Odoo?

The best way to calculate period dates in Odoo is using the find_first_date_of_period utility. It computes period boundaries and allows iteration across date ranges for reporting and scheduling.

How do I process large recordsets in memory-friendly batches in Odoo?

Process large recordsets in Odoo using the batch processing utility. It splits massive datasets into smaller chunks to optimize memory consumption and ensure stable server operations.

Does Odoo have built-in utilities for generating and checking EAN13 barcodes?

Odoo can check and generate EAN13 barcodes using the barcode_exists utility. It verifies barcode existence and generates new EAN13 codes to maintain inventory tracking consistency.

How do I strip accents from Vietnamese text for search normalization in Odoo?

Strip accents from Vietnamese text in Odoo using the dedicated text handling utility. It normalizes Vietnamese characters for accurate search matching and data formatting.

Can I zip directories and compute file sizes directly within an Odoo module?

Zip directories and compute file sizes directly in Odoo using the file utilities. These helpers perform directory compression and file size calculation for efficient file management.