@@ -33,7 +33,8 @@ from tools.translate import _
|
||||
class account_invoice(osv.osv):
|
||||
def _amount_all(self, cr, uid, ids, name, args, context={}):
|
||||
res = {}
|
||||
for invoice in self.browse(cr,uid,ids):
|
||||
print ids
|
||||
for invoice in self.browse(cr,uid,ids, context=context):
|
||||
res[invoice.id] = {
|
||||
'amount_untaxed': 0.0,
|
||||
'amount_tax': 0.0,
|
||||
@@ -115,8 +116,10 @@ class account_invoice(osv.osv):
|
||||
|
||||
def _get_invoice_line(self, cr, uid, ids, context={}):
|
||||
result = {}
|
||||
for tax in self.pool.get('account.invoice.line').browse(cr, uid, ids, context=context):
|
||||
result[tax.invoice_id.id] = True
|
||||
for line in self.pool.get('account.invoice.line').browse(cr, uid, ids, context=context):
|
||||
print '\t', line.invoice_id
|
||||
result[line.invoice_id.id] = True
|
||||
print result
|
||||
return result.keys()
|
||||
|
||||
def _get_invoice_tax(self, cr, uid, ids, context={}):
|
||||
|
||||
@@ -94,7 +94,6 @@ class node_class(object):
|
||||
if test_nodename.find('/'):
|
||||
test_nodename=test_nodename.replace('/', '_')
|
||||
path = self.path+'/'+test_nodename
|
||||
#path = self.path+'/'+self.object2.name + (content.suffix or '') + (content.extension or '')
|
||||
if not nodename:
|
||||
n = node_class(self.cr, self.uid,path, self.object2, False, content=content, type='content', root=False)
|
||||
res2.append( n)
|
||||
|
||||
Reference in New Issue
Block a user