ADR Products Swiss Report
l10n_ch_adr_report · OCA/l10n-switzerland
Health
54/100
fair
-
Security25/25No findings
-
Activity12/25Last human commit 21 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
2 models
5 views
0 HTTP endpoints
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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_nameCharcompute='_compute_adr_report_class_display_name' args: 'Name, as required for the DG report'
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…