account_move_line: improved account selection when partner changes

Bug #784006 reported by Stéphane Bidoul (Acsone)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

Hi,

When one create journal entries in journals of type 'general', the system does not propose an account when a partner is selected. For other journal types such as 'sale' and 'purchase', an account is proposed when a partner is selected.

The attached patch improves this behaviour as an attempt to solve the FIXME in that area of account_move_line.

Additionnally it removes the test on journal_type = 'expense' (expense not being a known journal type).

Best regards,

-sbi

Related branches

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :
summary: - [6.0] account_move_line: improved account selectino when partner changes
+ [6.0] account_move_line: improved account selection when partner changes
Amit Parik (amit-parik)
summary: - [6.0] account_move_line: improved account selection when partner changes
+ account_move_line: improved account selection when partner changes
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Stéphane,

I have tested as your description and get the same problem. And your attached patch is working fine for this. It will be merged soon in trunk addons.

Revision ID: <email address hidden>
Revision No: 4769

Thanks for contribution.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Hi,

Please not that your proposed merge does not reflect my patch entirely.

IMO, the last else should really be "elif not part.customer and part.supplier", because if a partner is both customer and partner you can't propose a meaningful account.

Best regards,

-sbi

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

I agree with Stephane we should keep elif instead of else.

Thanks Stephane for your contribution,
mra

Changed in openobject-addons:
milestone: none → 6.1
Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
qdp (OpenERP) (qdp) wrote :

fix released in revision 5082 of trunk addons

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.