odoo_dev 开发培训作业:图书管理系统
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

203 lines
9.7KB

  1. <?xml version="1.0" ?>
  2. <openerp>
  3. <data>
  4. <record id="task_company" model="ir.ui.view">
  5. <field name="name">res.company.bs</field>
  6. <field name="model">res.company</field>
  7. <field name="type">form</field>
  8. <field name="inherit_id" ref="base.view_company_form"/>
  9. <field name="arch" type="xml">
  10. <notebook position="inside">
  11. <page string="BS">
  12. <field name="company_bp_ids" nolabel="1"/>
  13. </page>
  14. </notebook>
  15. </field>
  16. </record>
  17. <!-- PLANS VIEWS -->
  18. <!-- tree view for a business plan -->
  19. <record model="ir.ui.view" id="company_bp_list_view">
  20. <field name="name">company.bp.list</field>
  21. <field name="model">company.bp</field>
  22. <field name="type">tree</field>
  23. <field name="arch" type="xml">
  24. <tree string="Business plans" >
  25. <field name="name"/>
  26. <field name="state" />
  27. </tree>
  28. </field>
  29. </record>
  30. <!-- Form view for a business plan -->
  31. <record model="ir.ui.view" id="company_bp_form_view">
  32. <field name="name">company.bp.form</field>
  33. <field name="model">company.bp</field>
  34. <field name="type">form</field>
  35. <field name="arch" type="xml">
  36. <form string="Software">
  37. <group col="8" colspan="4">
  38. <field name="name"/>
  39. <field name="state"/>
  40. <button string="Request validation" type="object" name="button_request_validation" states="draft" />
  41. <button string="Valid" type="object" name="button_valid" states="tobevalidated" />
  42. <button string="Obsolete" type="object" name="button_set_obsolete" states="valid" />
  43. <button string="Set to draft" type="object" name="button_set_draft" states="obsolete" />
  44. </group>
  45. <group col="6" colspan="4">
  46. <field name="start_date"/>
  47. <field name="end_date"/>
  48. <field name="validation_date"/>
  49. </group>
  50. <notebook colspan="4">
  51. <page string="Main">
  52. <separator string="Mission: what is our business and what it will be ?" colspan="2"/>
  53. <separator string="Positioning" colspan="2"/>
  54. <field name="mission" nolabel="1" colspan="2"/>
  55. <field name="positioning" nolabel="1" colspan="2"/>
  56. <separator string="Problems/risks to solve" colspan="2"/>
  57. <separator string="Annual targets" colspan="2"/>
  58. <field name="problems" nolabel="1" colspan="2"/>
  59. <field name="annual_targets" nolabel="1" colspan="2"/>
  60. </page>
  61. <page string="PEST">
  62. <separator string="Political" colspan="4"/>
  63. <field name="political" nolabel="1" colspan="4"/>
  64. <separator string="Economical" colspan="4"/>
  65. <field name="econo" nolabel="1" colspan="4"/>
  66. <separator string="Social" colspan="4"/>
  67. <field name="social" nolabel="1" colspan="4"/>
  68. <separator string="Technological" colspan="4"/>
  69. <field name="techno" nolabel="1" colspan="4"/>
  70. </page>
  71. <page string="Porter">
  72. <separator string="Customer" colspan="4"/>
  73. <field name="porter_customers" nolabel="1" colspan="4"/>
  74. <separator string="Suppliers" colspan="4"/>
  75. <field name="porter_suppliers" nolabel="1" colspan="4"/>
  76. <separator string="Competitors" colspan="4"/>
  77. <field name="porter_competitors" nolabel="1" colspan="4"/>
  78. <separator string="Entrants" colspan="4"/>
  79. <field name="porter_entrants" nolabel="1" colspan="4"/>
  80. <separator string="Substitutes" colspan="4"/>
  81. <field name="porter_substitutes" nolabel="1" colspan="4"/>
  82. </page>
  83. <page string="SWOT">
  84. <separator string="Strenghts" colspan="4"/>
  85. <field name="strenghts" nolabel="1" colspan="4"/>
  86. <separator string="Weaknesses" colspan="4"/>
  87. <field name="weaknesses" nolabel="1" colspan="4"/>
  88. <separator string="Opportunities" colspan="4"/>
  89. <field name="opportunities" nolabel="1" colspan="4"/>
  90. <separator string="Threats" colspan="4"/>
  91. <field name="threats" nolabel="1" colspan="4"/>
  92. </page>
  93. <page string="Strategy">
  94. <field name="strategy" nolabel="1" colspan="4"/>
  95. </page>
  96. <page string="Notes">
  97. <field name="notes" nolabel="1" colspan="4"/>
  98. </page>
  99. </notebook>
  100. </form>
  101. </field>
  102. </record>
  103. <!-- search view for a business plan -->
  104. <record model="ir.ui.view" id="company_bp_search_view">
  105. <field name="name">company.bp.search.form</field>
  106. <field name="model">company.bp</field>
  107. <field name="type">search</field>
  108. <field name="arch" type="xml">
  109. <search string="Business strategy">
  110. <field name="name" select='1'/>
  111. <filter string="State" icon="terp-partner"
  112. name = "by_state"
  113. domain="[]" help="State"
  114. context="{'group_by':'state'}" />
  115. </search>
  116. </field>
  117. </record>
  118. <!-- PLANS TARGET VIEWS -->
  119. <!-- tree view for a business plan target -->
  120. <record model="ir.ui.view" id="company_bp_targets_list_view">
  121. <field name="name">company.target.list</field>
  122. <field name="model">company.target</field>
  123. <field name="type">tree</field>
  124. <field name="arch" type="xml">
  125. <tree string="Period's targets" >
  126. <field name="name"/>
  127. <field name="result"/>
  128. <field name="is_achived"/>
  129. </tree>
  130. </field>
  131. </record>
  132. <!-- Form view for a business plan target -->
  133. <record model="ir.ui.view" id="company_bp_targets_form_view">
  134. <field name="name">company.target.form</field>
  135. <field name="model">company.target</field>
  136. <field name="type">form</field>
  137. <field name="arch" type="xml">
  138. <form string="Target">
  139. <group>
  140. <field name="name"/>
  141. <field name="is_achived"/>
  142. <field name="result" colspan="4"/>
  143. </group>
  144. <separator string="Notes" colspan="4"/>
  145. <field name="notes" nolabel="1" colspan="4"/>
  146. </form>
  147. </field>
  148. </record>
  149. <!-- PLANS PROBLEM VIEWS -->
  150. <!-- tree view for a business plan problem -->
  151. <record model="ir.ui.view" id="company_bp_problem_list_view">
  152. <field name="name">company.problem.list</field>
  153. <field name="model">company.problem</field>
  154. <field name="type">tree</field>
  155. <field name="arch" type="xml">
  156. <tree string="Period's problems" >
  157. <field name="name"/>
  158. <field name="solution"/>
  159. <field name="is_achived"/>
  160. </tree>
  161. </field>
  162. </record>
  163. <!-- Form view for a business plan problem -->
  164. <record model="ir.ui.view" id="company_bp_problem_form_view">
  165. <field name="name">company.problem.form</field>
  166. <field name="model">company.problem</field>
  167. <field name="type">form</field>
  168. <field name="arch" type="xml">
  169. <form string="Problem">
  170. <group>
  171. <field name="name"/>
  172. <field name="is_achived"/>
  173. <field name="solution" colspan="4"/>
  174. </group>
  175. <separator string="Notes" colspan="4"/>
  176. <field name="notes" nolabel="1" colspan="4"/>
  177. </form>
  178. </field>
  179. </record>
  180. <!-- MENUS & ACTIONS -->
  181. <record id="action_open_bp" model="ir.actions.act_window">
  182. <field name="name">Company Business Strategy</field>
  183. <field name="type">ir.actions.act_window</field>
  184. <field name="res_model">company.bp</field>
  185. <field name="view_mode">tree,form</field>
  186. <field name="view_id" ref="company_bp_list_view"/>
  187. <field name="search_view_id" ref="company_bp_search_view"/>
  188. </record>
  189. <menuitem name="Business strategy" id="base.root_menu_company_bp" sequence="10"/>
  190. <menuitem name="Strategy per period" parent="base.root_menu_company_bp" id="base.menu_company_bp" action="action_open_bp" sequence="100"/>
  191. </data>
  192. </openerp>
上海开阖软件有限公司 沪ICP备12045867号-1