机床注册按钮根据权限组区分

This commit is contained in:
qihao.gong@jikimo.com
2023-12-04 17:28:54 +08:00
parent 893aa2111c
commit 94c0b00c2d
6 changed files with 84 additions and 43 deletions

View File

@@ -50,7 +50,9 @@
<label for="enroll_machine_tool"/>
<div class="col-12 col-lg-6 o_setting_box" style="white-space: nowrap">
<button type="object" class="oe_highlight" name='enroll_machine_tool' string="机床注册"
attrs="{'invisible': [('equipment_type', '!=', '机床'), ('brand_id','!=',False),('type_id','!=',False),('control_system_id','!=',False)]}"/>
attrs="{'invisible': [('equipment_type', '!=', '机床'), ('brand_id','!=',False),
('type_id','!=',False),('control_system_id','!=',False),('code','!=', False)]}"
groups="sf_maintenance.sf_group_equipment_manager"/>
</div>
</xpath>
<xpath expr="//field[@name='category_id']" position="before">