http://codereview.appspot.com/2237047/diff/1/invoice.py File invoice.py (right): http://codereview.appspot.com/2237047/diff/1/invoice.py#newcode2475 invoice.py:2475: if line_id and line_id not in line_ids: This will ...
13 years, 7 months ago
(2010-09-28 13:33:14 UTC)
#1
http://codereview.appspot.com/2237047/diff/1/invoice.py File invoice.py (right): http://codereview.appspot.com/2237047/diff/1/invoice.py#newcode2485 invoice.py:2485: if line_id and line_id not in line_ids: On 2010/09/28 ...
13 years, 7 months ago
(2010-09-28 13:54:53 UTC)
#2
http://codereview.appspot.com/2237047/diff/1/invoice.py File invoice.py (right): http://codereview.appspot.com/2237047/diff/1/invoice.py#newcode2475 invoice.py:2475: if line_id and line_id not in line_ids: On 2010/09/28 ...
13 years, 7 months ago
(2010-09-30 10:24:10 UTC)
#3
http://codereview.appspot.com/2237047/diff/1/invoice.py
File invoice.py (right):
http://codereview.appspot.com/2237047/diff/1/invoice.py#newcode2475
invoice.py:2475: if line_id and line_id not in line_ids:
On 2010/09/28 13:33:14, ced wrote:
> This will always happen as line_id is a payment line.
> We must find why before it was not the case.
We have checked in our databases. Payment with write-off has been used only one
time before, 9 months ago on a 1.4 server, and it seems it worked nice at this
time.
Many things have occured in code since. It will be hard to find why this problem
appears now.
13 years, 7 months ago
(2010-10-01 19:23:24 UTC)
#4
On 2010/09/30 10:24:10, Sednacom wrote:
> http://codereview.appspot.com/2237047/diff/1/invoice.py
> File invoice.py (right):
>
> http://codereview.appspot.com/2237047/diff/1/invoice.py#newcode2475
> invoice.py:2475: if line_id and line_id not in line_ids:
> On 2010/09/28 13:33:14, ced wrote:
> > This will always happen as line_id is a payment line.
> > We must find why before it was not the case.
>
> We have checked in our databases. Payment with write-off has been used only
one
> time before, 9 months ago on a 1.4 server, and it seems it worked nice at this
> time.
> Many things have occured in code since. It will be hard to find why this
problem
> appears now.
For me the issue was introduced in the changeset 9654b3ad3f5b (which was done
for 1.4.0).
The value of the field payment_lines of invoice was read before the call to
pay_invoice which create line_id. So before the changeset the value of
payment_lines did not included line_id but with the changeset the field is
re-computed and then it is included.
http://codereview.appspot.com/2237047/diff/1/invoice.py File invoice.py (right): http://codereview.appspot.com/2237047/diff/1/invoice.py#newcode2476 invoice.py:2476: line_ids += [line_id] This line must be removed.
13 years, 7 months ago
(2010-10-01 19:24:30 UTC)
#5
Issue 2237047: Fix for issue1703
(Closed)
Created 13 years, 7 months ago by Sednacom
Modified 13 years, 7 months ago
Reviewers: ced
Base URL:
Comments: 5