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.

39 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <record forcecreate="True" id="ir_cron_test_orders" model="ir.cron">
  5. <field name="name">Test Draft Orders</field>
  6. <field eval="False" name="active"/>
  7. <field name="user_id" ref="base.user_root"/>
  8. <field name="interval_number">20</field>
  9. <field name="interval_type">minutes</field>
  10. <field name="numbercall">-1</field>
  11. <field eval="False" name="doall"/>
  12. <field eval="'sale.order'" name="model"/>
  13. <field eval="'test_all_draft_orders'" name="function"/>
  14. <field eval="'()'" name="args"/>
  15. </record>
  16. <record id ="excep_no_zip" model="sale.exception">
  17. <field name="name">No ZIP code on destination</field>
  18. <field name="description">No ZIP code on destination</field>
  19. <field name="sequence">50</field>
  20. <field name="model">sale.order</field>
  21. <field name="code">if not order.partner_shipping_id.zip:
  22. failed=True</field>
  23. <field name="active" eval="False"/>
  24. </record>
  25. <record id ="excep_no_stock" model="sale.exception">
  26. <field name="name">Not Enough Virtual Stock</field>
  27. <field name="description">Not Enough Virtual Stock</field>
  28. <field name="sequence">50</field>
  29. <field name="model">sale.order.line</field>
  30. <field name="code">if line.product_id and line.product_id.type == 'product' and line.product_id.virtual_available &lt; line.product_uom_qty:
  31. failed=True</field>
  32. <field name="active" eval="False"/>
  33. </record>
  34. </data>
  35. </openerp>