1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/stock_barcode_mrp_subcontracting/models/stock_picking.py
2024-12-10 09:04:09 +07:00

17 lines
494 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class StockPicking(models.Model):
_inherit = 'stock.picking'
def _get_fields_stock_barcode(self):
""" Inject the field 'display_action_record_components' in the initial
state of the barcode view.
"""
fields = super()._get_fields_stock_barcode()
fields.append('display_action_record_components')
return fields