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.

67 lines
4.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 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" class="o_group_col_6">
  16. <group col="3" class="oe_subtotal_footer" style="float: left !important;">
  17. <field name="risk_invoice_draft_include"
  18. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  19. <field name="risk_invoice_draft" nolabel="1" class="oe_left_padding_15"/>
  20. <field name="risk_invoice_open_include"
  21. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  22. <field name="risk_invoice_open" nolabel="1" class="oe_left_padding_15"/>
  23. <field name="risk_invoice_unpaid_include"
  24. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  25. <field name="risk_invoice_unpaid" nolabel="1" class="oe_left_padding_15"/>
  26. <field name="risk_account_amount_include"
  27. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  28. <field name="risk_account_amount" nolabel="1" class="oe_left_padding_15"/>
  29. <field name="risk_account_amount_unpaid_include"
  30. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  31. <field name="risk_account_amount_unpaid" nolabel="1" class="oe_left_padding_15"/>
  32. <field name="risk_total" colspan="3" class="oe_subtotal_footer_separator oe_label_to_left"/>
  33. </group>
  34. </group>
  35. <group string="Specific Limits" name="risk_limits" class="o_group_col_6">
  36. <group class="oe_subtotal_footer" style="float: left !important;">
  37. <field name="risk_invoice_draft_limit"
  38. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  39. <field name="risk_invoice_open_limit"
  40. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  41. <field name="risk_invoice_unpaid_limit"
  42. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  43. <field name="risk_account_amount_limit"
  44. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  45. <field name="risk_account_amount_unpaid_limit"
  46. attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>
  47. <field name="risk_allow_edit" invisible="1"/>
  48. </group>
  49. </group>
  50. </group>
  51. <group string="Info" col="4">
  52. <field name="credit_limit"
  53. widget="monetary"
  54. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  55. <field name="credit_policy"
  56. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  57. <field name="risk_exception"/>
  58. </group>
  59. </page>
  60. </page>
  61. </field>
  62. </record>
  63. </odoo>