加载数据时调用,返回一个id list.代表需要加载的数据
def load(self, cr, uid, fields, data, context=None):
"""
Attempts to load the data matrix, and returns alist of ids (or
``False`` if there was an error and no id couldbe generated) and a
list of messages.
The ids are those of the records created andsaved (in database), in
the same order they were extracted from thefile. They can be passed
directly to :meth:`~read`
#
# Overload this methodif you need a window title which depends on the context
#
defview_header_get(self, cr, user, view_id=None, view_type='form',context=None):
return False
15.
select 'cp' || right(cast(pow(10, 10) as varchar) || id, 10)as sn, customer_id as name, '付款' as operation, pay_value as value,date, note from xinquanda_customer_payment
union
select 'co' || right(cast(pow(10, 10) as varchar) || id, 10)as sn, customer_id as name, '退货' as operation, price_totle asvalue, date , '' as note from xinquanda_product_customer_out
union
select 'ci' || right(cast(pow(10, 10) as varchar) || id, 10)as sn, customer_id as name, '供货' as operation, price_totle asvalue, date , '' as note from xinquanda_product_customer_in;