21 lines
581 B
Python
21 lines
581 B
Python
# -*- 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('单价')
|
|
|