Add product_barcode with optional=hide in tree view of inventory lines and quants

This commit is contained in:
Alexis de Lattre
2021-08-25 20:29:46 +02:00
parent 3db9f0f096
commit d1ae620079
5 changed files with 21 additions and 1 deletions

View 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")