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.

44 lines
2.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_server_action_form" model="ir.ui.view">
  5. <field name="name">Server Action (base_export_email)</field>
  6. <field name="model">ir.actions.server</field>
  7. <field name="inherit_id" ref="base.view_server_action_form"/>
  8. <field name="arch" type="xml">
  9. <field name="model_id" position="attributes">
  10. <attribute name="on_change">onchange_model_id(model_id, context)</attribute>
  11. </field>
  12. <field name="model_id" position="after">
  13. <field name="model" invisible="1"/>
  14. </field>
  15. <field name="srcmodel_id" position="attributes">
  16. <attribute name="attrs">{'required': [('state', '!=', 'export_email'),
  17. ('state','!=','dummy'),
  18. ('state','!=','sms'),
  19. ('state','!=','code'),
  20. ('state','!=','loop'),
  21. ('state','!=','trigger'),
  22. ('state','!=','object_copy'),
  23. ('state','!=','client_action'),
  24. ('state','!=','email'),
  25. ('state','!=','sms'),
  26. ('state','!=','other')]}</attribute>
  27. </field>
  28. <notebook position="inside">
  29. <page string="Export data by email configuration" attrs="{'invisible':[('state','!=','export_email')]}">
  30. <group>
  31. <field name="export_format" attrs="{'required':[('state','=','export_email')]}"/>
  32. <field name="filter_id" domain="[('model_id','=',model)]"/>
  33. <field name="email_template_id" attrs="{'required':[('state','=','export_email')]}"
  34. domain="[('model_id.model', '=', 'ir.actions.server')]"/>
  35. <field name ="fields_to_export" attrs="{'required': [('state', '=', 'export_email'), ('saved_export_id', '=', False)]}" />
  36. <field name ="saved_export_id" attrs="{'required': [('state', '=', 'export_email'), ('fields_to_export', '=', False)]}"
  37. domain="[('resource','=',model)]"/>
  38. </group>
  39. </page>
  40. </notebook>
  41. </field>
  42. </record>
  43. </data>
  44. </openerp>