[hr_expense] Can not set a default account journal on expense creation

Bug #1268889 reported by Franck BRET
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 3

Bug Description

First steps to reproduce :

* activate developper mode
* create a new expense
* go on accouting tab
* select a dedicated account journal (type=purchase)
* through developper option select the option to set default value
* select "force journal" and set it to a default value for everyone
* save
* create a new expense
* look if the default account journal previously set is selected

The accouting journal is not set with the default value...

Going further through code, when trying to set a default value at expense object creation, using _defaults dict doesn't help too, no default value set for journal account...

The only current way to accomplish that is to override the onchange_currency_id method to force it returns an empty {'values': {}} dict.

I suspect that the on_change_currency_id should not use the currency_id in the search domain.

Tags: 7.0
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello,

I have checked this issue with trunk as well with 7.0 . But for trunk due to this lp:1264264 bug error I am not able to reproduce it, For stable 7.0 the issue is occur .

So, Currently for both I am confirming this issue . @R&D please check above mention bug number, and then try to reproduce it for trunk.

Thank you,

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
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.