ACCOUNT: fix debit_get and use better name for value of fields function
bzr revid: ced-5d2749ba4068203da2932ca5b422daba354cb5cc
This commit is contained in:
parent
289d9e092f
commit
bc86efdbda
|
@ -35,7 +35,7 @@ class res_partner(osv.osv):
|
||||||
_name = 'res.partner'
|
_name = 'res.partner'
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
_description = 'Partner'
|
_description = 'Partner'
|
||||||
def _credit_get(self, cr, uid, ids, prop, unknow_none, context):
|
def _credit_get(self, cr, uid, ids, name, arg, context):
|
||||||
res={}
|
res={}
|
||||||
try:
|
try:
|
||||||
for partner in self.browse(cr, uid, ids, context):
|
for partner in self.browse(cr, uid, ids, context):
|
||||||
|
@ -48,7 +48,7 @@ class res_partner(osv.osv):
|
||||||
res[id]=0.0
|
res[id]=0.0
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def _debit_get(self, cr, uid, ids, prop, unknow_none, unknow_dict):
|
def _debit_get(self, cr, uid, ids, name, arg, context):
|
||||||
res={}
|
res={}
|
||||||
try:
|
try:
|
||||||
for partner in self.browse(cr, uid, ids, context):
|
for partner in self.browse(cr, uid, ids, context):
|
||||||
|
@ -96,7 +96,7 @@ class res_partner(osv.osv):
|
||||||
group_name="Accounting Properties",
|
group_name="Accounting Properties",
|
||||||
help="This account will be used, instead of the default one, as the payable account for the current partner"),
|
help="This account will be used, instead of the default one, as the payable account for the current partner"),
|
||||||
'property_account_receivable': fields.property(
|
'property_account_receivable': fields.property(
|
||||||
'account.account',
|
'account.account',
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Account Receivable",
|
string="Account Receivable",
|
||||||
|
|
Loading…
Reference in New Issue