- Custom modules: hazard_shopify, hazard_inventory_report, hazard_website - Third-party modules: bi_sql_editor, query_deluxe, sql_request_abstract, l10n_mx_sat_sync_itadmin_ee - Docker setup: Odoo 16 + PostgreSQL 17 - Utility scripts: backup_hazard.sh, update_module.py - Agent configuration: .agents/AGENTS.md - Security: Enterprise modules, credentials, backups and production data excluded via .gitignore
17 lines
425 B
ReStructuredText
17 lines
425 B
ReStructuredText
Inherit the model:
|
|
|
|
.. code-block:: python
|
|
|
|
from odoo import models
|
|
|
|
class MyModel(models.model)
|
|
_name = 'my.model'
|
|
_inherit = ['sql.request.mixin']
|
|
|
|
_sql_request_groups_relation = 'my_model_groups_rel'
|
|
|
|
_sql_request_users_relation = 'my_model_users_rel'
|
|
|
|
|
|
See implementations in the modules ``bi_sql_editor`` and ``sql_export``. (same OCA/reporting-engine repository)
|