[REM] stock: overprocessed quantity wizard.

related to rev eddc695ac3
the file is not imported but still present

closes odoo/odoo#39246

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
Arnaud Baes
2019-10-23 11:20:30 +00:00
committed by Simon Lejeune
parent 32fcd10b17
commit 066e9a0c7d
@@ -1,25 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
from odoo.exceptions import UserError
class StockOverProcessedTransfer(models.TransientModel):
_name = 'stock.overprocessed.transfer'
_description = 'Transfer Over Processed Stock'
picking_id = fields.Many2one('stock.picking')
overprocessed_product_name = fields.Char(compute='_compute_overprocessed_product_name',
readonly=True)
def _compute_overprocessed_product_name(self):
for wizard in self:
wizard.overprocessed_product_name = False
if wizard.picking_id:
moves = wizard.picking_id._get_overprocessed_stock_moves()
wizard.overprocessed_product_name = moves[0].product_id.display_name
def action_confirm(self):
self.ensure_one()
return self.picking_id.with_context(skip_overprocessed_check=True).button_validate()