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

[15.0][mig] account_invoice_blocking #1265

Merged
merged 26 commits into from
Oct 26, 2022

Conversation

JordiBForgeFlow
Copy link
Member

Standard migration

ThomasBinsfeld and others added 25 commits October 17, 2022 07:34
[ADD] account_invoice_blocking
Currently translated at 100.0% (3 of 3 strings)

Translation: account-invoicing-11.0/account-invoicing-11.0-account_invoice_blocking
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-11-0/account-invoicing-11-0-account_invoice_blocking/nl/
Currently translated at 50.0% (2 of 4 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_blocking
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_blocking/hr/
Currently translated at 50.0% (2 of 4 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_blocking
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_blocking/de/
Currently translated at 75.0% (3 of 4 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_blocking
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_blocking/es/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_blocking
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_blocking/pt/
Copy link

@PieterPaulussen PieterPaulussen left a comment

Choose a reason for hiding this comment

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

A few conventions that can be easily applied, otherwise this looks good to me.

from odoo import api, fields, models


class AccountInvoice(models.Model):

Choose a reason for hiding this comment

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

Perhaps a more suitable name would be

Suggested change
class AccountInvoice(models.Model):
class AccountMove(models.Model):

all(line.blocked for line in move_lines) if move_lines else False
)

blocked = fields.Boolean(

Choose a reason for hiding this comment

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

I believe this field is best defined right below the models' private attributes like _inherit instead of at the bottom of the file.

<!-- Copyright 2016 Acsone SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="account_invoice_form_view" model="ir.ui.view">

Choose a reason for hiding this comment

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

Suggested change
<record id="account_invoice_form_view" model="ir.ui.view">
<record id="view_move_form" model="ir.ui.view">

@JordiBForgeFlow JordiBForgeFlow force-pushed the 15.0-mig-account_invoice_blocking branch from 6b79ac3 to 7d79e94 Compare October 26, 2022 05:12
@JordiBForgeFlow
Copy link
Member Author

@PieterPaulussen thanks for your feedback. I have applied your suggestions.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@JordiBForgeFlow
Copy link
Member Author

/ocabot migration account_invoice_blocking
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Oct 26, 2022
@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 15.0-ocabot-merge-pr-1265-by-JordiBForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Oct 26, 2022
56 tasks
@OCA-git-bot OCA-git-bot merged commit b0a3ce0 into OCA:15.0 Oct 26, 2022
@OCA-git-bot
Copy link
Contributor

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

odooNextev pushed a commit to odooNextev/account-invoicing that referenced this pull request Sep 29, 2023
Signed-off-by AaronHForgeFlow
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.