default '', or None chained_location_type in stock/stock.py is not valid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
on trunk,
If you try to create a new stock.location ( Stock Management > Configuration > Locations > New ), then, by default, the required chained_
the following code:
[...]
_defaults = {
'active': lambda *a: 1,
'usage': lambda *a: 'internal',
...
The trouble is that you can't save it like that! Even if you manually select 'None' in the select box, you can't save it. (the only workarround I have is to select 'Fixed Location'.
I think the default 'None' should just be valid instead.
Hope this helps,
Raphaël Valyi.
I think it has been fixed by this commit http:// bazaar. launchpad. net/~openerp/ openobject- addons/ trunk/revision/ 1915
but I'll test it soon and confirm.