From: Olivier Dony Date: Fri, 30 Nov 2012 16:18:09 +0000 (+0100) Subject: [MERGE] Fix sale.order.line's `invoiced` flag, as part of forward-port of 6.1 server... X-Git-Tag: 7.0-server~681 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=a1d79115e598549944a7cb793d258bfbd814d848;p=odoo%2Fodoo.git [MERGE] Fix sale.order.line's `invoiced` flag, as part of forward-port of 6.1 server bugfixes After forward-porting the 6.1 server bugfixes to trunk, a hidden bug was revealed in the way sale.order.line's `invoiced` field is updated. It makes the sale/test/cancel_order.yml test fail, because the "recreate invoice" action does not work properly if there are multiple cancelled invoices, due to incorrect and outdated `invoiced` values on sale.order.lines. By replacing the invoiced field with a stored fields.function we simplify the code and fix this incorrect behavior at the same time. bzr revid: odo@openerp.com-20121130161809-0sf3z8k2530ze2zl --- a1d79115e598549944a7cb793d258bfbd814d848