mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] scrap_reason_code: Migration to 15.0
This commit is contained in:
@@ -23,7 +23,7 @@ Scrap Reason Code
|
||||
:target: https://runbot.odoo-community.org/runbot/153/14.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
Adds a reason code for scrapping operations and an interface for the user
|
||||
to create scrap codes
|
||||
@@ -44,7 +44,7 @@ Usage
|
||||
=====
|
||||
|
||||
- Go to Inventory > Operations > Scrap
|
||||
- Create a scarp order and select reason code.
|
||||
- Create a scrap order and select reason code.
|
||||
- A scrap location will be readonly and auto fill based on selected reason
|
||||
code.
|
||||
|
||||
@@ -101,7 +101,7 @@ promote its widespread use.
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-bodedra|
|
||||
|maintainer-bodedra|
|
||||
|
||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/scrap_reason_code>`_ project on GitHub.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "Scrap Reason Code",
|
||||
"version": "14.0.1.0.1",
|
||||
"version": "15.0.1.0.0",
|
||||
"license": "AGPL-3",
|
||||
"summary": "Reason code for scrapping",
|
||||
"author": "Open Source Integrators, Odoo Community Association (OCA)",
|
||||
|
||||
@@ -10,7 +10,7 @@ class ScrapReasonCode(models.Model):
|
||||
_description = "Reason Code"
|
||||
|
||||
name = fields.Char("Code", required=True)
|
||||
description = fields.Text("Description")
|
||||
description = fields.Text()
|
||||
location_id = fields.Many2one(
|
||||
"stock.location",
|
||||
string="Scrap Location",
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
* Balaji Kannan <bkannan@opensourceintegrators.com>
|
||||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
|
||||
* Chandresh Thakkar <cthakkar@opensourceintegrators.com>
|
||||
* Hughes Damry <hughes.damry@acsone.eu>
|
||||
|
||||
@@ -72,7 +72,7 @@ class StockScrap(TransactionCase):
|
||||
)
|
||||
move1._action_confirm()
|
||||
|
||||
self.assertEqual(move1.state, "confirmed")
|
||||
self.assertEqual(move1.state, "assigned")
|
||||
scrap = self.env["stock.scrap"].create(
|
||||
{
|
||||
"product_id": self.scrap_product.id,
|
||||
@@ -132,7 +132,7 @@ class StockScrap(TransactionCase):
|
||||
)
|
||||
move2._action_confirm()
|
||||
|
||||
self.assertEqual(move2.state, "confirmed")
|
||||
self.assertEqual(move2.state, "assigned")
|
||||
scrap2 = self.env["stock.scrap"].create(
|
||||
{
|
||||
"product_id": self.scrap_product.id,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<field name="name">scrap.reason.code.list</field>
|
||||
<field name="model">scrap.reason.code</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Reason Codes">
|
||||
<tree>
|
||||
<field name="name" />
|
||||
<field name="description" />
|
||||
<field name="location_id" />
|
||||
|
||||
Reference in New Issue
Block a user