Files
test/jikimo_sale_route_picking/models/product_template.py
2024-11-06 17:53:33 +08:00

11 lines
424 B
Python

from odoo import models, fields
class ProductTemplate(models.Model):
_inherit = 'product.template'
is_manual_processing = fields.Boolean(string='人工线下加工')
is_customer_provided = fields.Boolean(string='客供料')
def product_create(self, product_id, item, order_id, order_number, i):
product_id = super(ProductTemplate, self).product_create(product_id, item, order_id, order_number, i)