Commit 91ba3297 authored by Luis Ernesto Torres Macías's avatar Luis Ernesto Torres Macías
Browse files

[IMP][account_analytic_analysis_rent]Change in the name invoice, date of...

[IMP][account_analytic_analysis_rent]Change in the name invoice, date of contract not date of system
parent 7ab71fa0
......@@ -55,7 +55,9 @@ class account_analytic_line(osv.osv):
context = {}
account_ids = {}
date_lines = time.strftime('%d/%m/%Y')
for line in self.pool.get('account.analytic.line').browse(cr, uid, ids, context=context):
date_lines = line.date
account_ids[line.account_id.id] = True
account_ids = account_ids.keys() #data['accounts']
......@@ -79,7 +81,7 @@ class account_analytic_line(osv.osv):
pterm_list.sort()
date_due = pterm_list[-1]
curr_invoice = {
'name': time.strftime('%d/%m/%Y')+' - '+account.name,
'name': date_lines + ' - ' + account.name,
'partner_id': account.partner_id.id,
'address_contact_id': res_partner_obj.address_get(cr, uid,
[account.partner_id.id], adr_pref=['contact'])['contact'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment