12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <openerp>
- <data>
- <!-- explicit list view definition -->
- <record model="ir.ui.view" id="archives_button_show_config_list">
- <field name="name">按钮显示设置列表</field>
- <field name="model">archives.button_show_config</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name"/>
- <!-- <field name="coding"/>-->
- <!-- <field name="company_id"/>-->
- <field name="button_type"/>
- <field name="available"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="archives_button_show_config_edit">
- <field name="name">按钮显示设置新建</field>
- <field name="model">archives.button_show_config</field>
- <field name="arch" type="xml">
- <form>
- <header>
- <field name="id" attrs="{'invisible': True}"/>
- <field name="available" attrs="{'invisible': True}"/>
- <button name="set_available" string="启用" type="object" class="oe_highlight oe_read_only"
- attrs="{'invisible': [('available','==',True)]}"/>
- <button name="un_set_available" string="停用" type="object" class="oe_highlight oe_read_only"
- attrs="{'invisible': [('available','==',False)]}"/>
- </header>
- <sheet>
- <group name="group_top" col='4'>
- <field name="name"/>
- <field name="button_type"/>
- </group>
- <notebook>
- <page string="按钮显示设置信息">
- <field name="detail" mode="tree">
- <tree editable="bottom">
- <field name="cus_model_id" options="{'no_open':True,'no_create':True}"/>
- <field name="remark"/>
- </tree>
- </field>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="button_show_config_search_view">
- <field name="name">archives.button_show_config.search</field>
- <field name="model">archives.button_show_config</field>
- <field name="arch" type="xml">
- <search>
- <field name="name"/>
- <group string="Group By">
- <filter name="by_button_type" string="按钮类型"
- context="{'group_by': 'button_type'}"/>
- </group>
- </search>
- </field>
- </record>
- <!-- actions opening views on models -->
- <record model="ir.actions.act_window" id="archives_button_show_config_action_window">
- <field name="name">按钮显示设置</field>
- <field name="res_model">archives.button_show_config</field>
- <field name="view_mode">tree,form</field>
- </record>
- <!-- actions -->
- <menuitem name="按钮显示设置" id="archives.menu_button_show_config" parent="archives.menu_system"
- action="archives_button_show_config_action_window" sequence='26'/>
- </data>
- </openerp>
|