~therp-nl/openerp-web/7.0-lp1013636-x2m_honour_required_attribute

« back to all changes in this revision

Viewing changes to addons/web_diagram/controllers/main.py

[MERGE] from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
            for i, fld in enumerate(visible_node_fields):
116
116
                n['options'][node_fields_string[i]] = act[fld]
117
117
 
118
 
        id_model = req.session.model(model).read([id],['name'], req.session.context)[0]['name']
 
118
        _id, name = req.session.model(model).name_get([id], req.session.context)[0]
119
119
        return dict(nodes=nodes,
120
120
                    conn=connectors,
121
 
                    id_model=id_model,
 
121
                    name=name,
122
122
                    parent_field=graphs['node_parent_field'])