1
# -*- encoding: utf-8 -*-
2
##############################################################################
4
# OpenERP, Open Source Management Solution
5
# Copyright (C) 2009 Smile.fr. All Rights Reserved
6
# authors: Raphaël Valyi, Xavier Fernandez
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License
19
# along with this program. If not, see <http://www.gnu.org/licenses/>.
21
##############################################################################
22
from osv import fields, osv
25
class sale_order_line_dimension_custom_values(osv.osv):
26
_name = "sale.order.line.dimension_custom_values"
29
"dimension_type_id": fields.many2one("product.variant.dimension.type", "Dimension Type"),
30
"custom_value": fields.char('Custom Value', size=64),
31
"sale_order_line_id": fields.many2one("sale.order.line", "Sale Order Line"),
34
sale_order_line_dimension_custom_values()
37
class sale_order_line(osv.osv):
38
_inherit = "sale.order.line"
41
"dimension_custom_value_ids": fields.one2many('sale.order.line.dimension_custom_values', 'sale_order_line_id', 'Dimension Custom Values'),
b'\\ No newline at end of file'