GoodERP
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

116 行
6.0KB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <data>
  4. <record id="profit_statement_list" model="ir.ui.view">
  5. <field name="name">profit_statement_list</field>
  6. <field name="model">profit.statement</field>
  7. <field name="arch" type="xml">
  8. <list string='利润表' create='false' edit='false' >
  9. <field name="balance" optional="show"/>
  10. <field name="line_num" optional="show"/>
  11. <field name="cumulative_occurrence_balance" optional="show"/>
  12. <field name="current_occurrence_balance" optional="show"/>
  13. </list>
  14. </field>
  15. </record>
  16. <record id="profit_statement_list_template" model="ir.ui.view">
  17. <field name="name">profit_statement_list_template</field>
  18. <field name="model">profit.statement</field>
  19. <field name="arch" type="xml">
  20. <list string='利润表模板' editable="bottom" >
  21. <field name="sequence" widget="handle" optional="show"/>
  22. <field name="balance" optional="show"/>
  23. <field name="line_num" optional="show"/>
  24. <field name="occurrence_balance_formula" optional="show"/>
  25. </list>
  26. </field>
  27. </record>
  28. <record id="profit_statement_action_template" model="ir.actions.act_window">
  29. <field name="name">利润表模板</field>
  30. <field name="res_model">profit.statement</field>
  31. <field name="type">ir.actions.act_window</field>
  32. <field name="view_mode">list</field>
  33. <field name="view_id" ref="profit_statement_list_template"/>
  34. </record>
  35. <menuitem id='profit_statement_menu' action='profit_statement_action_template' groups="base.group_no_one" parent='finance_setting_menu' sequence='80'/>
  36. <record id="balance_sheet_list" model="ir.ui.view">
  37. <field name="name">balance_sheet_list</field>
  38. <field name="model">balance.sheet</field>
  39. <field name="arch" type="xml">
  40. <list string="资产负债表模板" editable="bottom" >
  41. <field name="sequence" widget="handle" optional="show"/>
  42. <field name="balance" optional="show"/>
  43. <field name="line_num" optional="show"/>
  44. <field name="balance_formula" optional="show"/>
  45. <field name="balance_two" optional="show"/>
  46. <field name="line_num_two" optional="show"/>
  47. <field name="balance_two_formula" optional="show"/>
  48. </list>
  49. </field>
  50. </record>
  51. <record id="balance_sheet_list_wizard" model="ir.ui.view">
  52. <field name="name">balance_sheet_list</field>
  53. <field name="model">balance.sheet</field>
  54. <field name="arch" type="xml">
  55. <list string="资产负债表" create="false" edit='false'>
  56. <field name="balance" optional="show"/>
  57. <field name="line_num" optional="show"/>
  58. <field name="beginning_balance" optional="show"/>
  59. <field name="ending_balance" optional="show"/>
  60. <field name="balance_two" optional="show"/>
  61. <field name="line_num_two" optional="show"/>
  62. <field name="beginning_balance_two" optional="show"/>
  63. <field name="ending_balance_two" optional="show"/>
  64. </list>
  65. </field>
  66. </record>
  67. <record id="balance_sheet_action" model="ir.actions.act_window">
  68. <field name="name">资产负债表模板</field>
  69. <field name="res_model">balance.sheet</field>
  70. <field name="type">ir.actions.act_window</field>
  71. <field name="view_mode">list</field>
  72. <field name="view_id" ref="balance_sheet_list"/>
  73. </record>
  74. <record id="create_balance_sheet_wizard_form" model="ir.ui.view">
  75. <field name="name">create.balance.sheet.wizard.form</field>
  76. <field name="model">create.balance.sheet.wizard</field>
  77. <field name="arch" type="xml">
  78. <form>
  79. <group>
  80. <group>
  81. <field name="period_id" options="{'no_open':True,'no_create':True}" required="True"/>
  82. </group>
  83. </group>
  84. <footer>
  85. <button name="create_balance_sheet" invisible="context.get('profit_statement')" string="资产负债表" type="object" class="oe_highlight"/>
  86. <button name="create_profit_statement" invisible="context.get('balance_sheet')" string="利润表" type="object" class="oe_highlight"/>
  87. <button string="取消" class="oe_link" special="cancel"/>
  88. </footer>
  89. </form>
  90. </field>
  91. </record>
  92. <record id="create_balance_sheet_wizard_action" model="ir.actions.act_window">
  93. <field name="name">资产负债表</field>
  94. <field name="res_model">create.balance.sheet.wizard</field>
  95. <field name="view_mode">form</field>
  96. <field name="target">new</field>
  97. </record>
  98. <record id="profit_statement_list_wizard_action" model="ir.actions.act_window">
  99. <field name="name">利润表</field>
  100. <field name="res_model">create.balance.sheet.wizard</field>
  101. <field name="view_mode">form</field>
  102. <field name="target">new</field>
  103. </record>
  104. <menuitem id='profit_statement_list_wizard_action_menu' action='profit_statement_list_wizard_action' parent='voucher_books_menu' sequence='30'/>
  105. <menuitem id='create_balance_sheet_wizard_menu' action='create_balance_sheet_wizard_action' parent='voucher_books_menu' sequence='25'/>
  106. <menuitem id='balance_sheet_menu' action='balance_sheet_action' parent='finance_setting_menu' groups="base.group_no_one" sequence='70'/>
  107. </data>
  108. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1