Skip to content

[19.0][MIG] account_invoice_margin: Migration to 19.0#254

Open
Debora7 wants to merge 64 commits into
OCA:19.0from
dakai-soft:19.0-mig-account-invoice-margin
Open

[19.0][MIG] account_invoice_margin: Migration to 19.0#254
Debora7 wants to merge 64 commits into
OCA:19.0from
dakai-soft:19.0-mig-account-invoice-margin

Conversation

@Debora7
Copy link
Copy Markdown

@Debora7 Debora7 commented Jan 8, 2026

No description provided.

sergio-teruel and others added 30 commits January 8, 2026 09:33
[UPD] README.rst

[UPD] Update account_invoice_margin.pot

Translated using Weblate (Spanish)

Currently translated at 100.0% (7 of 7 strings)

Translation: margin-analysis-11.0/margin-analysis-11.0-account_invoice_margin
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-11-0/margin-analysis-11-0-account_invoice_margin/es/
[FIX] account_invoice_margin: Set purchase_price when user has not set invoice margin security group set
[REF] rename file with the name of the model
[ADD] margins on account.invoice model (and related views)
[ADD] description and screenshot
[FIX] Typo on margin (%) field name
[ADD] fr translation
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: margin-analysis-12.0/margin-analysis-12.0-account_invoice_margin
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-12-0/margin-analysis-12-0-account_invoice_margin/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: margin-analysis-13.0/margin-analysis-13.0-account_invoice_margin
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-13-0/margin-analysis-13-0-account_invoice_margin/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: margin-analysis-13.0/margin-analysis-13.0-account_invoice_margin
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-13-0/margin-analysis-13-0-account_invoice_margin/
Currently translated at 100.0% (9 of 9 strings)

Translation: margin-analysis-13.0/margin-analysis-13.0-account_invoice_margin
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-13-0/margin-analysis-13-0-account_invoice_margin/es/
Comment thread .pylintrc
Copy link
Copy Markdown

@dannyadair dannyadair left a comment

Choose a reason for hiding this comment

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

Please don't remove checks from .pylintrc
It is repo-wide. If checks fail you need to fix the code not remove the test.

If .pylintrc needs to be adjusted it should be in a separate PR, not a module migration.

@alexeirivera87
Copy link
Copy Markdown

Hello @Debora7

There is an error coming from this:

<record id="group_account_invoice_margin_security" model="res.groups"> <field name="name">Show Invoice Margin</field> <field name="privilege_id" ref="base.module_category_hidden" /> <field name="user_ids" eval="[(4, ref('base.user_admin'))]" /> </record>

Could you please check it? thanks

@Alexis-SDK
Copy link
Copy Markdown

Any news here, please?

Other MRs are blocked because of this one

@dannyadair
Copy link
Copy Markdown

dannyadair commented Apr 14, 2026

don't change the repo-wide .pylintrc in a module migration. Especially don't change from v19 down to v18

(see output of pre-commit test "Run precommit" step)

That should have probably failed the test instead of just giving a warning.

@dannyadair
Copy link
Copy Markdown

@Debora7 in practical terms, just don't touch .pylintrc it's already ready for v19 https://github.com/OCA/margin-analysis/blob/19.0/.pylintrc
If you get pre-commit warnings/errors fix them, don't disable checks

@Yusuke1998 Yusuke1998 mentioned this pull request Apr 20, 2026
7 tasks
@Yusuke1998
Copy link
Copy Markdown

In the module's description/information, the paths to the images account_invoice_margin/static/description/account_invoice_tree.png and account_invoice_margin/static/description/account_invoice_form.png still need to be corrected.

@Alexis-SDK
Copy link
Copy Markdown

@Debora7 Could you modify the source code based on Yusuke and Danny's latest comments?

Copy link
Copy Markdown

@stferraro stferraro left a comment

Choose a reason for hiding this comment

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

Could you modify the source code based on Yusuke and Danny's latest comments?

@Debora7 Debora7 closed this May 11, 2026
@Debora7 Debora7 reopened this May 11, 2026
@OCA-git-bot OCA-git-bot added mod:account_invoice_margin Module account_invoice_margin series:19.0 labels May 11, 2026
@Debora7
Copy link
Copy Markdown
Author

Debora7 commented May 11, 2026

I am sorry, I closed the PR by accident. The .pylintrc is exactly line the one from the version 18.0.

Copy link
Copy Markdown

@Yusuke1998 Yusuke1998 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Alexis-SDK
Copy link
Copy Markdown

@stferraro @dannyadair Could you please review the requested changes? The PR seems to be blocked unnecessarily

Copy link
Copy Markdown

@stferraro stferraro left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown

@raulovallet raulovallet left a comment

Choose a reason for hiding this comment

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

LGTM!

@dreispt
Copy link
Copy Markdown
Member

dreispt commented May 22, 2026

@Debora7 You really need to fix the .pylintrc
We shouldn't have any changes to it in the diff.

@Debora7
Copy link
Copy Markdown
Author

Debora7 commented May 22, 2026

@Debora7 You really need to fix the .pylintrc We shouldn't have any changes to it in the diff.

From what I can tell the files .pylintrc are identical compared to the 18.0 version. Can you please tell me exactly what is wrong with it so i can fix it?

@Alexis-SDK
Copy link
Copy Markdown

@Debora7 In the modified files, the .pylint file has also been modified

image

@dannyadair
Copy link
Copy Markdown

dannyadair commented May 22, 2026

From what I can tell the files .pylintrc are identical compared to the 18.0 version

That's the issue @Debora7
The PR is meant to be migrating this module to version 19.
You are adding all its files to the 19.0 branch, that is correct.

The .pylintrc file (on the top level) is already migrated.
It already exists in the 19.0 branch and is not part of this module.
You are currently editing it by making it look like 18.0 again.
Just don't include this file in your changes at all.

git checkout FETCH_HEAD -- .pylintrc

For example

git fetch https://github.com/OCA/margin-analysis.git 19.0 && git checkout FETCH_HEAD -- .pylintrc && git commit --amend --no-edit && git push --force-with-lease

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

Labels

mod:account_invoice_margin Module account_invoice_margin series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.