Skip to content

[FIX] account: show delivery date on invoices for French companies #4820

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

shzi-odoo
Copy link

Fixed an issue where the delivery date was not displayed on invoices for companies operating in France when the interface language was set to French.

The delivery date is now properly fixed.

shzi

task-4908851

@robodoo
Copy link

robodoo commented Jul 7, 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.

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.

Small comments here


def _post(self, soft=True):
for move in self:
if move.country_code == 'FR' 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.

use the field show_delivery_date instead of repeating the condition here 👀

# EXTENDS 'account'
super()._compute_show_delivery_date()
for move in self:
if move.country_code == 'FR':

Choose a reason for hiding this comment

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

Instead of doing that, look why we have is_company_french, maybe you could use it instead 😄

@shzi-odoo shzi-odoo force-pushed the 18.0-rd-accounting-onboarding-shzi-invoice-delivery-date-fr branch from 67006a4 to e12b21b Compare July 9, 2025 11:54
Fixed an issue where the delivery date was not displayed on invoices for companies operating in France when the interface language was set to French.

The delivery date is now properly fixed.

task-4908851
@shzi-odoo shzi-odoo force-pushed the 18.0-rd-accounting-onboarding-shzi-invoice-delivery-date-fr branch from e12b21b to 8cfd3d6 Compare July 9, 2025 11:59
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