diff options
| author | Ruchir Shukla <ruchir@bizzappdev.com> | 2014-06-21 11:48:42 +0530 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2014-08-12 17:30:49 +0200 |
| commit | b2f1c764cd8f89ac6eeaec21c1827df6c4e817b9 (patch) | |
| tree | 738caf4ca8708c592bcd216cc4163ee987df6d9b /addons/analytic_user_function | |
| parent | 7a50b3b057e17b689d945870449a2adde2b444bb (diff) | |
[FIX] account_anglo_saxon: avoid duplication of price difference lines
When computing the price difference lines, in move_line_get of account_anglo_saxon, we loop on the result of super call for each lines (n * n times) to compute the price difference.
The product_id was used to match the returned line and the original invoice line. This was wrong as we could get several lines with the same product_id (and then get n * n price difference lines).
This patch adds the line id to the result of move_line_get (from account) so that account_anglo_saxon can filter more efficiently and only get one price difference per invoice line.
Fixes #704
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions
