Repository
OCA/l10n-switzerland · module folder · Try on Runboat
Module version
1.0.0
Category
Product
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-switzerland
Last tracking update
2026-08-07 08:42:45
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Duy (Đỗ Anh), OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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
HTTP endpoints (0)

No HTTP endpoints found for this module.

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 } }

Loading…