Skip to content

Conversation

@antonrom1
Copy link
Contributor

The DIN 5008 layout was not properly addressing reports on invoices and delivery slips. On invoices/pro-forma, the reports were not addressed to the correct partners (commercial partner instead of invoice partner). In the delivery slips the reports were not addressed to the delivery partner. This led to functionally and legally incorrect reports.

task-4089521

@robodoo
Copy link
Contributor

robodoo commented Oct 15, 2024

Pull request status dashboard

@C3POdoo C3POdoo added the RD research & development, internal work label Oct 15, 2024
@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch 7 times, most recently from a4387de to 4a5f3e1 Compare October 16, 2024 10:10
@antonrom1 antonrom1 requested a review from malb-odoo October 16, 2024 11:21
@antonrom1 antonrom1 marked this pull request as ready for review October 16, 2024 11:40
@C3POdoo C3POdoo requested a review from a team October 16, 2024 11:42
@antonrom1 antonrom1 marked this pull request as draft October 16, 2024 12:39
@antonrom1 antonrom1 changed the title [IMP] l10n_din5008: fix incorrect din5008 report addressing [IMP] l10n_din5008{*}: fix incorrect din5008 report addressing Oct 16, 2024
@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch from 4a5f3e1 to d768a18 Compare October 16, 2024 12:46
@antonrom1 antonrom1 marked this pull request as ready for review October 18, 2024 13:24
Copy link
Contributor

@malb-odoo malb-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanksss for the PR ! Small comments and will be soon good to go 😄 And damnnn there is not mad conflict there ahaha

@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch from d768a18 to 518a815 Compare November 18, 2024 09:37
@C3POdoo C3POdoo requested review from a team and Whenrow and removed request for a team November 18, 2024 09:40
@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch from 518a815 to d4c68f3 Compare November 18, 2024 10:29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this is breaking the stable, we will do the simple fix you did last time since in 17.4 the code change it will be there for only 17.0 and 17.2 so i think it's ok, sorryyyyy 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's a small refactoring I could do on master

@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch 3 times, most recently from f452235 to 1116955 Compare November 19, 2024 12:56
@antonrom1 antonrom1 requested a review from malb-odoo November 19, 2024 13:00
Copy link
Contributor

@malb-odoo malb-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for this 😄
cc: @qdp-odoo

Copy link
Contributor

@qdp-odoo qdp-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change your commit message to follow our guidelines ([FIX] l10n_din5008...)

I raised a question about the way you're pushing your changes into the report: it's not the way I would have done it. Can you argue on why you did it that way and maybe show the added value, if any?

thanks Anton

</xpath>
</template>
</data>
</odoo>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see what that does exactly... 🤔 what's the goal? and why does it have to be done by inheriting the template here, rather than directly in din5008_report.xml ?

<odoo>
<data>
<template id="report_repairorder" inherit_id="repair.report_repairorder">
<xpath expr="//t[@t-call='web.external_layout']" position="inside">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why inserting inside of the t-call instead of inheriting the report template to add your stuff? 🤔

I'm not sure which is best, but we should keep it consistent, I suppose...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might not be as relevant in this context, but it was mainly to stay consistent with the 17.4 din5008 refactor #160689

For example this one

I can move it to the report template

@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch from 1116955 to 74fc88b Compare November 21, 2024 14:40
@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch from 74fc88b to ebd029a Compare November 21, 2024 15:50
@antonrom1 antonrom1 changed the title [IMP] l10n_din5008{*}: fix incorrect din5008 report addressing [FIX] l10n_din5008{*}: fix incorrect din5008 report addressing Nov 21, 2024
@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch from ebd029a to 6816033 Compare November 21, 2024 15:57
@antonrom1 antonrom1 requested a review from qdp-odoo November 22, 2024 08:10
Copy link
Contributor

@qdp-odoo qdp-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be correct, but I don't get why we'd want something different for the proforma invoices?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it different for proforma? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to this spec proforma's main address has to be the invoicing address, and the commercial partner has to be displayed as the beneficiary and not for saleorders. I didn't dig deeper into why

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, for proforma invoices the main address should be the invoicing address and for saleorder reports it should be the commercial address of the partner according to these specs

@qdp-odoo
Copy link
Contributor

@antonrom1 oh yeah, totally makes senses... proforma has to be aligned with invoice report, not the quotation one 👍

@odoo/rd-runbot can we have an exception for the different views added in stable please? 🙏

@Williambraecky
Copy link
Contributor

Upgrade exception #415 added.

Waiting the forward-port of this pr, the exception will be applied on all builds, and create an inconsistent state for migrations.
Please forward port this asap up to master without change. Exception should be forward-ported before the end of the week.

PRs adding fields/models should be merged at the beginning of the week and all the forward ports should be merged in the same week.

If you need to apply any change before it reaches master, please notify runbot team.

Details:

view:l10n_din5008_repair.external_layout_din5008_repairorder
view:l10n_din5008_sale.external_layout_din5008_saleorder
view:l10n_din5008_stock.external_layout_din5008_deliveryslip
view:l10n_din5008.external_layout_din5008_account_move

cc @KangOl @nseinlet @aj-fuentes

The DIN 5008 layout was not properly addressing reports on invoices and delivery slips. On invoices/pro-forma, the reports were not addressed to the correct partners (commercial partner instead of invoice partner). In the delivery slips the reports were not addressed to the delivery partner. This led to functionally and legally incorrect reports.

task-4089521
@antonrom1 antonrom1 force-pushed the 17.0-din5008-layout-improvements-roan branch from 6816033 to 915ad26 Compare December 4, 2024 10:49
@antonrom1 antonrom1 requested a review from qdp-odoo December 4, 2024 12:49
@qdp-odoo
Copy link
Contributor

qdp-odoo commented Dec 4, 2024

@robodoo r+

robodoo pushed a commit that referenced this pull request Dec 4, 2024
The DIN 5008 layout was not properly addressing reports on invoices and delivery slips. On invoices/pro-forma, the reports were not addressed to the correct partners (commercial partner instead of invoice partner). In the delivery slips the reports were not addressed to the delivery partner. This led to functionally and legally incorrect reports.

task-4089521

closes #183775

Signed-off-by: Quentin De Paoli (qdp) <qdp@odoo.com>
@robodoo robodoo closed this Dec 4, 2024
@fw-bot fw-bot deleted the 17.0-din5008-layout-improvements-roan branch December 18, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants