Skip to content

[IMP] l10_fr_account: show delivery date on invoice #4815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 18.0-rd-accounting-onboarding-malb
Choose a base branch
from

Conversation

mograby3500
Copy link

New legislation in France to add delivery date on invoice.

task-4908900

@robodoo
Copy link

robodoo commented Jul 3, 2025

This PR targets the un-managed branch odoo-dev/odoo:18.0-rd-accounting-onboarding-malb, it needs to be retargeted before it can be merged.

@mograby3500 mograby3500 force-pushed the 18.0-rd-accounting-onboarding-l10_fr-show-delivery-date-on-invoice-alah branch from 5252ace to 7ae4bdf Compare July 3, 2025 11:51
@mograby3500 mograby3500 changed the title [IMP] l10_fr_account: show deliver date on invoice [IMP] l10_fr_account: show delivery date on invoice Jul 3, 2025
Copy link

@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.

almost perfect 😄

Comment on lines 23 to 28
@api.depends('invoice_date', 'l10n_fr_is_company_french', 'delivery_date')
def _compute_delivery_date(self):
super()._compute_delivery_date()
for move in self:
if move.invoice_date and move.l10n_fr_is_company_french and not move.delivery_date:
move.delivery_date = move.invoice_date

Choose a reason for hiding this comment

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

Not needed in the scope of this task, only _compute_show_delivery_date and post are enough 😄

Copy link
Author

Choose a reason for hiding this comment

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

Deleted, thanks for the review!

@mograby3500 mograby3500 force-pushed the 18.0-rd-accounting-onboarding-l10_fr-show-delivery-date-on-invoice-alah branch from 7ae4bdf to a0a3b6b Compare July 7, 2025 09:16

def _post(self, soft=True):
for move in self:
if move.l10n_fr_is_company_french and move.is_sale_document() and not move.delivery_date:

Choose a reason for hiding this comment

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

if you use the field show_delivery_date you don't need to check that again 😄

Copy link
Author

Choose a reason for hiding this comment

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

Done.

New legislation in France to add delivery date on invoice.

task-4908900
@mograby3500 mograby3500 force-pushed the 18.0-rd-accounting-onboarding-l10_fr-show-delivery-date-on-invoice-alah branch from a0a3b6b to 77b7f8c Compare July 7, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants