123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <openerp>
- <data>
- <record model="ir.ui.view" id="jc_cooperation_meeting_summary_list">
- <field name="name">会议纪要列表</field>
- <field name="model">jc_cooperation.meeting_summary</field>
- <field name="arch" type="xml">
- <tree>
- <field name="id"/>
- <field name="name"/>
- <field name="bill_state"/>
- <field name="remark"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="jc_cooperation_meeting_summary_edit">
- <field name="name">会议纪要新建</field>
- <field name="model">jc_cooperation.meeting_summary</field>
- <field name="arch" type="xml">
- <form>
- <style>
- .o_form_view .o_form_sheet_bg .o_form_sheet{
- max-width: 99%;
- }
- </style>
- <header>
- <field name="id" attrs="{'invisible': True}"/>
- <field name="can_check" attrs="{'invisible': True}"/>
- <field name="can_uncheck" attrs="{'invisible': True}"/>
- <field name="can_finish" attrs="{'invisible': True}"/>
- <field name="can_unfinish" attrs="{'invisible': True}"/>
- <field name="can_nullify" attrs="{'invisible': True}"/>
- <field name="can_un_nullify" attrs="{'invisible': True}"/>
- <label string="单据状态:" for="bill_state"/>
- <field name="bill_state" readonly="1" attrs="{'invisible': [('id', '==', False)]}"/>
- <button name="check" string="审核" type="object" class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|','|',('can_check','==',False),('bill_state', '!=', '1'),('id', '==', False)]}"/>
- <button name="un_check" string="撤销" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_uncheck','==',False),('bill_state', '!=', '10')]}"/>
- <button name="finish" string="完毕" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_finish','==',False),('bill_state', '!=', '10')]}"/>
- <button name="un_finish" string="撤销完毕" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_unfinish','==',False),('bill_state', '!=', '20')]}"/>
- <button name="nullify" string="作废" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_nullify','==',False),('bill_state', '!=', '1')]}"/>
- <button name="un_nullify" string="撤销作废" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_un_nullify','==',False),('bill_state', '!=', '-1')]}"/>
- <!-- <button name="print_quotation" string="打印" type="object" class="btn-primary"-->
- <!-- attrs="{'invisible': [('id', '==', False)]}"/>-->
- <button name="do_customer_setting" string="个性设置" type="object"
- attrs="{'invisible': [('bill_state', '!=', '1')]}"/>
- </header>
- <sheet>
- <group col="2" string="会议纪要">
- <field name="conference_theme" options="{'no_open':True,'no_create':True}"/>
- </group>
- <group col="2">
- <field name="attendees" options="{'no_open':True,'no_create':True}"/>
- </group>
- <group name="group_top" col="8">
- <field name="presenter" options="{'no_open':True,'no_create':True}"/>
- <field name="recorder" options="{'no_open':True,'no_create':True}"/>
- <field name="meeting_type_id" options="{'no_open':True,'no_create':True}"/>
- <field name="department_id" options="{'no_open':True,'no_create':True}"/>
- <field name="date" options="{'no_open':True,'no_create':True}"/>
- <field name="company_id" options="{'no_open':True,'no_create':True}"/>
- </group>
- <group col="2">
- <field name="meeting_content" options="{'no_open':True,'no_create':True}"/>
- </group>
- <group name="group_operator" col="4">
- <field name="create_uid" options="{'no_open':True,'no_create':True}"/>
- <field name="check_uid" options="{'no_open':True,'no_create':True}"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="meeting_summary_search_view">
- <field name="name">会议纪要.search</field>
- <field name="model">jc_cooperation.meeting_summary</field>
- <field name="arch" type="xml">
- <search>
- <field name="name"/>
- <field name="remark"/>
- <filter name="not_checked_bill" string="未审核"
- domain="[('bill_state', '=', '1')]"/>
- <filter name="checked_bill" string="已审核"
- domain="[('bill_state', '=', '10')]"/>
- <filter name="finished_bill" string="已完毕"
- domain="[('bill_state', '=', '20')]"/>
- <group string="Group By">
- <filter name="by_bill_state" string="单据状态"
- context="{'group_by': 'bill_state'}"/>
- </group>
- </search>
- </field>
- </record>
- <record id="meeting_summary_check_server" model="ir.actions.server">
- <field name="name">审核</field>
- <field name="model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
- <field name="binding_model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
- <field name="state">code</field>
- <!-- ALTER TABLE ir_act_server ALTER COLUMN activity_user_type DROP NOT NULL;-->
- <!-- <field name="activity_user_type">generic</field>-->
- <field name="code">
- records.batch_check()
- </field>
- </record>
- <record id="meeting_summary_un_check_server" model="ir.actions.server">
- <field name="name">撤销审核</field>
- <field name="model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
- <field name="binding_model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
- <field name="state">code</field>
- <!-- ALTER TABLE ir_act_server ALTER COLUMN activity_user_type DROP NOT NULL;-->
- <!-- <field name="activity_user_type">generic</field>-->
- <field name="code">
- records.batch_un_check()
- </field>
- </record>
- <record model="ir.actions.act_window" id="jc_cooperation_meeting_summary_action_window">
- <field name="name">会议纪要</field>
- <field name="res_model">jc_cooperation.meeting_summary</field>
- <field name="view_mode">tree,form</field>
- </record>
- <menuitem name="会议纪要" id="jc_cooperation.menu_meeting_summary" parent="jc_cooperation_menu_root"
- action="jc_cooperation_meeting_summary_action_window" sequence="3"/>
- </data>
- </openerp>
|