Files
odoo-erp/addons/kosbar_erp_ext/models/product_product.py
2026-09-07 16:41:16 +07:00

14 lines
344 B
Python

from odoo import models, fields, api
class ProductProduct(models.Model):
_inherit = 'product.product'
item_code = fields.Char(
string='Item Code',
related='product_tmpl_id.item_code',
store=True,
readonly=True,
help='Item Code dari template produk (variant menampilkan kode template).',
)