Skip to content

Commit

Permalink
[MIG] rma: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed May 15, 2024
1 parent c22fa4e commit 9cc5bca
Show file tree
Hide file tree
Showing 18 changed files with 227 additions and 356 deletions.
7 changes: 5 additions & 2 deletions rma/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ To use this module, you need to:
quantity to another RMA, preview the RMA in the website. All of these
operations can be done by clicking on the buttons in the status bar.

- If you click on 'Refund' button, a refund will be created, and it
will be accessible via the smart button labeled Refund. The RMA
- If you click on 'To Refund' button, a refund will be created, and
it will be accessible via the smart button labeled Refund. The RMA
will be set automatically to 'Refunded' state when the refund is
validated.
- If you click on 'Replace' or 'Return to customer' button instead,
Expand Down Expand Up @@ -171,6 +171,9 @@ Contributors

- Chafique Delli <[email protected]>
- Giovanni Serra - Ooops <[email protected]>
- `APSL-Nagarro <https://www.apsl.tech>`__:

- Antoni Marroig <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion rma/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Return Merchandise Authorization Management",
"summary": "Return Merchandise Authorization (RMA)",
"version": "16.0.1.2.0",
"version": "17.0.1.0.0",
"development_status": "Production/Stable",
"category": "RMA",
"website": "https://github.com/OCA/rma",
Expand Down
9 changes: 3 additions & 6 deletions rma/data/mail_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
<field
name="subject"
>{{object.company_id.name}} RMA (Ref {{object.name or 'n/a' }})</field>
<field name="report_template" ref="report_rma_action" />
<field name="report_name">{{(object.name or '')}}</field>
<field name="report_template_ids" eval="[(4, ref('rma.report_rma_action'))]" />
<field name="lang">{{object.partner_id.lang}}</field>
<field name="auto_delete" eval="True" />
<field name="body_html" type="html">
Expand Down Expand Up @@ -78,8 +77,7 @@
<field
name="subject"
>{{object.company_id.name}} RMA (Ref {{object.name or 'n/a' }}) products received</field>
<field name="report_template" ref="report_rma_action" />
<field name="report_name">{{(object.name or '')}}</field>
<field name="report_template_ids" eval="[(4, ref('rma.report_rma_action'))]" />
<field name="lang">{{object.partner_id.lang}}</field>
<field name="auto_delete" eval="True" />
<field name="body_html" type="html">
Expand Down Expand Up @@ -114,8 +112,7 @@
<field
name="subject"
>{{object.company_id.name}} Your RMA has been succesfully created (Ref {{object.name or 'n/a' }})</field>
<field name="report_template" ref="report_rma_action" />
<field name="report_name">{{(object.name or '')}}</field>
<field name="report_template_ids" eval="[(4, ref('rma.report_rma_action'))]" />
<field name="lang">{{object.partner_id.lang}}</field>
<field name="auto_delete" eval="True" />
<field name="body_html" type="html">
Expand Down
6 changes: 1 addition & 5 deletions rma/hooks.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import SUPERUSER_ID, api


def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})

def post_init_hook(env):
def _get_next_picking_type_color():
"""Choose the next available color for the operation types."""
stock_picking_type = env["stock.picking.type"]
Expand Down
Loading

0 comments on commit 9cc5bca

Please sign in to comment.