Journal cannot be defaulted in Customer Invoice Form

Bug #1167639 reported by Balaji Kannan
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 3

Bug Description

I have 5 journals of type "sale". I have set the third journal in the list to be the default. However, when new customer invoices are created, the first journal in the list always gets applied.

Result observed: If the default journal is not the 1st one in the list (the order is done on the Journal Code), then the default is not being set.

Result Expected: The default (third journal in the list) should be applied to the journal field.

For e.g.,

a. Be in the developer mode
b. set the following journals of type "Sale"

1. Code="EBay", Name="eBay"
2. Code="LS", Name="Local Sales"
3. Code="SAJ" Name="Sales Journal"

c. Create a new customer invoice and select "Sales Journal" in the journal field.
d. Set the default for all users for this field.
e. Discard the customer invoice.
f. Create a new customer invoice.
g. Note that the journal shows "eBay" instead of "Sales Journal"

Version: OpenERP 7.0

Web: 3867
Server: 4907
Addons: 8927

Server OS: Linux Debian 2.6.32-5-amd64
Client OS: Windows 8 64-bit
Browser: Google Chrome / Firefox

Amit Parik (amit-parik)
affects: openobject-client-web → openobject-addons
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
Balaji Kannan (bkannan) wrote :

This is becoming a problem with users forgetting to update the journal to the right one. Can this issue be prioritized?

Revision history for this message
Milan Tribuson (milan-infokom) wrote :

I've tried to change this through code and it doesn't work. I've tried inheriting the field and changing the default function. I've even tried to change the default_get function on account.invoice module and nothing helps. It will always be the first one by default... ??

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.