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.

46 lines
2.3 KiB

11 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="account_csv_export_view" model="ir.ui.view">
  5. <field name="name">Accounting Entries CSV Export</field>
  6. <field name="model">account.csv.export</field>
  7. <field name="type">form</field>
  8. <field name="arch" type="xml">
  9. <form string="Accounting Entries CSV Export">
  10. <group colspan="4">
  11. <field name="company_id" />
  12. <field name="fiscalyear_id" domain="[('company_id', '=', company_id)]"/>
  13. </group>
  14. <group colspan="4" col="2">
  15. <field name="start_period_id" domain="[('state', '=', 'draft'),('special','=',False),('fiscalyear_id','=',fiscalyear_id)]"/>
  16. <field name="stop_period_id" domain="[('state', '=', 'draft'),('special','=',False),('fiscalyear_id','=',fiscalyear_id)]"/>
  17. </group>
  18. <separator string ="" colspan="4"/>
  19. <group colspan="4" col="3">
  20. <button special="cancel" string="Close" icon="gtk-cancel"/>
  21. <button name="action_manual_export" string="Create export : Trial Balance" type="object" icon="gtk-execute"/>
  22. <button name="action_manual_export_analytic" string="Create export : Analytic Balance" type="object" icon="gtk-execute"/>
  23. </group>
  24. <separator string ="" colspan="4"/>
  25. <group colspan="4">
  26. <field name="data"/>
  27. </group>
  28. </form>
  29. </field>
  30. </record>
  31. <record id="action_account_csv_export" model="ir.actions.act_window">
  32. <field name="name">Accounting Entries CSV Export</field>
  33. <field name="res_model">account.csv.export</field>
  34. <field name="type">ir.actions.act_window</field>
  35. <field name="view_type">form</field>
  36. <field name="view_mode">tree,form</field>
  37. <field name="view_id" ref="account_csv_export_view"/>
  38. <field name="context">{}</field>
  39. <field name="target">new</field>
  40. </record>
  41. </data>
  42. </openerp>