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.

31 lines
1.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="auth_oauth_multi_token_form" model="ir.ui.view">
  5. <field name="name">multi.token.res.users.form</field>
  6. <field name="model">res.users</field>
  7. <field name="type">form</field>
  8. <field name="inherit_id" ref="auth_oauth.view_users_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//field[@name='oauth_uid']" position="after">
  11. <field name="oauth_access_max_token"/>
  12. </xpath>
  13. <xpath expr="//page[2]/group[1]" position="after">
  14. <group string="Last tokens">
  15. <field name="oauth_access_token_ids" nolabel="1">
  16. <tree limit="10">
  17. <field name="id" invisible="1"/>
  18. <field name="create_date"/>
  19. <field name="oauth_access_token"/>
  20. <field name="active_token"/>
  21. </tree>
  22. </field>
  23. </group>
  24. <group>
  25. <button string="Clear Tokens" type="object" name="clear_token" class="oe_highlight"/>
  26. </group>
  27. </xpath>
  28. </field>
  29. </record>
  30. </data>
  31. </openerp>