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

[16][MIG] purchase_invoicing_no_zero_line #1602

Merged

Conversation

florian-dacosta
Copy link

@pedrobaeza
Copy link
Member

Isn't this now the standard behavior?

@florian-dacosta
Copy link
Author

florian-dacosta commented Nov 10, 2023

Isn't this now the standard behavior?

From the purchase order, with the button "CREATE BILL", it is, there are no 0 quantity lines.
But when you create a supplier bill and add the PO number in the "Auto-Complete" field, it still add 0 quantity lines in v16.
Here : https://github.com/odoo/odoo/blob/17.0/addons/purchase/models/account_invoice.py#L65 There is no mechanism to avoid these 0 lines.

Copy link

@SirAionTech SirAionTech left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!
I have tried it locally (runboat is down), reviewed the commits and the code.

Could you please squash the commit history according to https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate?
Without bots' commits the history is basically a handful of commits.

@florian-dacosta florian-dacosta force-pushed the 16.0-mig-purchase_invoicing_no_zero_line branch from 53025b1 to 39e5e62 Compare November 27, 2023 16:16
@florian-dacosta
Copy link
Author

Thanks for the PR! I have tried it locally (runboat is down), reviewed the commits and the code.

Could you please squash the commit history according to https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate? Without bots' commits the history is basically a handful of commits.

Thanks for the review. I believe I have attended all comments, please feel free to update your review

Copy link

@SirAionTech SirAionTech left a comment

Choose a reason for hiding this comment

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

Translation commits have been squashed with other commits, so now the translators do not appear anymore in the commit history.
The translation commits should only have been squashed with one another according to https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate, could you please check?

@florian-dacosta florian-dacosta force-pushed the 16.0-mig-purchase_invoicing_no_zero_line branch from 39e5e62 to 8bbc624 Compare November 28, 2023 11:18
@florian-dacosta
Copy link
Author

could you please check?

Oops, nice catch, I was not seeing the authors in my rebase, I've changed this and made it once again, it should be good now. There was only 1 no-bot translation author (and 2 commit squashed together)

Copy link
Member

@clementmbr clementmbr left a comment

Choose a reason for hiding this comment

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

Only code review but LGTM!

@bguillot
Copy link

/ocabot merge nobump

@bguillot
Copy link

thanks

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1602-by-bguillot-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f69e45f into OCA:16.0 Jan 24, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at cffbc52. 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.

9 participants