Add invoice number to analytic line

bzr revid: ced-648a0b3b41f85d7e1c6cf1a6f948c649c703b8ed
This commit is contained in:
ced 2007-02-05 20:26:41 +00:00
parent 1ff13078bf
commit db6418f363
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ class account_invoice(osv.osv):
if inv['project_id']:
for il in iml:
il['analytic_lines'] = [(0,0, {
'name': il['name'],
'name': inv['number']+' - '+il['name'],
'date': time.strftime('%Y-%m-%d'),
'account_id': inv['project_id'],
'unit_amount': il['quantity'],

View File

@ -179,7 +179,7 @@
<para style="P12">[[ '%.2f' % l.price_unit ]]</para>
</td>
<td>
<para style="P12">[[ '%.2f' % (l.discount or 0.0) ]] </para>
<para style="P12">[[ l.discount and '%.2f' % (l.discount) or '' ]] </para>
</td>
<td>
<para style="P12">[[ '%.2f' %l.price_subtotal ]] [[o.currency_id.code ]]</para>