GoodERP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

200 lines
10KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <!-- 收款单打印 -->
  5. <record id='report_money_order_get' model='ir.actions.report'>
  6. <field name='name'>收款单</field>
  7. <field name='model'>money.order</field>
  8. <field name='report_type'>docx</field>
  9. <field name='report_name'>money.order.get</field>
  10. <field name='template_file'>money/template/money.order.get.docx</field>
  11. </record>
  12. <record id="money_order_form_print_inherit_get" model="ir.ui.view">
  13. <field name="name">money.order.form</field>
  14. <field name="model">money.order</field>
  15. <field name='inherit_id' ref='money.money_order_form'/>
  16. <field name="arch" type="xml">
  17. <button name="money_order_draft" position="after">
  18. <field name="type" invisible="1"/>
  19. <button name="%(money.report_money_order_get)d" string="打印" type="action"
  20. invisible="type=='pay'"/>
  21. </button>
  22. </field>
  23. </record>
  24. <!-- 付款单打印 -->
  25. <record id='report_money_order_pay' model='ir.actions.report'>
  26. <field name='name'>付款单</field>
  27. <field name='model'>money.order</field>
  28. <field name='report_type'>docx</field>
  29. <field name='report_name'>money.order.pay</field>
  30. <field name='template_file'>money/template/money.order.pay.docx</field>
  31. </record>
  32. <record id="money_order_form_print_inherit_pay" model="ir.ui.view">
  33. <field name="name">money.order.form</field>
  34. <field name="model">money.order</field>
  35. <field name='inherit_id' ref='money.money_order_form'/>
  36. <field name="arch" type="xml">
  37. <button name="money_order_draft" position="after">
  38. <field name="type" invisible="1"/>
  39. <button name="%(money.report_money_order_pay)d" string="打印" type="action"
  40. invisible="type=='get'"/>
  41. </button>
  42. </field>
  43. </record>
  44. <!-- 核销单打印:预收冲应收 -->
  45. <record id='reconcile_order_adv_pay_to_get' model='ir.actions.report'>
  46. <field name='name'>核销单:预收冲应收</field>
  47. <field name='model'>reconcile.order</field>
  48. <field name='report_type'>docx</field>
  49. <field name='report_name'>reconcile.order.1</field>
  50. <field name='template_file'>money/template/reconcile.order.advance.pay.docx</field>
  51. </record>
  52. <record id="transfer_order_form_print_inherit_adv_pay" model="ir.ui.view">
  53. <field name="name">reconcile.order.form</field>
  54. <field name="model">reconcile.order</field>
  55. <field name='inherit_id' ref='money.reconcile_order_form'/>
  56. <field name="arch" type="xml">
  57. <button name="reconcile_order_done" position="after">
  58. <field name="business_type" invisible="1" readonly="state != 'draft'"/>
  59. <button name="%(money.reconcile_order_adv_pay_to_get)d" string="打印" type="action"
  60. invisible="business_type != 'adv_pay_to_get'"/>
  61. </button>
  62. </field>
  63. </record>
  64. <!-- 核销单打印:预付冲应付 -->
  65. <record id='reconcile_order_adv_get_to_pay' model='ir.actions.report'>
  66. <field name='name'>核销单:预付冲应付</field>
  67. <field name='model'>reconcile.order</field>
  68. <field name='report_type'>docx</field>
  69. <field name='report_name'>reconcile.order.2</field>
  70. <field name='template_file'>money/template/reconcile.order.advance.get.docx</field>
  71. </record>
  72. <record id="transfer_order_form_print_inherit_adv_get" model="ir.ui.view">
  73. <field name="name">reconcile.order.form</field>
  74. <field name="model">reconcile.order</field>
  75. <field name='inherit_id' ref='money.reconcile_order_form'/>
  76. <field name="arch" type="xml">
  77. <button name="reconcile_order_done" position="after">
  78. <field name="business_type" invisible="1" readonly="state != 'draft'"/>
  79. <button name="%(money.reconcile_order_adv_get_to_pay)d" string="打印" type="action"
  80. invisible="business_type != 'adv_get_to_pay'"/>
  81. </button>
  82. </field>
  83. </record>
  84. <!-- 核销单打印:应收冲应付 -->
  85. <record id='reconcile_order_get_to_pay' model='ir.actions.report'>
  86. <field name='name'>核销单:应收冲应付</field>
  87. <field name='model'>reconcile.order</field>
  88. <field name='report_type'>docx</field>
  89. <field name='report_name'>reconcile.order.3</field>
  90. <field name='template_file'>money/template/reconcile.order.getTopay.docx</field>
  91. </record>
  92. <record id="transfer_order_form_print_inherit_get_to_pay" model="ir.ui.view">
  93. <field name="name">reconcile.order.form</field>
  94. <field name="model">reconcile.order</field>
  95. <field name='inherit_id' ref='money.reconcile_order_form'/>
  96. <field name="arch" type="xml">
  97. <button name="reconcile_order_done" position="after">
  98. <field name="business_type" invisible="1" readonly="state != 'draft'"/>
  99. <button name="%(money.reconcile_order_get_to_pay)d" string="打印" type="action"
  100. invisible="business_type != 'get_to_pay'"/>
  101. </button>
  102. </field>
  103. </record>
  104. <!-- 核销单打印:应收转应收 -->
  105. <record id='reconcile_order_get_to_get' model='ir.actions.report'>
  106. <field name='name'>核销单:应收转应收</field>
  107. <field name='model'>reconcile.order</field>
  108. <field name='report_type'>docx</field>
  109. <field name='report_name'>reconcile.order.4</field>
  110. <field name='template_file'>money/template/reconcile.order.getToget.docx</field>
  111. </record>
  112. <record id="transfer_order_form_print_inherit_get_to_get" model="ir.ui.view">
  113. <field name="name">reconcile.order.form</field>
  114. <field name="model">reconcile.order</field>
  115. <field name='inherit_id' ref='money.reconcile_order_form'/>
  116. <field name="arch" type="xml">
  117. <button name="reconcile_order_done" position="after">
  118. <field name="business_type" invisible="1" readonly="state != 'draft'"/>
  119. <button name="%(money.reconcile_order_get_to_get)d" string="打印" type="action"
  120. invisible="business_type != 'get_to_get'"/>
  121. </button>
  122. </field>
  123. </record>
  124. <!-- 核销单打印:应付转应付 -->
  125. <record id='reconcile_order_pay_to_pay' model='ir.actions.report'>
  126. <field name='name'>核销单:应付转应付</field>
  127. <field name='model'>reconcile.order</field>
  128. <field name='report_type'>docx</field>
  129. <field name='report_name'>reconcile.order.5</field>
  130. <field name='template_file'>money/template/reconcile.order.payTopay.docx</field>
  131. </record>
  132. <record id="transfer_order_form_print_inherit_pay_to_pay" model="ir.ui.view">
  133. <field name="name">reconcile.order.form</field>
  134. <field name="model">reconcile.order</field>
  135. <field name='inherit_id' ref='money.reconcile_order_form'/>
  136. <field name="arch" type="xml">
  137. <button name="reconcile_order_done" position="after">
  138. <field name="business_type" invisible="1" readonly="state != 'draft'"/>
  139. <button name="%(money.reconcile_order_pay_to_pay)d" string="打印" type="action"
  140. invisible="business_type != 'pay_to_pay'"/>
  141. </button>
  142. </field>
  143. </record>
  144. <!-- 其他收支单打印 -->
  145. <record id='other_money_order_print' model='ir.actions.report'>
  146. <field name='name'>其他收支单</field>
  147. <field name='model'>other.money.order</field>
  148. <field name='report_type'>docx</field>
  149. <field name='report_name'>other.money.order</field>
  150. <field name='template_file'>money/template/other.money.order.docx</field>
  151. </record>
  152. <record id="other_money_order_form_print_inherit" model="ir.ui.view">
  153. <field name="name">other.money.order.form</field>
  154. <field name="model">other.money.order</field>
  155. <field name='inherit_id' ref='money.other_money_order_form'/>
  156. <field name="arch" type="xml">
  157. <button name="other_money_draft" position="after">
  158. <button name="%(money.other_money_order_print)d" string="打印" type="action"/>
  159. </button>
  160. </field>
  161. </record>
  162. <!-- 资金转账单打印 -->
  163. <record id='money_transfer_order_print' model='ir.actions.report'>
  164. <field name='name'>资金转账单</field>
  165. <field name='model'>money.transfer.order</field>
  166. <field name='report_type'>docx</field>
  167. <field name='report_name'>money.transfer.order</field>
  168. <field name='template_file'>money/template/money.transfer.order.docx</field>
  169. </record>
  170. <record id="money_transfer_order_form_print_inherit" model="ir.ui.view">
  171. <field name="name">money.transfer.order.form</field>
  172. <field name="model">money.transfer.order</field>
  173. <field name='inherit_id' ref='money.money_transfer_order_form'/>
  174. <field name="arch" type="xml">
  175. <button name="money_transfer_draft" position="after">
  176. <button name="%(money.money_transfer_order_print)d" string="打印" type="action"/>
  177. </button>
  178. </field>
  179. </record>
  180. <!--对账单打印-->
  181. <record id='customer_overdue_report' model='ir.actions.report'>
  182. <field name='name'>对账单</field>
  183. <field name='model'>partner</field>
  184. <field name='binding_model_id' ref='core.model_partner'/>
  185. <field name='report_type'>docx</field>
  186. <field name='report_name'>customer.overdue.report</field>
  187. <field name='output_type'>pdf</field>
  188. <field name='template_file'>money/template/customer.overdue.report.docx</field>
  189. </record>
  190. </data>
  191. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1