[MIG] l10n_eu_adr_report: Migration to 18.0 - #287
Open
StephaneMangin wants to merge 12 commits into
Open
Conversation
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: community-data-files-13.0/community-data-files-13.0-l10n_eu_adr_report Translate-URL: https://translation.odoo-community.org/projects/community-data-files-13-0/community-data-files-13-0-l10n_eu_adr_report/
StephaneMangin
force-pushed
the
18.0-mig-l10n_eu_adr_report
branch
6 times, most recently
from
August 4, 2026 21:13
4ec978e to
2a27af0
Compare
StephaneMangin
force-pushed
the
18.0-mig-l10n_eu_adr_report
branch
5 times, most recently
from
August 6, 2026 09:11
c7ff364 to
b3f2df2
Compare
StephaneMangin
force-pushed
the
18.0-mig-l10n_eu_adr_report
branch
3 times, most recently
from
August 6, 2026 09:37
e4f5ec6 to
c4c8568
Compare
StephaneMangin
marked this pull request as ready for review
August 6, 2026 09:44
StephaneMangin
force-pushed
the
18.0-mig-l10n_eu_adr_report
branch
from
August 10, 2026 09:38
c4c8568 to
5a28b4a
Compare
The dangerous.goods.handler wizard was dropped from l10n_eu_product_adr, so it is brought into this module, which is its only consumer, and mapped onto the current ADR data model. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
StephaneMangin
force-pushed
the
18.0-mig-l10n_eu_adr_report
branch
from
August 10, 2026 09:39
5a28b4a to
5aa9fbe
Compare
Contributor
|
Your description seems to indicate this is a new contribution, but the commit history points to a migration. So which one is it? |
rrebollo
reviewed
Aug 31, 2026
| data = data or {} | ||
| docs = self.env["stock.picking"].browse(docids) | ||
| wizard = self.env["dangerous.goods.handler"].create( | ||
| {"picking_ids": [(6, 0, docs.ids)]} |
| lines = wizard.prepare_DG_data() | ||
| docargs = { | ||
| "doc_ids": docs.ids, | ||
| "doc_model": "stock.picking", |
Contributor
There was a problem hiding this comment.
Suggested change
| "doc_model": "stock.picking", | |
| "doc_model": docs._name, |
| <tr> | ||
| <td /> | ||
| <td class="wide-col"><span t-esc="line['class']" /> ( ) </td> | ||
| <td t-esc="line['qty_amount']" /> |
Contributor
There was a problem hiding this comment.
Suggested change
| <td t-esc="line['qty_amount']" /> | |
| <td t-out="line['qty_amount']" /> |
| <td /> | ||
| <td class="wide-col"><span t-esc="line['class']" /> ( ) </td> | ||
| <td t-esc="line['qty_amount']" /> | ||
| <td t-esc="line['product_weight']" /> |
Contributor
There was a problem hiding this comment.
Suggested change
| <td t-esc="line['product_weight']" /> | |
| <td t-out="line['product_weight']" /> |
| # Copyright 2020 Iryna Vyshnevska (Camptocamp) | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) | ||
|
|
||
| from itertools import groupby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the initial implementation of the
l10n_eu_adr_reportmodule, which provides ADR-compliant reporting for dangerous goods in Odoo delivery orders.Here is an output of this report :
DangerousDeliveryReport.pdf