mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_put_away: Migration to 15.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "RMA Put Away",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"license": "LGPL-3",
|
||||
"category": "RMA",
|
||||
"summary": "Allows to put away the received products in odoo",
|
||||
|
||||
@@ -13,7 +13,6 @@ class RmaOperation(models.Model):
|
||||
("ordered", "Based on Ordered Quantities"),
|
||||
("received", "Based on Received Quantities"),
|
||||
],
|
||||
string="Put Away Policy",
|
||||
default="no",
|
||||
)
|
||||
put_away_route_id = fields.Many2one(
|
||||
|
||||
@@ -53,7 +53,6 @@ class RmaOrderLine(models.Model):
|
||||
line.put_away_count = len(pickings)
|
||||
|
||||
qty_to_put_away = fields.Float(
|
||||
string="Qty To Put Away",
|
||||
copy=False,
|
||||
digits="Product Unit of Measure",
|
||||
readonly=True,
|
||||
@@ -61,7 +60,6 @@ class RmaOrderLine(models.Model):
|
||||
store=True,
|
||||
)
|
||||
qty_in_put_away = fields.Float(
|
||||
string="Qty In Put Away",
|
||||
copy=False,
|
||||
digits="Product Unit of Measure",
|
||||
readonly=True,
|
||||
@@ -69,7 +67,6 @@ class RmaOrderLine(models.Model):
|
||||
store=True,
|
||||
)
|
||||
qty_put_away = fields.Float(
|
||||
string="Qty Put Away",
|
||||
copy=False,
|
||||
digits="Product Unit of Measure",
|
||||
readonly=True,
|
||||
@@ -82,7 +79,6 @@ class RmaOrderLine(models.Model):
|
||||
("ordered", "Based on Ordered Quantities"),
|
||||
("received", "Based on Received Quantities"),
|
||||
],
|
||||
string="Put Away Policy",
|
||||
default="no",
|
||||
required=True,
|
||||
readonly=False,
|
||||
|
||||
@@ -118,7 +118,7 @@ class TestRmaPutAway(common.SingleTransactionCase):
|
||||
rma._onchange_operation_id()
|
||||
rma.action_rma_to_approve()
|
||||
wizard = self.rma_make_picking.with_context(
|
||||
{
|
||||
**{
|
||||
"active_ids": rma.id,
|
||||
"active_model": "rma.order.line",
|
||||
"picking_type": "incoming",
|
||||
@@ -127,7 +127,7 @@ class TestRmaPutAway(common.SingleTransactionCase):
|
||||
).create({})
|
||||
wizard._create_picking()
|
||||
wizard = self.rma_make_put_away_wiz.with_context(
|
||||
{
|
||||
**{
|
||||
"active_ids": rma.id,
|
||||
"active_model": "rma.order.line",
|
||||
"item_ids": [
|
||||
@@ -174,7 +174,7 @@ class TestRmaPutAway(common.SingleTransactionCase):
|
||||
rma._onchange_lot_id()
|
||||
rma.action_rma_to_approve()
|
||||
wizard = self.rma_make_picking.with_context(
|
||||
{
|
||||
**{
|
||||
"active_ids": rma.id,
|
||||
"active_model": "rma.order.line",
|
||||
"picking_type": "incoming",
|
||||
@@ -189,7 +189,7 @@ class TestRmaPutAway(common.SingleTransactionCase):
|
||||
mv.quantity_done = mv.product_uom_qty
|
||||
picking._action_done()
|
||||
wizard = self.rma_make_put_away_wiz.with_context(
|
||||
{
|
||||
**{
|
||||
"active_ids": rma.id,
|
||||
"active_model": "rma.order.line",
|
||||
"item_ids": [
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<form string="Select lines for picking" name="lines">
|
||||
<separator string="Select lines for put away" />
|
||||
<field name="item_ids">
|
||||
<tree string="RMA Lines" editable="bottom" create="false">
|
||||
<tree editable="bottom" create="false">
|
||||
<field name="rma_id" groups="rma.group_rma_groups" />
|
||||
<field name="product_id" />
|
||||
<field name="product_qty" />
|
||||
|
||||
Reference in New Issue
Block a user