base,sale: move sales (one2many) on partner to the right module!

bzr revid: ced-4763df429187ef5aa0c960cae0fc1b4102d60065
This commit is contained in:
ced
2007-08-03 14:02:59 +00:00
parent 00cceb421d
commit 8bcbda83b7
+13 -10
View File
@@ -1,9 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2004-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
# Copyright (c) 2004-2007 TINY SPRL. (http://tiny.be) All Rights Reserved.
#
# $Id: account.py 1005 2005-07-25 08:41:42Z nicoe $
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
@@ -30,20 +29,24 @@
from osv import fields, osv
class res_partner(osv.osv):
_name = 'res.partner'
_inherit = 'res.partner'
_columns = {
'property_product_pricelist': fields.property(
'product.pricelist',
type='many2one',
relation='product.pricelist',
string="Sale Pricelist",
method=True,
view_load=True,
group_name="Pricelists Properties",
help="This pricelist will be used, instead of the default one, for sales to the current partner"),
'product.pricelist',
type='many2one',
relation='product.pricelist',
string="Sale Pricelist",
method=True,
view_load=True,
group_name="Pricelists Properties",
help="This pricelist will be used, instead of the default one, \
for sales to the current partner"),
'sales': fields.one2many('sale.order', 'partner_id', 'Sales'),
}
res_partner()