removal_event.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_removal_event_tree" model="ir.ui.view">
  5. <field name="name">removal_event.tree</field>
  6. <field name="model">farm.removal.event</field>
  7. <field name="mode">primary</field>
  8. <field name="inherit_id" ref="view_abstract_event_tree"/>
  9. <field name="arch" type="xml">
  10. <field name="lot" position="after">
  11. <field name="removal_type"/>
  12. </field>
  13. </field>
  14. </record>
  15. <record id="view_removal_event_form" model="ir.ui.view">
  16. <field name="name">removal_event.form</field>
  17. <field name="model">farm.removal.event</field>
  18. <field name="mode">primary</field>
  19. <field name="inherit_id" ref="view_abstract_event_form"/>
  20. <field name="arch" type="xml">
  21. <field name="state" position="after">
  22. <h1>Removal Event</h1>
  23. <button name="confirm" states="draft"
  24. string="Confirm Order" id="draft_confirm"
  25. type="object" />
  26. </field>
  27. <field name="lot" position="after">
  28. <field name="from_location"/>
  29. <field name="quantity"/>
  30. <field name="removal_type"/>
  31. <field name="reason"/>
  32. <field name="move" attrs="{'readonly': True}"/>
  33. </field>
  34. </field>
  35. </record>
  36. </data>
  37. </openerp>