-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
[15.0][mig] account_invoice_blocking #1265
Conversation
[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/
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.
A few conventions that can be easily applied, otherwise this looks good to me.
from odoo import api, fields, models | ||
|
||
|
||
class AccountInvoice(models.Model): |
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.
Perhaps a more suitable name would be
class AccountInvoice(models.Model): | |
class AccountMove(models.Model): |
all(line.blocked for line in move_lines) if move_lines else False | ||
) | ||
|
||
blocked = fields.Boolean( |
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.
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"> |
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.
<record id="account_invoice_form_view" model="ir.ui.view"> | |
<record id="view_move_form" model="ir.ui.view"> |
6b79ac3
to
7d79e94
Compare
@PieterPaulussen thanks for your feedback. I have applied your suggestions. |
This PR has the |
/ocabot migration account_invoice_blocking |
On my way to merge this fine PR! |
Congratulations, your PR was merged at fd75499. Thanks a lot for contributing to OCA. ❤️ |
Standard migration