@@ -198,9 +198,11 @@
|
||||
<field colspan="4" name="signature"/>
|
||||
</page>
|
||||
<page string="Groups">
|
||||
<label string="Groups are used to defined access rights on each screen and menu." align="0.0" colspan="4"/>
|
||||
<field colspan="4" nolabel="1" name="groups_id"/>
|
||||
</page>
|
||||
<page string="Roles">
|
||||
<label string="Roles are used to defined available actions, provided by workflows." align="0.0" colspan="4"/>
|
||||
<field colspan="4" nolabel="1" name="roles_id"/>
|
||||
</page>
|
||||
</notebook>
|
||||
|
||||
@@ -234,7 +234,8 @@ class ir_ui_menu(osv.osv):
|
||||
'child_id' : fields.one2many('ir.ui.menu', 'parent_id','Child ids'),
|
||||
'parent_id': fields.many2one('ir.ui.menu', 'Parent Menu', select=True),
|
||||
'groups_id': many2many_unique('res.groups', 'ir_ui_menu_group_rel',
|
||||
'menu_id', 'gid', 'Groups'),
|
||||
'menu_id', 'gid', 'Groups', help="If you put groups, the visibility of this menu will be based on these groups. "\
|
||||
"If this field is empty, Open ERP will compute visibility based on the related object's read access."),
|
||||
'complete_name': fields.function(_get_full_name, method=True,
|
||||
string='Complete Name', type='char', size=128),
|
||||
'icon': fields.selection(tools.icons, 'Icon', size=64),
|
||||
|
||||
@@ -153,7 +153,7 @@ class wkf_instance(osv.osv):
|
||||
_rec_name = 'res_type'
|
||||
_log_access = False
|
||||
_columns = {
|
||||
'wkf_id': fields.many2one('workflow', 'Workflow', ondelete='restrict', select=True),
|
||||
'wkf_id': fields.many2one('workflow', 'Workflow', ondelete='cascade', select=True),
|
||||
'uid': fields.integer('User ID'),
|
||||
'res_id': fields.integer('Resource ID', select=True),
|
||||
'res_type': fields.char('Resource Object', size=64, select=True),
|
||||
|
||||
@@ -55,6 +55,11 @@ class Bank(osv.osv):
|
||||
_defaults = {
|
||||
'active': lambda *a: 1,
|
||||
}
|
||||
def name_get(self, cr, uid, ids, context=None):
|
||||
result = []
|
||||
for bank in self.browse(cr, uid, ids, context):
|
||||
result.append((bank.id, (bank.bic and (bank.bic + ' - ') or '') + bank.name))
|
||||
return result
|
||||
|
||||
Bank()
|
||||
|
||||
|
||||
@@ -336,7 +336,10 @@
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form,tree</field>
|
||||
</record>
|
||||
<menuitem action="action_partner_customer_form_new" id="menu_partner_customer_form_new" parent="menu_partner_form"/>
|
||||
<menuitem
|
||||
action="action_partner_customer_form_new"
|
||||
sequence="50"
|
||||
id="menu_partner_customer_form_new" parent="menu_partner_form"/>
|
||||
|
||||
<record id="view_payterm_form" model="ir.ui.view">
|
||||
<field name="name">res.payterm</field>
|
||||
|
||||
+2
-5
@@ -938,16 +938,13 @@ class orm_template(object):
|
||||
parent.insertBefore(child, node)
|
||||
parent.removeChild(node)
|
||||
else:
|
||||
sib = node.nextSibling
|
||||
for child in node2.childNodes:
|
||||
if child.nodeType == child.ELEMENT_NODE:
|
||||
if pos == 'inside':
|
||||
node.appendChild(child)
|
||||
elif pos == 'after':
|
||||
sib = node.nextSibling
|
||||
if sib:
|
||||
node.parentNode.insertBefore(child, sib)
|
||||
else:
|
||||
node.parentNode.appendChild(child)
|
||||
node.parentNode.insertBefore(child, sib)
|
||||
elif pos=='before':
|
||||
node.parentNode.insertBefore(child, node)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user