Fix null→false, stock seed data, action_get on model, FK order
- Normalize null DB values to false (Odoo convention) in web_search_read and web_read responses - Seed stock reference data: 6 locations, 1 warehouse, 3 picking types - Fix FK order: warehouse must be created before picking types - Move action_get from hardcoded dispatcher to res.users RegisterMethod - Add action_res_users_my (ID 103) to seedActions - Remove hardcoded action_get case from dispatchORM Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -629,20 +629,6 @@ func (s *Server) dispatchORM(env *orm.Environment, params CallKWParams) (interfa
|
||||
case "activity_format":
|
||||
return []interface{}{}, nil
|
||||
|
||||
case "action_get":
|
||||
// res.users.action_get() — returns the preference action
|
||||
// Mirrors: odoo/addons/base/models/res_users.py action_get()
|
||||
return map[string]interface{}{
|
||||
"type": "ir.actions.act_window",
|
||||
"name": "Change My Preferences",
|
||||
"res_model": "res.users",
|
||||
"view_mode": "form",
|
||||
"views": [][]interface{}{{false, "form"}},
|
||||
"target": "new",
|
||||
"res_id": env.UID(),
|
||||
"context": map[string]interface{}{},
|
||||
}, nil
|
||||
|
||||
case "action_archive":
|
||||
ids := parseIDs(params.Args)
|
||||
if len(ids) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user