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.

71 lines
4.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="email_template_form" model="ir.ui.view">
  5. <field name="name">email.template.form</field>
  6. <field name="model">email.template</field>
  7. <field name="inherit_id" ref="email_template.email_template_form" />
  8. <field name="type">form</field>
  9. <field name="arch" type="xml">
  10. <data>
  11. <field name="name" position="after">
  12. <field name="is_template_template" invisible="1" />
  13. <field name="email_template_id" domain="[('email_template_id', '=', False), ('model_id', '=', %(email_template.model_email_template)s)]"
  14. attrs="{'readonly': [('is_template_template','=',True), ('email_template_id','=',False)]}"
  15. context="{'default_model_id': %(email_template.model_email_template)s}"
  16. />
  17. </field>
  18. <field name="model_id" position="attributes">
  19. <attribute name="attrs">
  20. {'readonly': [('is_template_template','=',True)]}
  21. </attribute>
  22. </field>
  23. <field name="email_from" position="attributes">
  24. <attribute name="required">0</attribute>
  25. <attribute name="attrs">
  26. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  27. </attribute>
  28. </field>
  29. <field name="email_to" position="attributes">
  30. <attribute name="required">0</attribute>
  31. <attribute name="attrs">
  32. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  33. </attribute>
  34. </field>
  35. <field name="email_cc" position="attributes">
  36. <attribute name="attrs">
  37. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  38. </attribute>
  39. </field>
  40. <field name="email_bcc" position="attributes">
  41. <attribute name="attrs">
  42. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  43. </attribute>
  44. </field>
  45. <field name="reply_to" position="attributes">
  46. <attribute name="attrs">
  47. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  48. </attribute>
  49. </field>
  50. <field name="lang" position="attributes">
  51. <attribute name="attrs">
  52. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  53. </attribute>
  54. </field>
  55. <field name="user_signature" position="attributes">
  56. <attribute name="attrs">
  57. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  58. </attribute>
  59. </field>
  60. <field name="subject" position="attributes">
  61. <attribute name="required">0</attribute>
  62. <attribute name="attrs">
  63. {'readonly': ['|',('is_template_template','=',True),('model_id', '=', %(email_template.model_email_template)s)]}
  64. </attribute>
  65. </field>
  66. </data>
  67. </field>
  68. </record>
  69. </data>
  70. </openerp>