-
Notifications
You must be signed in to change notification settings - Fork 117
[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
base: 18.0-rd-accounting-onboarding-malb
Are you sure you want to change the base?
[IMP] l10_fr_account: show delivery date on invoice #4815
Conversation
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. |
5252ace
to
7ae4bdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost perfect 😄
@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 |
There was a problem hiding this comment.
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 😄
There was a problem hiding this comment.
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!
7ae4bdf
to
a0a3b6b
Compare
|
||
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: |
There was a problem hiding this comment.
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 😄
There was a problem hiding this comment.
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
a0a3b6b
to
77b7f8c
Compare
New legislation in France to add delivery date on invoice.
task-4908900