ADR Products Swiss Report

l10n_ch_adr_report
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/18.0/l10n_ch_adr_report
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Duy (Đỗ Anh)
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - l10n_eu_product_adr_dangerous_goods
    - l10n_eu_product_adr
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - delivery
    - sale
    - sales_team
    - account_payment
    - account
    - onboarding
    - analytic
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Report for delivery of dangerous goods. We assume that product can be
defined on product and it will be the only dangerous good/(waste) on
product

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
report_dg_ch_document report_dg_ch_document ir.ui.view qweb New
report_dg_l10n_ch report_dg_l10n_ch ir.ui.view qweb New
report_dg_swiss_footer report_dg_swiss_footer ir.ui.view qweb New
report_dg_swiss_partner_block report_dg_swiss_partner_block ir.ui.view qweb New
report_dg_swiss_product_block report_dg_swiss_product_block ir.ui.view qweb New
Models touched (2)

New fields (1)
  • adr_report_class_display_name Char
    compute='_compute_adr_report_class_display_name' args: 'Name, as required for the DG report'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • prepare_DG_data(self, picking_ids)
    Result is lines for dangerous products :return: dict {'dg_lines':[{ 'product': product.product(40,), 'class': 'UN UN Number, ... 'packaging_type': adr_packing_instruction_ids(6,), 'qty_amount': 100.0, 'product_weight': 10.0, 'column_index': '3', 'dangerous_amount': 1000.0 }], 'total_section':{ 'total_units': {'0': 0, '1': 0, '2': 1000.0, '3': 0, '4': 0}, 'factor': {'0': 0.0, '1': 50.0, '2': 3.0, '3': 1.0, '4': 0.0}, 'mass_points': {'0': 0.0, '1': 0.0, '2': 3000.0, '3': 0.0, '4': 0.0}, 'total_points': 3000.0, 'warn': True } }
REPOSITORY
REPOSITORYOCA/l10n-switzerland
GIT
GIThttps://github.com/OCA/l10n-switzerland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-switzerland/tree/14.0/l10n_ch_adr_report
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSThierry Ducrest, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-switzerland
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - l10n_eu_product_adr_dangerous_goods
    - l10n_eu_product_adr
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - delivery
    - sale_stock
    - sale
    - sales_team
    - payment
    - account
    - analytic
    - utm
    - stock_account
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
assets_common l10n_ch_adr_report ir.ui.view qweb Inherits web.report_assets_common
report_dg_ch_document report_dg_ch_document ir.ui.view qweb New
report_dg_l10n_ch report_dg_l10n_ch ir.ui.view qweb New
report_dg_swiss_footer report_dg_swiss_footer ir.ui.view qweb New
report_dg_swiss_partner_block report_dg_swiss_partner_block ir.ui.view qweb New
report_dg_swiss_product_block report_dg_swiss_product_block ir.ui.view qweb New
Models touched (2)

New fields (1)
  • adr_report_class_display_name Char
    compute='_compute_adr_report_class_display_name' args: 'Name, as required for the DG report'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • prepare_DG_data(self, picking_ids)
    Result is lines for dangerous products :return: dict {'dg_lines':[{ 'product': product.product(40,), 'class': 'UN UN Number, ... 'packaging_type': adr_packing_instruction_ids(6,), 'qty_amount': 100.0, 'product_weight': 10.0, 'column_index': '3', 'dangerous_amount': 1000.0 }], 'total_section':{ 'total_units': {'0': 0, '1': 0, '2': 1000.0, '3': 0, '4': 0}, 'factor': {'0': 0.0, '1': 50.0, '2': 3.0, '3': 1.0, '4': 0.0}, 'mass_points': {'0': 0.0, '1': 0.0, '2': 3000.0, '3': 0.0, '4': 0.0}, 'total_points': 3000.0, 'warn': True } }