Nehal Panchal (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-577521-nep into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577521-nep/+merge/118516
Hello,
'Invoiced & Paid' field of Purchase Order marked as True, even though invoice
is validated but not paid.
This fixes the issue
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577521-nep/+merge/118516
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-577521-nep.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2012-07-25 17:07:19 +0000
+++ purchase/purchase.py 2012-08-07 09:30:31 +0000
@@ -137,7 +137,11 @@
for purchase in self.browse(cursor, user, ids, context=context):
invoiced = False
if purchase.invoiced_rate == 100.00:
- invoiced = True
+ for invoice in purchase.invoice_ids:
+ if invoice.state != 'cancel':
+ invoiced = True
+ if invoice.state != 'paid':
+ invoiced = False
res[purchase.id] = invoiced
return res
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp