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.

61 lines
3.5 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  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. <openerp>
  5. <data>
  6. <record id="res_partner_view_risk" model="ir.ui.view">
  7. <field name="name">res.partner.view.risk</field>
  8. <field name="model">res.partner</field>
  9. <field name="inherit_id" ref="base.view_partner_form" />
  10. <field name="priority" eval="20"/>
  11. <field name="groups_id" eval="[(4, ref('base.group_sale_salesman')), (4, ref('account.group_account_manager'))]"/>
  12. <field name="arch" type="xml">
  13. <field name="credit_limit" position="replace"/>
  14. <page name="sales_purchases" position="after">
  15. <page name="financial_risk" string="Financial Risk" attrs="{'invisible': [('customer','=',False)]}">
  16. <group name="risk_general" col="3">
  17. <group string="General Limits" name="risk_include" col="1" colspan="2">
  18. <group col="3" class="oe_subtotal_footer">
  19. <field name="risk_invoice_draft_include"
  20. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  21. <field name="risk_invoice_draft" nolabel="1"/>
  22. <field name="risk_invoice_open_include"
  23. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  24. <field name="risk_invoice_open" nolabel="1"/>
  25. <field name="risk_invoice_unpaid_include"
  26. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  27. <field name="risk_invoice_unpaid" nolabel="1"/>
  28. <field name="risk_account_amount_include"
  29. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  30. <field name="risk_account_amount" nolabel="1"/>
  31. <field name="risk_total" colspan="3" class="oe_subtotal_footer_separator"/>
  32. </group>
  33. </group>
  34. <group string="Specific Limits" name="risk_limits" col="1">
  35. <group class="oe_subtotal_footer">
  36. <field name="risk_invoice_draft_limit"
  37. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  38. <field name="risk_invoice_open_limit"
  39. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  40. <field name="risk_invoice_unpaid_limit"
  41. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  42. <field name="risk_account_amount_limit"
  43. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  44. <field name="risk_allow_edit" invisible="1"/>
  45. </group>
  46. </group>
  47. </group>
  48. <group string="Info" col="4">
  49. <field name="credit_limit"
  50. widget="monetary"
  51. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  52. <field name="credit_policy"
  53. attrs="{'readonly': [('risk_allow_edit', '=', False)]}"/>
  54. <field name="risk_exception"/>
  55. </group>
  56. </page>
  57. </page>
  58. </field>
  59. </record>
  60. </data>
  61. </openerp>