-
-
Notifications
You must be signed in to change notification settings - Fork 699
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
[ADD] 17.0 analysis #4294
Merged
Merged
[ADD] 17.0 analysis #4294
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
=================== | ||
Openupgrade Scripts | ||
=================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:1e4e622a463d6aaf9a8985ff9e4dfd399e5d0d34cf47c1513ded9740a7925a43 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fopenupgrade-lightgray.png?logo=github | ||
:target: https://github.com/OCA/openupgrade/tree/17.0/openupgrade_scripts | ||
:alt: OCA/openupgrade | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/openupgrade-17-0/openupgrade-17-0-openupgrade_scripts | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/openupgrade&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module is a containers of migration script to migrate from 16.0 to | ||
17.0 version. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Installation | ||
============ | ||
|
||
This module does not need to be installed on a database. It simply needs | ||
to be available via your ``addons-path``. | ||
|
||
Configuration | ||
============= | ||
|
||
- call your odoo instance with the option | ||
``--upgrade-path=/PATH_TO_openupgrade_scripts_MODULE/scripts/`` | ||
|
||
or | ||
|
||
- add the key to your configuration file: | ||
|
||
.. code:: shell | ||
|
||
[options] | ||
upgrade_path = /PATH_TO_openupgrade_scripts_MODULE/scripts/ | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/openupgrade/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/openupgrade/issues/new?body=module:%20openupgrade_scripts%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Maintainers | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/openupgrade <https://github.com/OCA/openupgrade/tree/17.0/openupgrade_scripts>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright Odoo Community Association (OCA) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Openupgrade Scripts", | ||
"summary": """Module that contains all the migrations analysis | ||
and scripts for migrate Odoo SA modules.""", | ||
"author": "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/OpenUpgrade", | ||
"category": "Migration", | ||
"version": "17.0.1.0.0", | ||
"license": "AGPL-3", | ||
"depends": ["base"], | ||
"images": ["static/description/banner.jpg"], | ||
"external_dependencies": { | ||
"python": [ | ||
"openupgradelib @ git+https://github.com/OCA/openupgradelib.git@master" | ||
] | ||
}, | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
""" Encode any known changes to the database here | ||
to help the matching process | ||
""" | ||
|
||
# Renamed modules is a mapping from old module name to new module name | ||
renamed_modules = { | ||
# odoo | ||
"note": "project_todo", | ||
"website_sale_delivery_mondialrelay": "website_sale_mondialrelay", | ||
# odoo/enterprise | ||
# OCA/... | ||
} | ||
|
||
# Merged modules contain a mapping from old module names to other, | ||
# preexisting module names | ||
merged_modules = { | ||
# odoo | ||
"account_payment_invoice_online_payment_patch": "account_payment", | ||
"account_sequence": "account", | ||
"association": "membership", | ||
"l10n_de_skr03": "l10n_de", | ||
"l10n_de_skr04": "l10n_de", | ||
"l10n_hr_euro": "l10n_hr", | ||
"l10n_in_tcs_tds": "l10n_in", | ||
"l10n_in_upi": "l10n_in", | ||
"l10n_latam_account_sequence": "l10n_latam_invoice_document", | ||
"loyalty_delivery": "sale_loyalty_delivery", | ||
"pos_cache": "point_of_sale", | ||
"pos_daily_sales_reports": "point_of_sale", | ||
"pos_epson_printer_restaurant": "point_of_sale", | ||
"purchase_price_diff": "purchase_stock", | ||
"web_kanban_gauge": "web", | ||
"website_event_crm_questions": "website_event_crm", | ||
"website_sale_delivery": "website_sale", | ||
"website_sale_loyalty_delivery": "website_sale_loyalty", | ||
"website_sale_stock_product_configurator": "website_sale_product_configurator", | ||
# OCA/... | ||
} | ||
|
||
# only used here for upgrade_analysis | ||
renamed_models = { | ||
# odoo | ||
# OCA/... | ||
} | ||
|
||
# only used here for upgrade_analysis | ||
merged_models = { | ||
# odoo | ||
# OCA/... | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- call your odoo instance with the option | ||
`--upgrade-path=/PATH_TO_openupgrade_scripts_MODULE/scripts/` | ||
|
||
or | ||
|
||
- add the key to your configuration file: | ||
|
||
``` shell | ||
[options] | ||
upgrade_path = /PATH_TO_openupgrade_scripts_MODULE/scripts/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This module is a containers of migration script to migrate from 16.0 to | ||
17.0 version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This module does not need to be installed on a database. It simply needs | ||
to be available via your `addons-path`. |
134 changes: 134 additions & 0 deletions
134
openupgrade_scripts/scripts/account/17.0.1.2/noupdate_changes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<odoo> | ||
<record id="account_bank_statement_line_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'in', company_ids)]</field> | ||
</record> | ||
<record id="account_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="account_fiscal_position_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="account_group_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="account_move_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'in', company_ids)]</field> | ||
</record> | ||
<record id="account_move_line_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'in', company_ids)]</field> | ||
</record> | ||
<record id="account_payment_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'in', company_ids)]</field> | ||
</record> | ||
<record id="account_payment_term_15days" model="account.payment.term"> | ||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 15})]"/> | ||
</record> | ||
<record id="account_payment_term_21days" model="account.payment.term"> | ||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 21})]"/> | ||
</record> | ||
<record id="account_payment_term_30_days_end_month_the_10" model="account.payment.term"> | ||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'delay_type':'days_after_end_of_next_month', 'nb_days': 10})]"/> | ||
<field name="name">10 Days after End of Next Month</field> | ||
<field name="note">Payment terms: 10 Days after End of Next Month</field> | ||
</record> | ||
<record id="account_payment_term_30days" model="account.payment.term"> | ||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 30})]"/> | ||
</record> | ||
<record id="account_payment_term_30days_early_discount" model="account.payment.term"> | ||
<field name="line_ids" eval="[ Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 30})]"/> | ||
<field name="discount_days">7</field> | ||
<field name="discount_percentage">2</field> | ||
<field name="early_discount">True</field> | ||
</record> | ||
<record id="account_payment_term_45days" model="account.payment.term"> | ||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 45})]"/> | ||
</record> | ||
<record id="account_payment_term_advance_60days" model="account.payment.term"> | ||
<field name="line_ids" eval="[ Command.clear(), Command.create({'value': 'percent', 'value_amount': 30.0, 'nb_days': 0}), Command.create({'value': 'percent', 'value_amount': 70.0, 'nb_days': 60})]"/> | ||
</record> | ||
<record id="account_payment_term_end_following_month" model="account.payment.term"> | ||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'delay_type':'days_after_end_of_next_month', 'nb_days': 0})]"/> | ||
</record> | ||
<record id="account_payment_term_immediate" model="account.payment.term"> | ||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 0})]"/> | ||
</record> | ||
<record id="account_reconcile_model_line_template_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="account_reconcile_model_template_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="account_root_comp_rule" model="ir.rule"> | ||
<field name="domain_force">['|',('company_id','=',False), ('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="account_send_payment_receipt_by_email_action" model="ir.actions.act_window"> | ||
<field name="context" eval="{ 'mail_post_autofollow': True, 'default_composition_mode': 'comment', 'default_template_id': ref('account.mail_template_data_payment_receipt'), 'default_email_layout_xmlid': 'mail.mail_notification_light', }"/> | ||
</record> | ||
<record id="account_send_payment_receipt_by_email_action_multi" model="ir.actions.act_window"> | ||
<field name="context" eval="{ 'mailing_document_based': True, 'mail_post_autofollow': True, 'default_composition_mode': 'mass_mail', 'default_template_id': ref('account.mail_template_data_payment_receipt'), 'default_email_layout_xmlid': 'mail.mail_notification_light', }"/> | ||
</record> | ||
<record id="email_template_edi_credit_note" model="mail.template"> | ||
<field name="report_template_ids" eval="[(4, ref('account.account_invoices'))]"/> | ||
</record> | ||
<record id="email_template_edi_invoice" model="mail.template"> | ||
<field name="body_html" type="html"> | ||
<div style="margin: 0px; padding: 0px;"> | ||
<p style="margin: 0px; padding: 0px; font-size: 13px;"> | ||
Dear | ||
<t t-if="object.partner_id.parent_id"><t t-out="object.partner_id.name or ''">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>), | ||
</t> | ||
<t t-else=""><t t-out="object.partner_id.name or ''">Brandon Freeman</t>, | ||
</t> | ||
<br/><br/> | ||
Here is your | ||
<t t-if="object.name"> | ||
invoice <span style="font-weight:bold;" t-out="object.name or ''">INV/2021/05/0005</span> | ||
</t> | ||
<t t-else=""> | ||
invoice | ||
</t> | ||
<t t-if="object.invoice_origin"> | ||
(with reference: <t t-out="object.invoice_origin or ''">SUB003</t>) | ||
</t> | ||
amounting in <span style="font-weight:bold;" t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00</span> | ||
from <t t-out="object.company_id.name or ''">YourCompany</t>. | ||
<t t-if="object.payment_state in ('paid', 'in_payment')"> | ||
This invoice is already paid. | ||
</t> | ||
<t t-else=""> | ||
Please remit payment at your earliest convenience. | ||
<t t-if="object.payment_reference"><br/><br/> | ||
Please use the following communication for your payment: <span style="font-weight:bold;" t-out="object.payment_reference or ''">INV/2021/05/0005</span>. | ||
</t> | ||
</t> | ||
<t t-if="hasattr(object, 'timesheet_count') and object.timesheet_count"><br/><br/> | ||
PS: you can review your timesheets <a t-att-href="'my/timesheets?search_in=invoice&search=%s' % object.name">from the portal.</a> | ||
</t> | ||
<br/><br/> | ||
Do not hesitate to contact us if you have any questions. | ||
<t t-if="not is_html_empty(object.invoice_user_id.signature)"><br/><br/><t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin</t></t> | ||
</p> | ||
</div> | ||
</field> | ||
<field name="report_template_ids" eval="[(4, ref('account.account_invoices'))]"/> | ||
</record> | ||
<record id="invoice_analysis_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'in', company_ids)]</field> | ||
</record> | ||
<record id="journal_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="journal_group_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="mail_template_data_payment_receipt" model="mail.template"> | ||
<field name="report_template_ids" eval="[(4, ref('account.action_report_payment_receipt'))]"/> | ||
</record> | ||
<record id="tax_comp_rule" model="ir.rule"> | ||
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
<record id="tax_rep_comp_rule" model="ir.rule"> | ||
<field name="domain_force">['|',('company_id','=',False), ('company_id', 'parent_of', company_ids)]</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This file is empty. FYI, I began a list of renamed / merged Odoo modules here :
#4124 (comment)
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.
Thanks! Great work on the renamed and merge modules. I updated apriori with it and reran the analysis.