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.

54 lines
2.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2019 Coop IT Easy
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="view_partner_form_loan_issue" model="ir.ui.view">
  8. <field name="name">res.partner.form.loan.issue</field>
  9. <field name="model">res.partner</field>
  10. <field name="inherit_id"
  11. ref="easy_my_coop.view_partner_form_easy_my_coop"/>
  12. <field name="arch" type="xml">
  13. <page name="share_subscription" position="after">
  14. <page string="Loan issue lines" name="loan_issue_lines"
  15. groups="easy_my_coop.group_easy_my_coop_user">
  16. <group>
  17. <field name="is_loaner"/>
  18. </group>
  19. <field name="loan_line_ids">
  20. <tree>
  21. <!-- <tree create="false" delete="false" edit="false">-->
  22. <field name="loan_issue_id"/>
  23. <field name="date"/>
  24. <field name="quantity"/>
  25. <field name="face_value"/>
  26. <field name="amount"/>
  27. <field name="state"/>
  28. </tree>
  29. </field>
  30. </page>
  31. </page>
  32. </field>
  33. </record>
  34. <record id="view_res_partner_loaner_filter" model="ir.ui.view">
  35. <field name="name">res.partner.select</field>
  36. <field name="model">res.partner</field>
  37. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  38. <field name="arch" type="xml">
  39. <xpath expr="//filter[@name='supplier']" position='after'>
  40. <filter string="Loaners" name="loaners"
  41. domain="[('is_loaner','=',1)]" help="Loaning Partners"/>
  42. </xpath>
  43. </field>
  44. </record>
  45. <record id="action_loaners" model="ir.actions.act_window">
  46. <field name="name">Loaners</field>
  47. <field name="res_model">res.partner</field>
  48. <field name="view_type">form</field>
  49. <field name="view_mode">kanban,tree,form</field>
  50. <field name="context">{'search_default_loaners':1}</field>
  51. </record>
  52. </odoo>