Skip to content

Instantly share code, notes, and snippets.

View GabbasovDinar's full-sized avatar
🚫
...

Dinar GabbasovDinar

🚫
...
View GitHub Profile
@GabbasovDinar
GabbasovDinar / odoo_project_addons_guidelines.md
Created January 12, 2025 10:50
Guidelines for Creating Project Modules in Odoo

Guidelines for Creating Project Modules in Odoo

To ensure scalability, maintainability, and consistency in Odoo projects, follow these guidelines when creating and organizing project-specific modules.


1. Base Module for the Project

Every project should include a dedicated base module. This module serves as the foundation for automating updates across all project modules. By including this base module as a dependency in all other project modules, you can:

@GabbasovDinar
GabbasovDinar / guidelines.md
Created January 8, 2025 09:00
General Coding Guidelines for Odoo Development

General Coding Guidelines for Odoo Development

This document extends the official coding guidelines of Odoo and the OCA community. In case of conflicting instructions, this document takes precedence. The order of guideline application is as follows:

Odoo GuidelinesOCA Guidelines → This Document

Mandatory Rules

  1. Guidelines as a Decision Basis Always adhere to the established guidelines, processes, and team expertise when making decisions. Aim for solutions and compromises that benefit the project and the team.
@GabbasovDinar
GabbasovDinar / backup_odoo.sh
Created January 5, 2025 08:43
Odoo Database Backup Shell Script
#!/bin/bash
set -e
# Load environment variables
if [ -f .env ]; then
export $(grep -v '^#' .env | xargs)
fi
# Parameters
@GabbasovDinar
GabbasovDinar / commit_tags.md
Last active January 13, 2025 06:50
Commit Message Tags: Best Practices for Clear and Consistent Version Control

Commit Message Tags and Branch Naming Rules

To ensure consistency and clarity in our Git workflow, follow these rules for commit messages and branch names.

Commit Message Tags

When creating commit messages, include an appropriate tag at the beginning of the message.

Name Code Description