Add product_barcode with optional=hide in tree view of inventory lines and quants
This commit is contained in:
11
stock_usability/models/stock_inventory.py
Normal file
11
stock_usability/models/stock_inventory.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright 2021 Akretion France (http://www.akretion.com/)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class StockInventoryLine(models.Model):
|
||||
_inherit = 'stock.inventory.line'
|
||||
|
||||
product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
|
||||
Reference in New Issue
Block a user