[FIX] contracts: use correct quantity field to avoid mismatching values
authorOlivier Dony <odo@openerp.com>
Thu, 10 Jan 2013 17:11:00 +0000 (18:11 +0100)
committerOlivier Dony <odo@openerp.com>
Thu, 10 Jan 2013 17:11:00 +0000 (18:11 +0100)
commit943453798652f3749f1b40fb9f350be743a9eac0
tree9a4b9d4f428003b2263c6c618a31ffc786dee424
parent34b330c5fa409aa342be5896d7d84101fced58a7
[FIX] contracts: use correct quantity field to avoid mismatching values

`quantity` is a recursive sum of quantities of all types, including child accounts,
while `hours_quantity` is the local sum of quantities in `general` analytic journals.
The latter is what corresponds to the `Units consumed` value for contracts, and what
is used to compute the `remaining_hours`, so we must used that.

bzr revid: odo@openerp.com-20130110171100-el2g1i3ou89p2yjc
addons/account_analytic_analysis/account_analytic_analysis_view.xml