智能工厂的销售模块添加业务平台订单对象
This commit is contained in:
20
sf_bf_connect/models/sf_process_order_line.py
Normal file
20
sf_bf_connect/models/sf_process_order_line.py
Normal 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('单价')
|
||||
|
||||
Reference in New Issue
Block a user