Anup(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-6048-ach into
lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-6048-ach/+merge/63219
Hello,
There are issues with the fields invoiced and received with group by on
purchase orders tree view.
To see the problem follow the given steps.
1. Create few purchase orders with different partners.
2. Receive some and pay the invoice for some.
3. In purchase order tree view select the Group by Supplier.
4. You'll see that the grouped values of invoiced and received are 0.
I have fixed the issue.
Kindly share your views.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-6048-ach/+merge/63219
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-6048-ach.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2011-05-17 11:44:45 +0000
+++ purchase/purchase.py 2011-06-02 11:01:19 +0000
@@ -185,9 +185,9 @@
'invoice_ids': fields.many2many('account.invoice', 'purchase_invoice_rel', 'purchase_id', 'invoice_id', 'Invoices', help="Invoices generated for a purchase order"),
'picking_ids': fields.one2many('stock.picking', 'purchase_id', 'Picking List', readonly=True, help="This is the list of picking list that have been generated for this purchase"),
'shipped':fields.boolean('Received', readonly=True, select=True, help="It indicates that a picking has been done"),
- 'shipped_rate': fields.function(_shipped_rate, method=True, string='Received', type='float'),
+ 'shipped_rate': fields.function(_shipped_rate, method=True, string='Received', type='float', store=True, group_operator="avg"),
'invoiced': fields.function(_invoiced, method=True, string='Invoiced & Paid', type='boolean', help="It indicates that an invoice has been paid"),
- 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float'),
+ 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float', store=True, group_operator="avg"),
'invoice_method': fields.selection([('manual','Manual'),('order','From Order'),('picking','From Picking')], 'Invoicing Control', required=True,
help="From Order: a draft invoice will be pre-generated based on the purchase order. The accountant " \
"will just have to validate this invoice for control.\n" \
_______________________________________________
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