meeting_summary.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <openerp>
  2. <data>
  3. <record model="ir.ui.view" id="jc_cooperation_meeting_summary_list">
  4. <field name="name">会议纪要列表</field>
  5. <field name="model">jc_cooperation.meeting_summary</field>
  6. <field name="arch" type="xml">
  7. <tree>
  8. <field name="id"/>
  9. <field name="name"/>
  10. <field name="bill_state"/>
  11. <field name="remark"/>
  12. </tree>
  13. </field>
  14. </record>
  15. <record model="ir.ui.view" id="jc_cooperation_meeting_summary_edit">
  16. <field name="name">会议纪要新建</field>
  17. <field name="model">jc_cooperation.meeting_summary</field>
  18. <field name="arch" type="xml">
  19. <form>
  20. <style>
  21. .o_form_view .o_form_sheet_bg .o_form_sheet{
  22. max-width: 99%;
  23. }
  24. </style>
  25. <header>
  26. <field name="id" attrs="{'invisible': True}"/>
  27. <field name="can_check" attrs="{'invisible': True}"/>
  28. <field name="can_uncheck" attrs="{'invisible': True}"/>
  29. <field name="can_finish" attrs="{'invisible': True}"/>
  30. <field name="can_unfinish" attrs="{'invisible': True}"/>
  31. <field name="can_nullify" attrs="{'invisible': True}"/>
  32. <field name="can_un_nullify" attrs="{'invisible': True}"/>
  33. <label string="单据状态:" for="bill_state"/>
  34. <field name="bill_state" readonly="1" attrs="{'invisible': [('id', '==', False)]}"/>
  35. <button name="check" string="审核" type="object" class="oe_highlight oe_read_only"
  36. attrs="{'invisible': ['|','|',('can_check','==',False),('bill_state', '!=', '1'),('id', '==', False)]}"/>
  37. <button name="un_check" string="撤销" type="object"
  38. class="oe_highlight oe_read_only"
  39. attrs="{'invisible': ['|',('can_uncheck','==',False),('bill_state', '!=', '10')]}"/>
  40. <button name="finish" string="完毕" type="object"
  41. class="oe_highlight oe_read_only"
  42. attrs="{'invisible': ['|',('can_finish','==',False),('bill_state', '!=', '10')]}"/>
  43. <button name="un_finish" string="撤销完毕" type="object"
  44. class="oe_highlight oe_read_only"
  45. attrs="{'invisible': ['|',('can_unfinish','==',False),('bill_state', '!=', '20')]}"/>
  46. <button name="nullify" string="作废" type="object"
  47. class="oe_highlight oe_read_only"
  48. attrs="{'invisible': ['|',('can_nullify','==',False),('bill_state', '!=', '1')]}"/>
  49. <button name="un_nullify" string="撤销作废" type="object"
  50. class="oe_highlight oe_read_only"
  51. attrs="{'invisible': ['|',('can_un_nullify','==',False),('bill_state', '!=', '-1')]}"/>
  52. <!-- <button name="print_quotation" string="打印" type="object" class="btn-primary"-->
  53. <!-- attrs="{'invisible': [('id', '==', False)]}"/>-->
  54. <button name="do_customer_setting" string="个性设置" type="object"
  55. attrs="{'invisible': [('bill_state', '!=', '1')]}"/>
  56. </header>
  57. <sheet>
  58. <group col="2" string="会议纪要">
  59. <field name="conference_theme" options="{'no_open':True,'no_create':True}"/>
  60. </group>
  61. <group col="2">
  62. <field name="attendees" options="{'no_open':True,'no_create':True}"/>
  63. </group>
  64. <group name="group_top" col="8">
  65. <field name="presenter" options="{'no_open':True,'no_create':True}"/>
  66. <field name="recorder" options="{'no_open':True,'no_create':True}"/>
  67. <field name="meeting_type_id" options="{'no_open':True,'no_create':True}"/>
  68. <field name="department_id" options="{'no_open':True,'no_create':True}"/>
  69. <field name="date" options="{'no_open':True,'no_create':True}"/>
  70. <field name="company_id" options="{'no_open':True,'no_create':True}"/>
  71. </group>
  72. <group col="2">
  73. <field name="meeting_content" options="{'no_open':True,'no_create':True}"/>
  74. </group>
  75. <group name="group_operator" col="4">
  76. <field name="create_uid" options="{'no_open':True,'no_create':True}"/>
  77. <field name="check_uid" options="{'no_open':True,'no_create':True}"/>
  78. </group>
  79. </sheet>
  80. </form>
  81. </field>
  82. </record>
  83. <record model="ir.ui.view" id="meeting_summary_search_view">
  84. <field name="name">会议纪要.search</field>
  85. <field name="model">jc_cooperation.meeting_summary</field>
  86. <field name="arch" type="xml">
  87. <search>
  88. <field name="name"/>
  89. <field name="remark"/>
  90. <filter name="not_checked_bill" string="未审核"
  91. domain="[('bill_state', '=', '1')]"/>
  92. <filter name="checked_bill" string="已审核"
  93. domain="[('bill_state', '=', '10')]"/>
  94. <filter name="finished_bill" string="已完毕"
  95. domain="[('bill_state', '=', '20')]"/>
  96. <group string="Group By">
  97. <filter name="by_bill_state" string="单据状态"
  98. context="{'group_by': 'bill_state'}"/>
  99. </group>
  100. </search>
  101. </field>
  102. </record>
  103. <record id="meeting_summary_check_server" model="ir.actions.server">
  104. <field name="name">审核</field>
  105. <field name="model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
  106. <field name="binding_model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
  107. <field name="state">code</field>
  108. <!-- ALTER TABLE ir_act_server ALTER COLUMN activity_user_type DROP NOT NULL;-->
  109. <!-- <field name="activity_user_type">generic</field>-->
  110. <field name="code">
  111. records.batch_check()
  112. </field>
  113. </record>
  114. <record id="meeting_summary_un_check_server" model="ir.actions.server">
  115. <field name="name">撤销审核</field>
  116. <field name="model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
  117. <field name="binding_model_id" ref="jc_cooperation.model_jc_cooperation_meeting_summary"/>
  118. <field name="state">code</field>
  119. <!-- ALTER TABLE ir_act_server ALTER COLUMN activity_user_type DROP NOT NULL;-->
  120. <!-- <field name="activity_user_type">generic</field>-->
  121. <field name="code">
  122. records.batch_un_check()
  123. </field>
  124. </record>
  125. <record model="ir.actions.act_window" id="jc_cooperation_meeting_summary_action_window">
  126. <field name="name">会议纪要</field>
  127. <field name="res_model">jc_cooperation.meeting_summary</field>
  128. <field name="view_mode">tree,form</field>
  129. </record>
  130. <menuitem name="会议纪要" id="jc_cooperation.menu_meeting_summary" parent="jc_cooperation_menu_root"
  131. action="jc_cooperation_meeting_summary_action_window" sequence="3"/>
  132. </data>
  133. </openerp>