sale category, should also add top notes in sale order reports

bzr revid: rde-45098e0a40e3df40bf8f6e00f132e5ddeb57a9b3
This commit is contained in:
rde 2007-01-22 12:05:17 +00:00
parent f5ff91a42e
commit 241c669960
4 changed files with 63 additions and 1 deletions

View File

@ -1 +1,2 @@
import report
import sale

View File

@ -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
}

View File

@ -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()

View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<terp>
<data>
<record model="ir.ui.view" id="view_order_withtopnotes_form">
<field name="name">sale_category.sale.order_withtopnotes.form.view</field>
<field name="type">form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="notes" position="before">
<separator string="Top notes" colspan="4"/>
<field name="topnotes" colspan="4" nolabel="1"/>
<separator string="Bottom notes" colspan="4"/>
</field>
</field>
</record>
</data>
</terp>