-
Notifications
You must be signed in to change notification settings - Fork 117
[IMP] l10n_fr_account: delivery date added on french invoices #4859
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] l10n_fr_account: delivery date added on french invoices #4859
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. |
malb-odoo
left a comment
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.
Nicee ! Good job on this, commit message needs a bit more explanation though 😄
malb-odoo
left a comment
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.
Now to go a bit further, what if the user don't put any information in the delivery date. We might need to put a value when posting the move don't you think 😄
Check the other localisation they have done it 👀
237dc60 to
975df40
Compare
|
When confirming the move, what if the delivery date is empty ? Then you would have nothing in the delivery date which is a bit weird, we should at least put the invoice date in the delivery date when posting the move, check the other localisation that have the same system 😄 |
975df40 to
722ba52
Compare
|
|
||
| @api.depends('country_code', 'move_type') | ||
| def _compute_show_delivery_date(self): | ||
| super()._compute_show_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.
Also when doing extension of compute it's nice to have a comment like # EXTEND 'account'
if you look at the code you should be able to find many example
| for move in self: | ||
| if move.l10_fr_is_company_french and move.is_sale_document() and not move.delivery_date: | ||
| move.delivery_date = move.invoice_date or fields.Date.context_today(self) | ||
| return super()._post(soft) |
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.
Care with the super that if in the execution the delivery date is modified then the behavior would be different so i would put the super at the beginning of the function to be extra safe
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.
Didn't understand this, if I put super at the beginning what would the function return ?
as a new legislation in french required the addition of delivery date on invoice s we have to modify the localisation for french companies to always have the deliver y date included in the invoices to comply with the legislation. task : 5231338
f027b78 to
c05ce18
Compare
[IMP] l10n_fr_account: delivery date added on french invoices
as a new legislation in french required the addition of delivery date on invoices we have to modify the localisation for french companies to always have the delivery date included in the invoices to comply with the legislation.
task : [l10n_fr] Add delivery date on invoice