[MIG] scrap_reason_code: Migration to 15.0

This commit is contained in:
hda
2022-10-10 15:11:18 +02:00
committed by John Herholz
parent c60f2ad09b
commit 54e8771165
6 changed files with 9 additions and 8 deletions

View File

@@ -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.

View File

@@ -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)",

View File

@@ -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",

View File

@@ -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>

View File

@@ -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,

View File

@@ -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" />