Skip to content
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

Conversation

legalsylvain
Copy link
Contributor

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

1_without_module

With this module

2_with_module

…voice report, to distinguish between the 'product code' column and the 'description' column of each invoice line
@legalsylvain legalsylvain force-pushed the 12.0-ADD-account_invoice_default_code_column branch from 2d693de to 8997cc3 Compare November 10, 2023 14:19
@legalsylvain legalsylvain changed the title 12.0 add account invoice default code column [12.0] ADD account_invoice_default_code_column Jan 18, 2024
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(

Choose a reason for hiding this comment

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

very "habile"

Copy link

@quentinDupont quentinDupont left a 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

@rvalyi
Copy link
Member

rvalyi commented Jan 27, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 12.0-ocabot-merge-pr-1601-by-rvalyi-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 803332d into OCA:12.0 Jan 27, 2024
2 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 05141ac. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants