Cannot 'set as default' Warehouse field in PO

Bug #780418 reported by Eric Caudal - www.elico-corp.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

Bug Description

I try to 'set as default some fields like warehouse in PO or Language in partners and even if the information is correctly stored in ir.values, the form does not take into account the defaulted values

Related branches

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Eric Caudal,

I have checked your issue with latest stable-6 and trunk , it is working correctly as per i set as default value
i have attached video for your reference so please check it with latest code and notify us where you face the problem.

Thank you.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote : Re: [Bug 780418] Re: Cannot 'set as default' Warehouse field in PO

After some investigation, it seems that there is another default value
in ir.values (Warehouse_id for all). The problem is that openerp reads
the first value 'for all' and never gets to the default value for the
user...
I dont know is this to be considered normal but this is very annoying
for the users and I couldnot find any menu to alter the ir.value
defaults values.

--
Eric

affects: openobject-addons → openobject-client
Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

Following steps to reproduce the bug:

(1) Create New SO
(2) Open tab.. "Other Information"
(3) Selection field Piking Policy, try to set as default for particular user(it is not working)

Thank You.

Changed in openobject-client:
status: Confirmed → In Progress
Revision history for this message
Ravi Gadhia (OpenERP) (rga-openerp) wrote :

Hello Eric Caudal,
          After investigation it seems framework work problem. let me explain...
          In OpenERP you can set two type of default value. 1) for current log in user. 2) for all user (it differentiate by user_id of ir.values object, user_id = Null for all user)
          for above example sale installation wizard step--> Configure Picking Policy for Sales Order set default value for all user so it's create record in ir.values with Null user_id. now using context menu again set default value and it's create new record in ir.values with current user_id.
         on default get request of client, server should check is there any default value for particular login user ? if not then check default value of all user and return.
         but currently server give default value without checking user_id.

Changed in openobject-client:
assignee: OpenERP sa GTK client R&D (openerp-dev-gtk) → OpenERP's Framework R&D (openerp-dev-framework)
affects: openobject-client → openobject-server
Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

Hi Ravi Gadhia
Thanks for the explanation: I arrived to the same conclusion.
Have a nice day
--
Eric

Revision history for this message
Ravi Gadhia (OpenERP) (rga-openerp) wrote :

Hello Eric Caudal,
       It has been fixed in lp:~openerp-dev/openobject-server/trunk-bug-780418-rga. it will merge soon with trunk server

Changed in openobject-server:
status: In Progress → Fix Committed
Revision history for this message
Vo Minh Thu (thu) wrote :

The fix has been merged into the trunk at revision 3422. Thanks for the bug report.

Changed in openobject-server:
status: Fix Committed → Fix Released
Revision history for this message
Assis Ngolo (figassis) wrote :

This issue was not fixed. I am currently on openerp version 6.0.3 and the system simply ignores all default values in ir.values. I can't change them from the GTK, the web client or the database itelf.

Revision history for this message
Kyle Waid (midwest) wrote :

Go to warehouse configuration, set your default input location from stock to what you want

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.