Journal entry search by partner is unreliable

Bug #1154263 reported by Don Kirkby
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

Searching for journal entries using the partner field, some journal entries don't match, even though they display the partner you're looking for in the tree view.

Steps to reproduce:
1. Create a new database with sample data.
2. Install the account_voucher and account_accountant modules. Accept all the default values during the configuration steps.
3. Reload the menu, then choose Accounting: Customers: Customer Invoices.
4. Click the New button, and type Agrolait as the customer.
5. Add a new line item, type "service" as the description, 100.00 as the unit price, and 200000 as the account.
6. Click the Save & Close button.
7. Click the Validate button to confirm the invoice.
8. Click the Payment button to pay the invoice.
9. Choose Cash as the payment method, and click the Validate button to record the payment.
10. From the Accounting menu, choose Journal Entries: Journal Entries.
11. You should now see two journal entries, one in the cash journal, the other in the sales journal. Both have partner Agrolait.
12. Type Agrolait in the Partner search field, and click the Find button.
Expected result: you should still see both journal entries.
Actual result: the cash entry does not match the search and disappears.

Analysis:
The account_move.partner_id field is a related field with the store flag set, but it doesn't trigger an update when only the account_move_line table is changed. You have to save the entire account_move to trigger an update.

Tested with revision 7176 of lp:~openerp/openobject-addons/6.1

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :
Changed in openobject-addons:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.