[MIG] rma_purchase: Migration to 18.0

This commit is contained in:
JasminSForgeFlow
2024-11-28 14:27:15 +05:30
parent cb13734262
commit 4b659877dc
6 changed files with 9 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
{
"name": "RMA Purchase",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "RMA",
"summary": "RMA from PO",
"license": "LGPL-3",

View File

@@ -25,16 +25,10 @@ class TestRmaPurchase(common.TransactionCase):
# Create products
self.product_1 = self.product_obj.create(
{
"name": "Test Product 1",
"type": "product",
}
{"name": "Test Product 1", "is_storable": True}
)
self.product_2 = self.product_obj.create(
{
"name": "Test Product 2",
"type": "product",
}
{"name": "Test Product 2", "is_storable": True}
)
# Create PO:

View File

@@ -2,7 +2,7 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from odoo.fields import Date, Datetime
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

View File

@@ -5,7 +5,7 @@
<field name="name">Purchase Order</field>
<field name="res_model">purchase.order</field>
<field name="target">current</field>
<field name="view_mode">form,tree</field>
<field name="view_mode">form,list</field>
</record>
<record id="view_rma_line_form" model="ir.ui.view">

View File

@@ -23,7 +23,7 @@
domain="[('order_id', '=', purchase_id)]"
string="Purchase Order Lines"
>
<tree name="Purchase Order Lines">
<list name="Purchase Order Lines">
<field name="order_id" />
<field name="name" />
<field name="partner_id" string="Vendor" />
@@ -33,7 +33,7 @@
<field name="product_uom" groups="uom.group_uom" />
<field name="price_subtotal" widget="monetary" />
<field name="date_planned" widget="date" />
</tree>
</list>
</field>
<footer>
<button

View File

@@ -24,14 +24,14 @@
<newline />
<group>
<field name="item_ids" nolabel="1" colspan="2">
<tree name="Details" editable="bottom" create="false">
<list name="Details" editable="bottom" create="false">
<field name="line_id" options="{'no_open': true}" />
<field name="product_id" />
<field name="name" />
<field name="product_qty" />
<field name="product_uom_id" groups="uom.group_uom" />
<field name="free_of_charge" />
</tree>
</list>
</field>
</group>
<newline />