code_translation_views.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="transifex_code_translation_tree_view" model="ir.ui.view">
  4. <field name="name">transifex.code.translation.tree</field>
  5. <field name="model">transifex.code.translation</field>
  6. <field name="arch" type="xml">
  7. <tree string="Transifex Code Translation" js_class="transifex_code_translation_tree">
  8. <field name="source"/>
  9. <field name="value"/>
  10. <field name="module"/>
  11. <field name="lang"/>
  12. <field name="transifex_url"
  13. widget="url"
  14. text="Contribute"
  15. string="Transifex" />
  16. </tree>
  17. </field>
  18. </record>
  19. <record id="transifex_code_translation_view_search" model="ir.ui.view">
  20. <field name="name">transifex.code.translation.view.search</field>
  21. <field name="model">transifex.code.translation</field>
  22. <field name="arch" type="xml">
  23. <search string="Search Code Translations">
  24. <field name="module"/>
  25. <field name="lang"/>
  26. <field name="source"/>
  27. <field name="value"/>
  28. <separator/>
  29. <filter string="Not Translated" name="not_translated" domain="[('value', '=', '')]"/>
  30. <group string="Group By">
  31. <filter string="Module" name="group_by_module" context="{'group_by': 'module'}"/>
  32. </group>
  33. </search>
  34. </field>
  35. </record>
  36. <record id="action_code_translations" model="ir.actions.server">
  37. <field name="name">Transifex Code Translations</field>
  38. <field name="model_id" ref="transifex.model_transifex_code_translation"/>
  39. <field name="groups_id" eval="[(4, ref('base.group_system'))]"/>
  40. <field name="state">code</field>
  41. <field name="code">action = model._open_code_translations()</field>
  42. </record>
  43. <menuitem action="action_code_translations" id="menu_transifex_code_translations" parent="base.menu_translation_app"/>
  44. </odoo>