Tuesday, December 3, 2024
2 changes · saas-17.4
Resolved issues and error corrections
Attachments added to a Bill of Materials chatter are now correctly added to the Documents app. This restores expected document visibility after a prior refactor changed when attachment details were assigned.
Original PR description
Since the document refactor https://github.com/odoo/odoo/pull/152286, adding an attachment to the BoM chatter did not add it to the document app. It needed to create a document.document which was handled in the create method of ir_attachment if the model was correct. However, the model was changed after the create method, which lead to the document.document not being created. task-id: 4164386 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix restores the correct company address handling on DIN 5008 delivery slips. It prevents duplicate delivery addresses from appearing, helping businesses send clearer and compliant delivery documents.
Original PR description
Commit 1c96b8687d9b6b36eff98644ca084e4693718293 remove the field `l10n_din5008_addresses` but still test its existence in the report. It was replaced by XML template but changed `parter_id.commercial_partner_id` into `partner_id` that lead to a duplication of the delivery address on delivery slips for company following din5008 rules. OPW: 4217638 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr