智能工厂的销售模块添加业务平台订单对象

This commit is contained in:
jinling.yang
2022-10-01 00:34:09 +08:00
parent 28d76109e7
commit f456fba884
6 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import timedelta
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from odoo.tools.misc import get_lang
from odoo.osv import expression
from odoo.tools import float_is_zero, float_compare, float_round
class OrderLine(models.Model):
_name = 'sf.order.line'
_description = '订单行'
order_id = fields.Many2one('sf.order')
name = fields.Text(string='说明', required=True)
product_uom_qty = fields.Float('单价')