mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_sale: Migration to 18.0
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "RMA Sale",
|
||||
"version": "17.0.1.0.0",
|
||||
"version": "18.0.1.0.0",
|
||||
"license": "LGPL-3",
|
||||
"category": "RMA",
|
||||
"summary": "Links RMA with Sales Orders",
|
||||
|
||||
@@ -26,10 +26,10 @@ class TestRmaSale(common.SingleTransactionCase):
|
||||
|
||||
# Create products
|
||||
cls.product_1 = cls.product_obj.create(
|
||||
{"name": "Test Product 1", "type": "product", "list_price": 100.0}
|
||||
{"name": "Test Product 1", "is_storable": True, "list_price": 100.0}
|
||||
)
|
||||
cls.product_2 = cls.product_obj.create(
|
||||
{"name": "Test Product 2", "type": "product", "list_price": 150.0}
|
||||
{"name": "Test Product 2", "is_storable": True, "list_price": 150.0}
|
||||
)
|
||||
|
||||
# Create SO:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2022 ForgeFlow S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from odoo.tests.common import Form
|
||||
from odoo.tests import Form
|
||||
|
||||
# pylint: disable=odoo-addons-relative-import
|
||||
from odoo.addons.rma_account.tests.test_rma_stock_account import TestRmaStockAccount
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<odoo>
|
||||
|
||||
<record id="rma_operation_tree" model="ir.ui.view">
|
||||
<field name="name">rma.operation.tree</field>
|
||||
<field name="name">rma.operation.list</field>
|
||||
<field name="model">rma.operation</field>
|
||||
<field name="inherit_id" ref="rma.rma_operation_tree" />
|
||||
<field name="arch" type="xml">
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<field name="sale_count" widget="statinfo" string="Origin SO" />
|
||||
</button>
|
||||
</div>
|
||||
<xpath expr="//field[@name='rma_line_ids']/tree" position="inside">
|
||||
<xpath expr="//field[@name='rma_line_ids']/list" position="inside">
|
||||
<field name="sale_policy" invisible="True" />
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
domain="[('order_id', '=', sale_id)]"
|
||||
string="Sale Order Lines"
|
||||
>
|
||||
<tree>
|
||||
<list>
|
||||
<field name="product_id" invisible="1" />
|
||||
<field name="order_id" />
|
||||
<field name="order_partner_id" />
|
||||
@@ -39,7 +39,7 @@
|
||||
groups="uom.group_uom"
|
||||
/>
|
||||
<field name="price_subtotal" sum="Total" widget="monetary" />
|
||||
</tree>
|
||||
</list>
|
||||
|
||||
</field>
|
||||
<field name="show_lot_filter" invisible="1" />
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<newline />
|
||||
<group>
|
||||
<field name="item_ids" nolabel="1" colspan="2">
|
||||
<tree name="Details" editable="bottom">
|
||||
<list name="Details" editable="bottom">
|
||||
<field name="wiz_id" invisible="True" />
|
||||
<field name="line_id" invisible="True" />
|
||||
<field name="product_id" />
|
||||
@@ -35,7 +35,7 @@
|
||||
<field name="product_qty" />
|
||||
<field name="product_uom_id" groups="uom.group_uom" />
|
||||
<field name="free_of_charge" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<footer colspan="2">
|
||||
|
||||
Reference in New Issue
Block a user