零件图号零件名称

This commit is contained in:
liaodanlong
2024-12-20 14:55:04 +08:00
parent 283950db39
commit 41096c9c65
15 changed files with 61 additions and 21 deletions

View File

@@ -0,0 +1,7 @@
import logging
from odoo import models, fields, api
_logger = logging.getLogger(__name__)
class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
part_number = fields.Char('零件图号', related='product_id.part_number', readonly=True)