GoodERP
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

311 lines
17KB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <data>
  4. <record id="trial_balance_list" model="ir.ui.view">
  5. <field name="name">trial.balance.list</field>
  6. <field name="model">trial.balance</field>
  7. <field name="arch" type="xml">
  8. <list string="科目余额表" decoration-info="account_type=='view'" default_order='subject_name_id'>
  9. <field name="period_id"/>
  10. <field name="subject_code"/>
  11. <field name="subject_name_id"/>
  12. <field name="level" optional="show"/>
  13. <field name="account_type" optional="hide"/>
  14. <field name="initial_balance_debit"/>
  15. <field name="initial_balance_credit"/>
  16. <field name="current_occurrence_debit"/>
  17. <field name="current_occurrence_credit"/>
  18. <field name="ending_balance_debit"/>
  19. <field name="ending_balance_credit"/>
  20. </list>
  21. </field>
  22. </record>
  23. <record id="init_balance_list" model="ir.ui.view">
  24. <field name="name">initial.balance.form</field>
  25. <field name="model">trial.balance</field>
  26. <field name="arch" type="xml">
  27. <list string="科目余额表" decoration-info="account_type=='view'" default_order='subject_name_id'>
  28. <field name="period_id"/>
  29. <field name="subject_code"/>
  30. <field name="subject_name_id"/>
  31. <field name="level" optional="show"/>
  32. <field name="account_type" optional="hide"/>
  33. <field name="year_init_debit" />
  34. <field name="year_init_credit" />
  35. <field name="cumulative_occurrence_debit" />
  36. <button name="button_change_number" string="调整累计数" type="object" class="oe_highlight" invisible="account_type=='view'"/>
  37. <field name="cumulative_occurrence_credit" />
  38. <field name="ending_balance_debit" />
  39. <field name="ending_balance_credit" />
  40. </list>
  41. </field>
  42. </record>
  43. <record id="trial_balance_search" model="ir.ui.view">
  44. <field name="name">trial.balance.form</field>
  45. <field name="model">trial.balance</field>
  46. <field name="arch" type="xml">
  47. <search>
  48. <filter string="有发生额" name='has_transaction'
  49. domain="['|', ('current_occurrence_debit','!=', 0), ('current_occurrence_credit','!=', 0)]"/>
  50. <filter string="有余额" name='has_balance'
  51. domain="['|', ('ending_balance_debit','!=', 0), ('ending_balance_credit','!=', 0)]"/>
  52. <group expand="0" string="分组">
  53. <filter name="by_period" string="会计期间" domain="[]" context="{'group_by':'period_id'}"/>
  54. <filter name="by_level" string="科目级次" domain="[]" context="{'group_by':'level'}"/>
  55. <filter name="by_subject" string="科目" domain="[]" context="{'group_by':'subject_name_id'}"/>
  56. </group>
  57. </search>
  58. </field>
  59. </record>
  60. <record id="trial_balance_action" model="ir.actions.act_window">
  61. <field name="name">科目余额表</field>
  62. <field name="res_model">trial.balance</field>
  63. <field name="type">ir.actions.act_window</field>
  64. <field name="view_mode">list</field>
  65. </record>
  66. <record id="create_trial_balance_wizard_form" model="ir.ui.view">
  67. <field name="name">create.trial.balance.wizard.form</field>
  68. <field name="model">create.trial.balance.wizard</field>
  69. <field name="arch" type="xml">
  70. <form>
  71. <group>
  72. <group>
  73. <field name="period_id" options="{'no_open':True,'no_create':True}" required="True" style="width: 60%%"/>
  74. <field name="has_transaction" />
  75. <field name="has_balance" />
  76. </group>
  77. </group>
  78. <footer>
  79. <button name="create_trial_balance" string="科目余额表" type="object" class="oe_highlight"/>
  80. 或者
  81. <button string="取消" class="oe_link" special="cancel"/>
  82. </footer>
  83. </form>
  84. </field>
  85. </record>
  86. <record id="create_trial_balance_wizard_action" model="ir.actions.act_window">
  87. <field name="name">科目余额表</field>
  88. <field name="res_model">create.trial.balance.wizard</field>
  89. <field name="view_mode">form</field>
  90. <field name="target">new</field>
  91. </record>
  92. <record id="check_trial_balance_wizard_form" model="ir.ui.view">
  93. <field name="name">check.trial.balance.wizard.form</field>
  94. <field name="model">check.trial.balance.wizard</field>
  95. <field name="arch" type="xml">
  96. <form>
  97. <group invisible="context.get('inline')">
  98. <group>
  99. <field name="period_id" options="{'no_open':True,'no_create':True}" required="True" style="width: 60%%" />
  100. </group>
  101. </group>
  102. <group invisible="not context.get('inline')">
  103. <group>
  104. <field name="is_init_period" invisible="1" />
  105. <field name="total_year_init_debit" readonly="1" invisible="not is_init_period"/>
  106. <field name="total_year_init_credit" readonly="1" invisible="not is_init_period"/>
  107. <field name="total_initial_balance_debit" readonly="1" invisible="is_init_period"/>
  108. <field name="total_initial_balance_credit" readonly="1" invisible="is_init_period"/>
  109. <field name="total_current_occurrence_debit" readonly="1" invisible="is_init_period"/>
  110. <field name="total_current_occurrence_credit" readonly="1" invisible="is_init_period"/>
  111. <field name="total_cumulative_occurrence_debit" readonly="1" invisible="not is_init_period"/>
  112. <field name="total_cumulative_occurrence_credit" readonly="1" invisible="not is_init_period"/>
  113. <field name="total_ending_balance_debit" readonly="1"/>
  114. <field name="total_ending_balance_credit" readonly="1"/>
  115. <field name="result" readonly="1"/>
  116. <field name="is_balance" invisible="1"/>
  117. <field name="diff" invisible="is_balance" readonly="1"/>
  118. </group>
  119. </group>
  120. <footer>
  121. <button string="确认" class="oe_link" special="cancel" />
  122. </footer>
  123. </form>
  124. </field>
  125. </record>
  126. <record id="check_trial_balance_wizard_action" model="ir.actions.act_window">
  127. <field name="name">试算平衡</field>
  128. <field name="res_model">check.trial.balance.wizard</field>
  129. <field name="view_mode">form</field>
  130. <field name="target">new</field>
  131. </record>
  132. <record id="check_trial_balance_wizard_action_popup" model="ir.actions.act_window">
  133. <field name="name">试算平衡</field>
  134. <field name="res_model">check.trial.balance.wizard</field>
  135. <field name="view_mode">form</field>
  136. <field name="target">new</field>
  137. <field name="context">{'inline':True}</field>
  138. </record>
  139. <record id="change_cumulative_occurrence_wizard_form" model="ir.ui.view">
  140. <field name="name">change.cumulative.occurrence.wizard.form</field>
  141. <field name="model">change.cumulative.occurrence.wizard</field>
  142. <field name="arch" type="xml">
  143. <form>
  144. <group>
  145. <group>
  146. <field name="account_id" readonly="1"/>
  147. <field name="costs_types" readonly="1"/>
  148. <field name="old_cumulative_occurrence_debit" invisible="1"/>
  149. <field name="cumulative_occurrence_debit" invisible="costs_types in ('in','out')"/>
  150. <field name="old_cumulative_occurrence_credit" invisible="1"/>
  151. <field name="cumulative_occurrence_credit" invisible="costs_types in ('in','out')"/>
  152. <field name="cumulative_occurrence" invisible="costs_types not in ('in','out')"/>
  153. </group>
  154. </group>
  155. <footer>
  156. <button name="update_cumulative_occurrence" string="更新" type="object" class="oe_highlight"/>
  157. 或者
  158. <button string="取消" class="oe_link" special="cancel"/>
  159. </footer>
  160. </form>
  161. </field>
  162. </record>
  163. <record id="change_cumulative_occurrence_wizard_action" model="ir.actions.act_window">
  164. <field name="name">调整累计数</field>
  165. <field name="res_model">change.cumulative.occurrence.wizard</field>
  166. <field name="view_mode">form</field>
  167. <field name="target">new</field>
  168. </record>
  169. <record id="create_vouchers_summary_wizard_form" model="ir.ui.view">
  170. <field name="name">create.vouchers.summary.wizard.form</field>
  171. <field name="model">create.vouchers.summary.wizard</field>
  172. <field name="arch" type="xml">
  173. <form>
  174. <group>
  175. <group>
  176. <field name="period_begin_id" options="{'no_open':True,'no_create':True}" required="True"/>
  177. <field name="subject_name_id" options="{'no_open':True,'no_create':True}" required="True"/>
  178. </group>
  179. <group>
  180. <field name="period_end_id" options="{'no_open':True,'no_create':True}" required="True"/>
  181. <field name="subject_name_end_id" options="{'no_open':True,'no_create':True}" required="True"/>
  182. </group>
  183. <group>
  184. <field name="no_occurred" invisible="context.get('create_general_ledger_account')" />
  185. <field name="no_balance"/>
  186. </group>
  187. </group>
  188. <footer>
  189. <button name="create_vouchers_summary" invisible="context.get('create_general_ledger_account')" string="科目明细账表" type="object" class="oe_highlight"/>
  190. <button name="create_general_ledger_account" invisible="context.get('create_vouchers_summary')" string="科目总账" type="object" class="oe_highlight"/>
  191. 或者
  192. <button string="取消" class="oe_link" special="cancel"/>
  193. </footer>
  194. </form>
  195. </field>
  196. </record>
  197. <record id="create_vouchers_summary_wizard_action" model="ir.actions.act_window">
  198. <field name="name">明细账</field>
  199. <field name="res_model">create.vouchers.summary.wizard</field>
  200. <field name="view_mode">form</field>
  201. <field name="target">new</field>
  202. </record>
  203. <record id="vouchers_summary_list" model="ir.ui.view">
  204. <field name="name">trial.balance.form</field>
  205. <field name="model">vouchers.summary</field>
  206. <field name="arch" type="xml">
  207. <list string="科目明细账" create="false" edit='false'>
  208. <field name="date" optional="show"/>
  209. <field name="period_id" optional="show"/>
  210. <field name="voucher_id" optional="show"/>
  211. <button name="view_detail_voucher" type="object" string="查看明细" icon="fa-search" invisible="not voucher_id"/>
  212. <field name="summary" optional="show"/>
  213. <field name="debit" optional="show"/>
  214. <field name="credit" optional="show"/>
  215. <field name="direction" optional="show"/>
  216. <field name="balance" optional="show"/>
  217. </list>
  218. </field>
  219. </record>
  220. <record id="vouchers_summary_search" model="ir.ui.view">
  221. <field name="name">vouchers.summary.search</field>
  222. <field name="model">vouchers.summary</field>
  223. <field name="arch" type="xml">
  224. <search string="科目明细账">
  225. <field name="date"/>
  226. <field name="period_id"/>
  227. <field name="voucher_id"/>
  228. <field name="summary"/>
  229. <field name="direction" string="余额方向"/>
  230. <group expand="0" string="分组">
  231. <filter name="by_sum" string="摘要" domain="[]" context="{'group_by':'summary'}"/>
  232. <filter name="by_day" string="单据日期" domain="[]" context="{'group_by':'date:day'}"/>
  233. </group>
  234. </search>
  235. </field>
  236. </record>
  237. <record id="vouchers_summary_action" model="ir.actions.act_window">
  238. <field name="name">明细账</field>
  239. <field name="res_model">vouchers.summary</field>
  240. <field name="type">ir.actions.act_window</field>
  241. <field name="view_mode">list</field>
  242. </record>
  243. <record id="create_ledger_account_action" model="ir.actions.act_window">
  244. <field name="name">科目总账</field>
  245. <field name="res_model">create.vouchers.summary.wizard</field>
  246. <field name="view_mode">form</field>
  247. <field name="target">new</field>
  248. <field name="context">{'create_general_ledger_account':True}</field>
  249. </record>
  250. <record id="general_ledger_account_list" model="ir.ui.view">
  251. <field name="name">general_ledger_account_list</field>
  252. <field name="model">general.ledger.account</field>
  253. <field name="arch" type="xml">
  254. <list string="科目总账" create="false" edit='false'>
  255. <field name="period_id" optional="show"/>
  256. <field name="summary" optional="show"/>
  257. <field name="debit" optional="show"/>
  258. <field name="credit" optional="show"/>
  259. <field name="direction" optional="show"/>
  260. <field name="balance" optional="show"/>
  261. </list>
  262. </field>
  263. </record>
  264. <record id="general_ledger_account_search" model="ir.ui.view">
  265. <field name="name">vougeneral.ledger.account.search</field>
  266. <field name="model">general.ledger.account</field>
  267. <field name="arch" type="xml">
  268. <search string="科目总账">
  269. <field name="period_id"/>
  270. <field name="summary"/>
  271. <field name="direction" string="余额方向"/>
  272. <group expand="0" string="分组">
  273. <filter name="by_sum" string="摘要" domain="[]" context="{'group_by':'summary'}"/>
  274. </group>
  275. </search>
  276. </field>
  277. </record>
  278. <record id="general_ledger_account_action" model="ir.actions.act_window">
  279. <field name="name">科目总账</field>
  280. <field name="res_model">general.ledger.account</field>
  281. <field name="type">ir.actions.act_window</field>
  282. <field name="view_mode">list</field>
  283. </record>
  284. <menuitem id='create_general_ledger_account_menu' action='create_ledger_account_action' parent='voucher_books_menu' sequence='60' name="科目总账"/>
  285. <menuitem id='create_vouchers_summary_menu' action='create_vouchers_summary_wizard_action' parent='voucher_books_menu' sequence='50' name="科目明细账"/>
  286. <menuitem id='create_trial_balance_menu' action='create_trial_balance_wizard_action' parent='voucher_books_menu' sequence='22' name="科目余额表"/>
  287. <menuitem id='check_trial_balance_menu' action='check_trial_balance_wizard_action' parent='voucher_books_menu' sequence='23' name="试算平衡"/>
  288. <delete model='ir.ui.menu' id='check_trial_balance_menu' />
  289. </data>
  290. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1