stock_request_count.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="stock_inventory_request_count_form_view" model="ir.ui.view">
  4. <field name="name">stock.request.count.form.view</field>
  5. <field name="model">stock.request.count</field>
  6. <field name="mode">primary</field>
  7. <field name="arch" type="xml">
  8. <form>
  9. <group>
  10. <field name="quant_ids" invisible="1"/>
  11. <field name="inventory_date"/>
  12. <field name="user_id"/>
  13. <field name="set_count" widget='radio'/>
  14. </group>
  15. <footer>
  16. <button name="action_request_count" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
  17. <button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
  18. </footer>
  19. </form>
  20. </field>
  21. </record>
  22. <record id="action_stock_request_count" model="ir.actions.act_window">
  23. <field name="name">Request a Count</field>
  24. <field name="type">ir.actions.act_window</field>
  25. <field name="res_model">stock.request.count</field>
  26. <field name="view_mode">form</field>
  27. <field name="view_id" ref="stock_inventory_request_count_form_view"/>
  28. <field name="context">{
  29. 'default_quant_ids': active_ids
  30. }</field>
  31. <field name="target">new</field>
  32. </record>
  33. </odoo>