-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
[12.0] ADD account_invoice_default_code_column #1601
[12.0] ADD account_invoice_default_code_column #1601
Conversation
…voice report, to distinguish between the 'product code' column and the 'description' column of each invoice line
2d693de
to
8997cc3
Compare
for line in self: | ||
line.name_without_default_code = line.name | ||
if line.product_id and line.product_id.default_code: | ||
line.name_without_default_code = line.name_without_default_code.replace( |
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.
very "habile"
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.
Code review and works in production ! Clarifies reading and managing products in PDF
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 05141ac. Thanks a lot for contributing to OCA. ❤️ |
In odoo, user has the possibility to rename the "description" field of an invoice line, and at the same time delete / alter the product code.
But in some situation, removing the product code is a problem, because it should be present on the invoice report.
This module avoids this problem.
For that purpose, this module adds a new dedicated column "Default code"
in the account invoice report.
As a side effect, it improves readability of the invoices.
Without this module
With this module