diff --git a/addons/sale_category/__init__.py b/addons/sale_category/__init__.py index 4cb5de9f910..34fcfaadd34 100644 --- a/addons/sale_category/__init__.py +++ b/addons/sale_category/__init__.py @@ -1 +1,2 @@ import report +import sale diff --git a/addons/sale_category/__terp__.py b/addons/sale_category/__terp__.py index 0c125102686..915c8d69817 100644 --- a/addons/sale_category/__terp__.py +++ b/addons/sale_category/__terp__.py @@ -5,7 +5,7 @@ "category" : "Generic Modules/Sales & Purchases", "depends" : ["sale"], "demo_xml" : [], - "update_xml" : ["sale_category_report.xml"], + "update_xml" : ["sale_category_view.xml", "sale_category_report.xml"], "active": False, "installable": True } diff --git a/addons/sale_category/sale.py b/addons/sale_category/sale.py new file mode 100644 index 00000000000..8bed8729301 --- /dev/null +++ b/addons/sale_category/sale.py @@ -0,0 +1,43 @@ +############################################################################## +# +# Copyright (c) 2004-2006 TINY SPRL. (http://tiny.be) All Rights Reserved. +# +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsability of assessing all potential +# consequences resulting from its eventual inadequacies and bugs +# End users who are looking for a ready-to-use solution with commercial +# garantees and support are strongly adviced to contract a Free Software +# Service Company +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +############################################################################## + +import time +import netsvc +from osv import fields, osv +import ir +from mx import DateTime +from tools import config + +class sale_order(osv.osv): + _name='sale.order' + _inherit='sale.order' + _columns={ + 'topnotes' : fields.text('Top Notes'), + } + +sale_order() diff --git a/addons/sale_category/sale_category_view.xml b/addons/sale_category/sale_category_view.xml new file mode 100644 index 00000000000..a12e9d474bb --- /dev/null +++ b/addons/sale_category/sale_category_view.xml @@ -0,0 +1,18 @@ + + + + + sale_category.sale.order_withtopnotes.form.view + form + sale.order + + + + + + + + + + + \ No newline at end of file