-
Notifications
You must be signed in to change notification settings - Fork 0
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
[17.0][MIG] account_cutoff_base: Migration to 17.0 #1
base: 17.0
Are you sure you want to change the base?
Conversation
Use assert Remove .keys() No space before colon PEP8/Flake8 : getting closer to compliancy
….get('type', '-')
…de domains) On account.account, type must be <> 'view' and <> 'closed'
…a single warning left ! Add translation template files.
The signature of existing methods is preserved.
Extract a new module account_invoice_start_end_dates from account_cutoff_prepaid
Use triple double quotes for docstring Replace <openerp> by <odoo> in XML Remove <data> tags in XML Remove POT files
Currently translated at 100,0% (73 of 73 strings) Translation: account-closing-11.0/account-closing-11.0-account_cutoff_base Translate-URL: https://translation.odoo-community.org/projects/account-closing-11-0/account-closing-11-0-account_cutoff_base/de/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-closing-16.0/account-closing-16.0-account_cutoff_base Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_cutoff_base/
Co-authored-by: Alexis de Lattre <[email protected]>
6234123
to
9a31f79
Compare
@@ -0,0 +1,21 @@ | |||
# Copyright 2023 Akretion France (http://www.akretion.com/) |
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.
@thaolt99 This mig script is no longer needed
@@ -0,0 +1,2 @@ | |||
The migration of this module from 16.0 to 17.0 was financially supported | |||
by Camptocamp |
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.
by Camptocamp | |
by Camptocamp. |
|
||
- [Trobz](https://trobz.com): | ||
- Dzung Tran \<<[email protected]>\> | ||
- Thao Le <[email protected]> |
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.
- Thao Le <[email protected]> | |
- Thao Le \<<[email protected]>\> |
Then regenerating the readme file
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.
@dzungtran89 the PR has been updated! Thank you.
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.
lgtm overall, minor changes needed
9a31f79
to
650c4cf
Compare
@thaolt99 the readme file is not updated yet |
650c4cf
to
e6f8137
Compare
@dzungtran89 the PR has been updated! Thank you. |
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.
thx, lgtm
e6f8137
to
3e7158a
Compare
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.
def name_get(self)
: you should now override _compute_display_name instead, adding the possible new fields in the depends of the method
Check https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0 for more information
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.
replace invisible
by column_invisible
on tree view:
<field
name="parent_id"
invisible="not context.get('account_cutoff_line_main_view', False)"
/>
<field name="currency_id" invisible="1" />
<field name="company_currency_id" invisible="1" />
<tree> | ||
<field | ||
name="parent_id" | ||
invisible="not context.get('account_cutoff_tax_line_main_view', False)" |
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.
invisible="not context.get('account_cutoff_tax_line_main_view', False)" | |
column_invisible="not context.get('account_cutoff_tax_line_main_view', False)" |
/> | ||
<field name="base" /> | ||
<field name="amount" /> | ||
<field name="currency_id" invisible="1" /> |
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.
<field name="currency_id" invisible="1" /> | |
<field name="currency_id" column_invisible="1" /> |
<field name="amount" /> | ||
<field name="currency_id" invisible="1" /> | ||
<field name="cutoff_amount" /> | ||
<field name="company_currency_id" invisible="1" /> |
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.
<field name="company_currency_id" invisible="1" /> | |
<field name="company_currency_id" column_invisible="1" /> |
<field name="currency_id" invisible="1" /> | ||
<field name="cutoff_amount" /> | ||
<field name="company_currency_id" invisible="1" /> | ||
<field name="sequence" invisible="1" /> |
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.
<field name="sequence" invisible="1" /> | |
<field name="sequence" column_invisible="1" /> |
options="{'no_create': True}" | ||
optional="show" | ||
/> | ||
<field name="company_id" invisible="1" /> |
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.
<field name="company_id" invisible="1" /> | |
<field name="company_id" column_invisible="1" /> |
<field | ||
name="cutoff_type" | ||
readonly="state == 'done'" | ||
invisible="context.get('default_cutoff_type')" |
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.
invisible="context.get('default_cutoff_type')" | |
column_invisible="context.get('default_cutoff_type')" |
<field name="cutoff_date" decoration-bf="1" /> | ||
<field name="move_ref" optional="hide" /> | ||
<field name="total_cutoff_amount" /> | ||
<field name="company_currency_id" invisible="1" /> |
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.
<field name="company_currency_id" invisible="1" /> | |
<field name="company_currency_id" column_invisible="1" /> |
3e7158a
to
cef6c3d
Compare
@nguyenminhchien the PR has been updated! Thanks. |
name = type2label.get(rec.cutoff_type, "") | ||
if rec.cutoff_date: | ||
name = f"({name}, {format_date(self.env, rec.cutoff_date)})" | ||
rec.display_name = rec.name or f"#{rec.id}" |
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.
rec.display_name = rec.name or f"#{rec.id}" | |
rec.display_name = name |
cef6c3d
to
fc13845
Compare
fc13845
to
ea6a5e3
Compare
ea6a5e3
to
1811361
Compare
No description provided.