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.

62 lines
3.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3). -->
  4. <odoo>
  5. <record id="res_partner_view_risk" model="ir.ui.view">
  6. <field name="name">res.partner.view.risk</field>
  7. <field name="model">res.partner</field>
  8. <field name="inherit_id" ref="base.view_partner_form" />
  9. <field name="priority" eval="20"/>
  10. <field name="groups_id" eval="[(4, ref('account.group_account_manager'))]"/>
  11. <field name="arch" type="xml">
  12. <page name="sales_purchases" position="after">
  13. <page name="financial_risk" string="Financial Risk" attrs="{'invisible': [('customer','=',False)]}">
  14. <group name="risk_general" col="3">
  15. <group string="General Limits" name="risk_include" col="1" colspan="2">
  16. <group col="3" class="oe_subtotal_footer">
  17. <field name="risk_invoice_draft_include"
  18. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  19. <field name="risk_invoice_draft" nolabel="1"/>
  20. <field name="risk_invoice_open_include"
  21. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  22. <field name="risk_invoice_open" nolabel="1"/>
  23. <field name="risk_invoice_unpaid_include"
  24. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  25. <field name="risk_invoice_unpaid" nolabel="1"/>
  26. <field name="risk_account_amount_include"
  27. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  28. <field name="risk_account_amount" nolabel="1"/>
  29. <field name="risk_total" colspan="3" class="oe_subtotal_footer_separator"/>
  30. </group>
  31. </group>
  32. <group string="Specific Limits" name="risk_limits" col="1">
  33. <group class="oe_subtotal_footer">
  34. <field name="risk_invoice_draft_limit"
  35. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  36. <field name="risk_invoice_open_limit"
  37. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  38. <field name="risk_invoice_unpaid_limit"
  39. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  40. <field name="risk_account_amount_limit"
  41. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  42. <field name="risk_allow_edit" invisible="1"/>
  43. </group>
  44. </group>
  45. </group>
  46. <group string="Info" col="4">
  47. <field name="credit_limit"
  48. widget="monetary"
  49. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  50. <field name="credit_policy"
  51. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  52. <field name="risk_exception"/>
  53. </group>
  54. </page>
  55. </page>
  56. </field>
  57. </record>
  58. </odoo>