[Openerp-community-reviewer] [Merge] lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into lp:ocb-addons/6.1

2014-06-17 Thread noreply
The proposal to merge 
lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into 
lp:ocb-addons/6.1 has been updated.

Status: Needs review = Merged

For more details, see:
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
-- 
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
Your team OpenERP Community Backports is subscribed to branch lp:ocb-addons/6.1.

-- 
Mailing list: https://launchpad.net/~openerp-community-reviewer
Post to : openerp-community-reviewer@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community-reviewer
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community-reviewer] [Merge] lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into lp:ocb-addons/6.1

2014-06-07 Thread Pedro Manuel Baeza
Review: Approve code review

Guewen, could you please check your MP review?

I see OK to add extra clamp on bar percentage, and it doesn't see that OpenERP 
S.A. it's going to merge OPW branch.

Regards.
-- 
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
Your team OpenERP Community Backports is subscribed to branch lp:ocb-addons/6.1.

-- 
Mailing list: https://launchpad.net/~openerp-community-reviewer
Post to : openerp-community-reviewer@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community-reviewer
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community-reviewer] [Merge] lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into lp:ocb-addons/6.1

2014-06-06 Thread Omar (Pexego)
Review: Approve code review

LGTM
-- 
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
Your team OpenERP Community Backports is subscribed to branch lp:ocb-addons/6.1.

-- 
Mailing list: https://launchpad.net/~openerp-community-reviewer
Post to : openerp-community-reviewer@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community-reviewer
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community-reviewer] [Merge] lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into lp:ocb-addons/6.1

2014-04-28 Thread Stefan Rijnhart (Therp)
Review: Approve code review

Tnx!
-- 
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
Your team OpenERP Community Backports Team is subscribed to branch 
lp:ocb-addons/6.1.

-- 
Mailing list: https://launchpad.net/~openerp-community-reviewer
Post to : openerp-community-reviewer@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community-reviewer
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community-reviewer] [Merge] lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into lp:ocb-addons/6.1

2014-03-07 Thread Yann Papouin
No changes for me, It's just my merge proposal that add a limit to 100% to the 
rate value
-- 
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
Your team OpenERP Community Backports Team is subscribed to branch 
lp:ocb-addons/6.1.

-- 
Mailing list: https://launchpad.net/~openerp-community-reviewer
Post to : openerp-community-reviewer@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community-reviewer
More help   : https://help.launchpad.net/ListHelp


[Openerp-community-reviewer] [Merge] lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into lp:ocb-addons/6.1

2014-02-06 Thread Yann Papouin
Yann Papouin has proposed merging 
lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate into 
lp:ocb-addons/6.1.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1077931 in OpenERP Community Backports (Addons): [6.1][7.0][trunk] 
purchase progress bar invoiced_rate wrong
  https://bugs.launchpad.net/ocb-addons/+bug/1077931

For more details, see:
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
-- 
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate/+merge/205145
Your team OpenERP Community Backports Team is requested to review the proposed 
merge of lp:~yann-papouin/ocb-addons/6.1-bug-1077931-fix-purchase-invoiced-rate 
into lp:ocb-addons/6.1.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py	2013-11-20 01:17:39 +
+++ purchase/purchase.py	2014-02-06 12:31:06 +
@@ -90,10 +90,10 @@
 for purchase in self.browse(cursor, user, ids, context=context):
 tot = 0.0
 for invoice in purchase.invoice_ids:
-if invoice.state not in ('draft','cancel'):
+if invoice.state not in ('draft','cancel') and invoice.type == 'in_invoice':
 tot += invoice.amount_untaxed
 if purchase.amount_untaxed:
-res[purchase.id] = tot * 100.0 / purchase.amount_untaxed
+res[purchase.id] = min(100.0, tot * 100.0 / purchase.amount_untaxed)
 else:
 res[purchase.id] = 0.0
 return res

-- 
Mailing list: https://launchpad.net/~openerp-community-reviewer
Post to : openerp-community-reviewer@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community-reviewer
More help   : https://help.launchpad.net/ListHelp