forked from Mapan/odoo17e
17 lines
494 B
Python
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
|