Merge lp:~openerp-dev/openobject-addons/trunk-bug-1089376-nco into lp:openobject-addons

Proposed by Nimesh Contractor(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1089376-nco
Merge into: lp:openobject-addons
Diff against target: 23 lines (+2/-2)
1 file modified
account/account_invoice.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1089376-nco
Reviewer Review Type Date Requested Status
Atul Patel(OpenERP) (community) Approve
OpenERP Core Team Pending
Review via email: mp+141855@code.launchpad.net

This proposal supersedes a proposal from 2013-01-03.

Description of the change

Hello,

     I have grouped the lines in journal entries, if group by invoice button is checked on journal.

Thanks,
 NCO.

To post a comment you must log in.
Revision history for this message
Atul Patel(OpenERP) (atp-openerp) wrote :

hello,

It seems ok to me.

thanks for fix.

review: Approve

Unmerged revisions

8491. By Nimesh Contractor(Open ERP)

[IMP] for same product, shows product name one time.

8490. By Nimesh Contractor(Open ERP)

[FIX] grouped lines in journal entries if group by invoice button is checked on journal

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_invoice.py'
2--- account/account_invoice.py 2012-12-21 16:48:08 +0000
3+++ account/account_invoice.py 2013-01-04 06:00:32 +0000
4@@ -829,10 +829,9 @@
5 will be grouped together if the journal has the 'group line' option. Of course a module
6 can add fields to invoice lines that would need to be tested too before merging lines
7 or not."""
8- return "%s-%s-%s-%s-%s"%(
9+ return "%s-%s-%s-%s"%(
10 invoice_line['account_id'],
11 invoice_line.get('tax_code_id',"False"),
12- invoice_line.get('product_id',"False"),
13 invoice_line.get('analytic_account_id',"False"),
14 invoice_line.get('date_maturity',"False"))
15
16@@ -849,6 +848,7 @@
17 line2[tmp]['credit'] = (am < 0) and -am or 0.0
18 line2[tmp]['tax_amount'] += l['tax_amount']
19 line2[tmp]['analytic_lines'] += l['analytic_lines']
20+ if l['name'] not in line2[tmp]['name']: line2[tmp]['name'] += " - "+l['name']
21 else:
22 line2[tmp] = l
23 line = []

Subscribers

People subscribed via source and target branches

to all changes: