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

127 lines
6.5KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <!-- 其他出库单打印 -->
  5. <record id='report_wh_out' model='ir.actions.report'>
  6. <field name='name'>其他出库单</field>
  7. <field name='model'>wh.out</field>
  8. <field name='report_type'>docx</field>
  9. <field name='report_name'>wh.out</field>
  10. <field name='template_file'>warehouse/template/wh.out.docx</field>
  11. <field name="binding_model_id" ref="warehouse.model_wh_out" />
  12. <field name="binding_type">report</field>
  13. </record>
  14. <record id="warehouse_wh_out_form_print_inherit" model="ir.ui.view">
  15. <field name="name">wh_out_form</field>
  16. <field name="model">wh.out</field>
  17. <field name='inherit_id' ref='warehouse.wh_out_form' />
  18. <field name="arch" type="xml">
  19. <button name="cancel_approved_order" position="after" >
  20. <button name="%(warehouse.report_wh_out)d" string="打印" type="action" class="oe_highlight"/>
  21. </button>
  22. </field>
  23. </record>
  24. <!-- 其他入库单打印 -->
  25. <record id='report_wh_in' model='ir.actions.report'>
  26. <field name='name'>其他入库单</field>
  27. <field name='model'>wh.in</field>
  28. <field name='report_type'>docx</field>
  29. <field name='report_name'>wh.in</field>
  30. <field name='template_file'>warehouse/template/wh.in.docx</field>
  31. <field name="binding_model_id" ref="warehouse.model_wh_in" />
  32. <field name="binding_type">report</field>
  33. </record>
  34. <record id='wh_in_form_inherit' model='ir.ui.view'>
  35. <field name='name'>wh.in.form</field>
  36. <field name='model'>wh.in</field>
  37. <field name='inherit_id' ref='warehouse.wh_in_form'/>
  38. <field name='arch' type='xml'>
  39. <button name='cancel_approved_order' position='after'>
  40. <button name='%(warehouse.report_wh_in)d' type='action' string='打印' class='oe_highlight'/>
  41. </button>
  42. </field>
  43. </record>
  44. <!-- 调拨单打印 -->
  45. <record id='report_wh_internal' model='ir.actions.report'>
  46. <field name='name'>调拨单</field>
  47. <field name='model'>wh.internal</field>
  48. <field name='report_type'>docx</field>
  49. <field name='report_name'>wh.internal</field>
  50. <field name='template_file'>warehouse/template/wh.internal.docx</field>
  51. <field name="binding_model_id" ref="warehouse.model_wh_internal" />
  52. <field name="binding_type">report</field>
  53. </record>
  54. <record id='wh_internal_form_inherit' model='ir.ui.view'>
  55. <field name='name'>wh.internal.form</field>
  56. <field name='model'>wh.internal</field>
  57. <field name='inherit_id' ref='warehouse.wh_internal_form'/>
  58. <field name='arch' type='xml'>
  59. <button name='cancel_approved_order' position='after'>
  60. <button name='%(warehouse.report_wh_internal)d' type='action' string='打印' class='oe_highlight'/>
  61. </button>
  62. </field>
  63. </record>
  64. <!-- 盘点单打印 -->
  65. <record id='report_wh_inventory' model='ir.actions.report'>
  66. <field name='name'>盘点单</field>
  67. <field name='model'>wh.inventory</field>
  68. <field name='report_type'>docx</field>
  69. <field name='report_name'>wh.inventory</field>
  70. <field name='template_file'>warehouse/template/wh.inventory.docx</field>
  71. <field name="binding_model_id" ref="warehouse.model_wh_inventory" />
  72. <field name="binding_type">report</field>
  73. </record>
  74. <record id='wh_inventory_form_inherit' model='ir.ui.view'>
  75. <field name='name'>wh.inventory.form</field>
  76. <field name='model'>wh.inventory</field>
  77. <field name='inherit_id' ref='warehouse.wh_inventory_form'/>
  78. <field name='arch' type='xml'>
  79. <button name='requery_inventory' position='after'>
  80. <button name='%(warehouse.report_wh_inventory)d' type='action' string='打印' class='oe_highlight'/>
  81. </button>
  82. </field>
  83. </record>
  84. <!-- 组装单打印 -->
  85. <record id='report_wh_assembly' model='ir.actions.report'>
  86. <field name='name'>组装单</field>
  87. <field name='model'>wh.assembly</field>
  88. <field name='report_type'>docx</field>
  89. <field name='report_name'>wh.assembly</field>
  90. <field name='template_file'>warehouse/template/wh.assembly.docx</field>
  91. <field name="binding_model_id" ref="warehouse.model_wh_assembly" />
  92. <field name="binding_type">report</field>
  93. </record>
  94. <record id='wh_assembly_form_print_inherit' model='ir.ui.view'>
  95. <field name='name'>wh.assembly.form</field>
  96. <field name='model'>wh.assembly</field>
  97. <field name='inherit_id' ref='warehouse.wh_assembly_form'/>
  98. <field name='arch' type='xml'>
  99. <button name='update_bom' position='after'>
  100. <button name='%(warehouse.report_wh_assembly)d' type='action' string='打印' class='oe_highlight'/>
  101. </button>
  102. </field>
  103. </record>
  104. <!-- 拆卸单打印 -->
  105. <record id='report_wh_disassembly' model='ir.actions.report'>
  106. <field name='name'>拆卸单</field>
  107. <field name='model'>wh.disassembly</field>
  108. <field name='report_type'>docx</field>
  109. <field name='report_name'>wh.disassembly</field>
  110. <field name='template_file'>warehouse/template/wh.disassembly.docx</field>
  111. <field name="binding_model_id" ref="warehouse.model_wh_disassembly" />
  112. <field name="binding_type">report</field>
  113. </record>
  114. <record id='wh_disassembly_form_print_inherit' model='ir.ui.view'>
  115. <field name='name'>wh.disassembly.form</field>
  116. <field name='model'>wh.disassembly</field>
  117. <field name='inherit_id' ref='warehouse.wh_disassembly_form'/>
  118. <field name='arch' type='xml'>
  119. <button name='update_bom' position='after'>
  120. <button name='%(warehouse.report_wh_disassembly)d' type='action' string='打印' class='oe_highlight'/>
  121. </button>
  122. </field>
  123. </record>
  124. </data>
  125. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1