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

[ADD] 18.0 Initial analysis #4653

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,136 changes: 1,136 additions & 0 deletions docsource/modules170-180.rst

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions openupgrade_scripts/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
===================
Openupgrade Scripts
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b3d29c4c5e1046e3183eebb1408e77f559413d4c62b51ac5b9b46f0ff54624ef
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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--18-lightgray.png?logo=github
:target: https://github.com/OCA/openupgrade-18/tree/18.0/openupgrade_scripts
:alt: OCA/openupgrade-18
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/openupgrade-18-18-0/openupgrade-18-18-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/webui/builds.html?repo=OCA/openupgrade-18&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module is a containers of migration script to migrate from 17.0 to 18.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-block:: shell

[options]
upgrade_path = /PATH_TO_openupgrade_scripts_MODULE/scripts/

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/openupgrade-18/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-18/issues/new?body=module:%20openupgrade_scripts%0Aversion:%2018.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-18 <https://github.com/OCA/openupgrade-18/tree/18.0/openupgrade_scripts>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file added openupgrade_scripts/__init__.py
Empty file.
15 changes: 15 additions & 0 deletions openupgrade_scripts/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["base"],
"images": ["static/description/banner.jpg"],
"installable": True,
}
36 changes: 36 additions & 0 deletions openupgrade_scripts/apriori.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
""" 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
# OCA/...
}

# Merged modules contain a mapping from old module names to other,
# preexisting module names
merged_modules = {
# odoo
"account_audit_trail": "account",
"account_payment_term": "account",
"l10n_br_pix": "l10n_br",
"l10n_es_edi_facturae_adm_centers": "l10n_es_edi_facturae",
"l10n_es_edi_facturae_invoice_period": "l10n_es_edi_facturae",
"l10n_fr_invoice_addr": "l10n_fr_account",
"l10n_ro_efactura": "l10n_ro_edi",
"payment_sips": "payment_worldline",
"sale_product_configurator": "sale",
"website_sale_picking": "website_sale_collect",
# OCA/...
}

# only used here for upgrade_analysis
renamed_models = {
# odoo
# OCA/...
}

# only used here for upgrade_analysis
merged_models = {
}
10 changes: 10 additions & 0 deletions openupgrade_scripts/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* call your odoo instance with the option ``--upgrade-path=/PATH_TO_openupgrade_scripts_MODULE/scripts/``

or

* add the key to your configuration file:

.. code-block:: shell

[options]
upgrade_path = /PATH_TO_openupgrade_scripts_MODULE/scripts/
1 change: 1 addition & 0 deletions openupgrade_scripts/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module is a containers of migration script to migrate from 17.0 to 18.0 version.
2 changes: 2 additions & 0 deletions openupgrade_scripts/readme/INSTALL.rst
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``.
74 changes: 74 additions & 0 deletions openupgrade_scripts/scripts/account/18.0.1.3/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="account_comp_rule" model="ir.rule">
<field name="domain_force">[('company_ids', 'parent_of', company_ids)]</field>
</record>
<record id="account_payment_method_manual_in" model="account.payment.method">
<field name="name">Manual Payment</field>
</record>
<record id="account_payment_method_manual_out" model="account.payment.method">
<field name="name">Manual Payment</field>
</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: <strong t-out="object.payment_reference or ''">INV/2021/05/0005</strong>
<t t-if="object.partner_bank_id">
on the account <strong t-out="object.partner_bank_id.acc_number"/>
</t>
.
</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&amp;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>
</record>
<record id="journal_group_comp_rule" model="ir.rule">
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'parent_of', company_ids)]</field>
<field name="name">Multi-ledger multi-company</field>
</record>
<record id="onboarding_onboarding_account_dashboard" model="onboarding.onboarding">
<field name="panel_close_action_name"/>
<field name="step_ids" eval="[ Command.link(ref('account.onboarding_onboarding_step_company_data')), Command.link(ref('account.onboarding_onboarding_step_fiscal_year')), Command.link(ref('account.onboarding_onboarding_step_chart_of_accounts')), ]"/>
</record>
<record id="onboarding_onboarding_step_chart_of_accounts" model="onboarding.onboarding.step">
<field name="title">Review Chart of Accounts</field>
</record>
<record id="onboarding_onboarding_step_company_data" model="onboarding.onboarding.step">
<field name="title">Set Company Data</field>
</record>
<record id="onboarding_onboarding_step_fiscal_year" model="onboarding.onboarding.step">
<field name="title">Set Periods</field>
</record>
</odoo>
Loading