GoodERP
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

129 Zeilen
7.8KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id='wh_inventory_batch_list' model='ir.ui.view'>
  5. <field name='name'>wh.inventory.batch.list</field>
  6. <field name='model'>wh.inventory.batch</field>
  7. <field name='arch' type='xml'>
  8. <list string='盘点单' decoration-info='state == "draft"' decoration-muted= 'state == "cancel"' >
  9. <field name='name' />
  10. <field name='date' />
  11. <field name='warehouse_id' groups='warehouse.multi_warehouse_groups' />
  12. <field name='state' />
  13. <field name="note"/>
  14. </list>
  15. </field>
  16. </record>
  17. <record id='wh_inventory_batch_form' model='ir.ui.view'>
  18. <field name='name'>wh.inventory.batch.form</field>
  19. <field name='model'>wh.inventory.batch</field>
  20. <field name='arch' type='xml'>
  21. <form string='盘点单'>
  22. <header>
  23. <button name='query_inventory' string='查询' type='object' class='oe_highlight' invisible="state != 'draft'" />
  24. <button name='query_inventory' string='查询' type='object' invisible="state != 'query'" />
  25. <button name='generate_inventory' string='生成盘点数据' type='object' class='oe_highlight' invisible="state != 'query'" />
  26. <button name='open_out' string='查看盘亏单据' type='object' class='oe_highlight' invisible="state in ['draft', 'query'] or out_id=False" />
  27. <button name='open_in' string='查看盘盈单据' type='object' class='oe_highlight' invisible="state in ['draft','query'] or in_id=False" />
  28. <button name='requery_inventory' string='重新盘点' type='object' invisible="state != 'confirmed'" />
  29. <field name='state' widget='statusbar' readonly='1' />
  30. </header>
  31. <sheet>
  32. <div>
  33. <p>在盘点完成前,请不要做出入库单据,盘点库存与查询时的系统库存比较计算盈亏,如果库存在查询后又发生了变化,需要重新查询一次获取最新的库存信息</p>
  34. <!--
  35. <label string="扫描条码"/>
  36. <input type='text' class="ge_scan_barcode" autofocus="true"/>
  37. -->
  38. </div>
  39. <group >
  40. <group>
  41. <field name='warehouse_id' readonly="state!='draft'"/>
  42. <field name='goods' widget="many2many_tags" readonly="state != 'draft' />
  43. <field name='out_id' invisible='1' />
  44. <field name='in_id' invisible='1' />
  45. </group>
  46. <group>
  47. <field name='date' required='1' readonly="state!='draft'" />
  48. </group>
  49. </group>
  50. <group string='盘点明细'>
  51. <field name='line_ids' nolabel='1' colspan="2" context="{'lot': True}" readonly="state not in ['draft', 'query']" >
  52. <list string='盘点明细' create='0' delete='0' editable='bottom' default_order="goods_id, lot asc">
  53. <field name='goods_id' readonly='1 ' optional="show"/>
  54. <field name='attribute_id' readonly='1' groups='goods.multi_attrs_groups' optional="show"/>
  55. <field name='lot' readonly='1' groups='goods.batch_groups' optional="show"/>
  56. <field name='real_uos_qty' readonly='1' sum='1' groups='goods.auxiliary_unit_groups' optional="show"/>
  57. <field name='real_qty' readonly='1' sum='1' optional="show"/>
  58. <field name='inventory_uos_qty' sum='1' groups='goods.auxiliary_unit_groups' optional="show"/>
  59. <field name='uos_id' readonly='1' groups='goods.auxiliary_unit_groups' optional="show"/>
  60. <field name='inventory_qty' sum='1' optional="show"/>
  61. <field name='uom_id' readonly='1' optional="show"/>
  62. <!--readonly 应该为invisible ?-->
  63. <field name='new_lot'
  64. readonly="lot_type!='in'"
  65. required="lot_type=='in'"
  66. groups='goods.batch_groups' optional="show"/>
  67. <!--批号已有,所以不需要盘亏批号,去掉盘亏批号-->
  68. <!-- <field name='new_lot_id'
  69. attrs="{'readonly': [('lot_type', '!=', 'out')], 'required': [('lot_type', '=', 'out')]}"
  70. domain="[('goods_id', '=', goods_id), ('state', '=', 'done'), ('lot', '!=', False), ('qty_remaining', '>', 0), ('lot', '=', lot)]"
  71. context="{'lot': True}"
  72. options="{'no_open': True, 'no_create': True}"
  73. groups='goods.batch_groups'
  74. invisible='1' optional="show"/> -->
  75. <field name='difference_uos_qty' readonly='1' sum='1' groups='goods.auxiliary_unit_groups' optional="show"/>
  76. <field name='difference_qty' readonly='1' sum='1' optional="show"/>
  77. <field name='lot_type' invisible='1' optional="show"/>
  78. </list>
  79. </field>
  80. </group>
  81. <group>
  82. <field name='note' nolabel='1' colspan="2" placeholder='备注...' />
  83. </group>
  84. <group >
  85. <group >
  86. <field name='create_uid' string='制单人' readonly='1' />
  87. <field name='create_date' string='录单时间' readonly='1' />
  88. </group>
  89. <group >
  90. <field name='write_uid' string='最后修改人' readonly='1' />
  91. <field name='write_date' string='最后修改时间' readonly='1' />
  92. </group>
  93. </group>
  94. </sheet>
  95. <chatter/>
  96. </form>
  97. </field>
  98. </record>
  99. <record id='wh_inventory_batch_search' model='ir.ui.view'>
  100. <field name='name'>wh.inventory.batch.search</field>
  101. <field name='model'>wh.inventory.batch</field>
  102. <field name='arch' type='xml'>
  103. <search string='盘点表' >
  104. <field name='name'/>
  105. <field name='warehouse_id'/>
  106. <field name='goods'/>
  107. <filter string="未完成" domain="[('state','!=','done')]" name="not_done_inventory_filter"/>
  108. <group expand="0" string="分组">
  109. <filter name="by_wh" string="仓库" domain="[]" context="{'group_by':'warehouse_id'}"/>
  110. <filter name="by_goods" string="商品" domain="[]" context="{'group_by':'goods'}"/>
  111. <filter name="by_day" string="单据日期" domain="[]" context="{'group_by':'date:day'}"/>
  112. </group>
  113. </search>
  114. </field>
  115. </record>
  116. </data>
  117. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1