mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_purchase: Migration to 18.0
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
{
|
{
|
||||||
"name": "RMA Purchase",
|
"name": "RMA Purchase",
|
||||||
"version": "17.0.1.0.0",
|
"version": "18.0.1.0.0",
|
||||||
"category": "RMA",
|
"category": "RMA",
|
||||||
"summary": "RMA from PO",
|
"summary": "RMA from PO",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
|
|||||||
@@ -25,16 +25,10 @@ class TestRmaPurchase(common.TransactionCase):
|
|||||||
|
|
||||||
# Create products
|
# Create products
|
||||||
self.product_1 = self.product_obj.create(
|
self.product_1 = self.product_obj.create(
|
||||||
{
|
{"name": "Test Product 1", "is_storable": True}
|
||||||
"name": "Test Product 1",
|
|
||||||
"type": "product",
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
self.product_2 = self.product_obj.create(
|
self.product_2 = self.product_obj.create(
|
||||||
{
|
{"name": "Test Product 2", "is_storable": True}
|
||||||
"name": "Test Product 2",
|
|
||||||
"type": "product",
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create PO:
|
# Create PO:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from odoo.fields import Date, Datetime
|
from odoo.fields import Date, Datetime
|
||||||
from odoo.tests.common import Form
|
from odoo.tests import Form
|
||||||
|
|
||||||
# pylint: disable=odoo-addons-relative-import
|
# pylint: disable=odoo-addons-relative-import
|
||||||
from odoo.addons.rma_account.tests.test_rma_stock_account import TestRmaStockAccount
|
from odoo.addons.rma_account.tests.test_rma_stock_account import TestRmaStockAccount
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<field name="name">Purchase Order</field>
|
<field name="name">Purchase Order</field>
|
||||||
<field name="res_model">purchase.order</field>
|
<field name="res_model">purchase.order</field>
|
||||||
<field name="target">current</field>
|
<field name="target">current</field>
|
||||||
<field name="view_mode">form,tree</field>
|
<field name="view_mode">form,list</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_rma_line_form" model="ir.ui.view">
|
<record id="view_rma_line_form" model="ir.ui.view">
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
domain="[('order_id', '=', purchase_id)]"
|
domain="[('order_id', '=', purchase_id)]"
|
||||||
string="Purchase Order Lines"
|
string="Purchase Order Lines"
|
||||||
>
|
>
|
||||||
<tree name="Purchase Order Lines">
|
<list name="Purchase Order Lines">
|
||||||
<field name="order_id" />
|
<field name="order_id" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="partner_id" string="Vendor" />
|
<field name="partner_id" string="Vendor" />
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<field name="product_uom" groups="uom.group_uom" />
|
<field name="product_uom" groups="uom.group_uom" />
|
||||||
<field name="price_subtotal" widget="monetary" />
|
<field name="price_subtotal" widget="monetary" />
|
||||||
<field name="date_planned" widget="date" />
|
<field name="date_planned" widget="date" />
|
||||||
</tree>
|
</list>
|
||||||
</field>
|
</field>
|
||||||
<footer>
|
<footer>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -24,14 +24,14 @@
|
|||||||
<newline />
|
<newline />
|
||||||
<group>
|
<group>
|
||||||
<field name="item_ids" nolabel="1" colspan="2">
|
<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="line_id" options="{'no_open': true}" />
|
||||||
<field name="product_id" />
|
<field name="product_id" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="product_qty" />
|
<field name="product_qty" />
|
||||||
<field name="product_uom_id" groups="uom.group_uom" />
|
<field name="product_uom_id" groups="uom.group_uom" />
|
||||||
<field name="free_of_charge" />
|
<field name="free_of_charge" />
|
||||||
</tree>
|
</list>
|
||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
<newline />
|
<newline />
|
||||||
|
|||||||
Reference in New Issue
Block a user