Skip to content
Draft
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
  •  
  •  
  •  
92 changes: 92 additions & 0 deletions openupgrade_scripts/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===================
Openupgrade Scripts
===================

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

.. |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/license-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/19.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-19-0/OpenUpgrade-19-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=19.0
:alt: Try me on Runboat

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

This module is a containers of migration script to migrate from 18.0 to
19.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:%2019.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/19.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.
16 changes: 16 additions & 0 deletions openupgrade_scripts/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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": "19.0.1.0.0",
"license": "AGPL-3",
"depends": ["base"],
"images": ["static/description/banner.jpg"],
"external_dependencies": {"python": ["openupgradelib"]},
"installable": True,
}
3 changes: 3 additions & 0 deletions openupgrade_scripts/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
11 changes: 11 additions & 0 deletions openupgrade_scripts/readme/CONFIGURE.md
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/
```
2 changes: 2 additions & 0 deletions openupgrade_scripts/readme/DESCRIPTION.md
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 18.0 to
19.0 version.
2 changes: 2 additions & 0 deletions openupgrade_scripts/readme/INSTALL.md
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`.
199 changes: 199 additions & 0 deletions openupgrade_scripts/scripts/account/19.0.1.4/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
<?xml version='1.0' encoding='utf-8' ?>
<odoo>
<record id="account_invoice_line_rule_portal" model="ir.rule">
<field
name="domain_force"
>[('parent_state', 'not in', ('cancel', 'draft')), ('move_id.move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('move_id.partner_id','child_of',[user.commercial_partner_id.id])]</field>
</record>
<record id="account_invoice_rule_portal" model="ir.rule">
<field
name="domain_force"
>[('state', 'not in', ('cancel', 'draft')), ('move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('partner_id','child_of',[user.commercial_partner_id.id])]</field>
</record>
<record
id="account_send_payment_receipt_by_email_action"
model="ir.actions.act_window"
>
<field name="group_ids" eval="[(4, ref('account.group_account_invoice'))]" />
</record>
<record
id="account_send_payment_receipt_by_email_action_multi"
model="ir.actions.act_window"
>
<field name="binding_view_types">list,kanban</field>
<field
name="context"
eval="{ '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="action_account_resequence" model="ir.actions.act_window">
<field name="binding_view_types">list,kanban</field>
<field name="group_ids" eval="[(6, 0, [ref('base.group_no_one')])]" />
</record>
<record id="action_open_settings" model="ir.actions.act_window">
<field name="target" />
</record>
<record id="email_template_edi_credit_note" 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">
credit note <span
style="font-weight:bold;"
t-out="object.name or ''"
>RINV/2021/05/0001</span>
</t>
<t t-else="">
credit note
</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>.
<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 />
<div>--<br /><t
t-out="object.invoice_user_id.signature or ''"
>Mitchell Admin</t></div>
</t>
</p>
</div>
</field>
<field name="lang" />
<field name="partner_to" eval="False" />
<field name="use_default_to" eval="True" />
</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-if="object.partner_id.name"><t
t-out="object.partner_id.name"
>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.parent_id.name or ''"
>Azure Interior</t>,
</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 />
<div>--<br /><t
t-out="object.invoice_user_id.signature or ''"
>Mitchell Admin</t></div>
</t>
</p>
</div>
</field>
<field name="lang" />
<field name="partner_to" eval="False" />
<field name="use_default_to" eval="True" />
</record>
<record id="mail_template_data_payment_receipt" 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-out="object.partner_id.name or ''">Azure Interior</t><br /><br />
Thank you for your payment.
Here is your payment receipt <span
style="font-weight:bold;"
t-out="(object.name or '').replace('/','-') or ''"
>BNK1-2021-05-0002</span> amounting
to <span
style="font-weight:bold;"
t-out="format_amount(object.amount, object.currency_id) or ''"
>$ 10.00</span> from <t
t-out="object.company_id.name or ''"
>YourCompany</t>.
<br /><br />
Do not hesitate to contact us if you have any questions.
<br /><br />
Best regards,
<t t-if="not is_html_empty(user.signature)">
<br />
<br />
<div>--<br /><t
t-out="user.signature or ''"
>Mitchell Admin</t></div>
</t>
</p>
</div>
</field>
<field name="lang" />
<field name="partner_to" eval="False" />
<field name="use_default_to" eval="True" />
</record>
<record
id="onboarding_onboarding_step_chart_of_accounts"
model="onboarding.onboarding.step"
>
<field name="button_text">Review Accounts</field>
</record>
</odoo>
Loading
Loading