analytic_distribution_model_views.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="account_analytic_distribution_model_tree_view" model="ir.ui.view">
  4. <field name="name">account.analytic.distribution.model.tree</field>
  5. <field name="model">account.analytic.distribution.model</field>
  6. <field name="arch" type="xml">
  7. <tree string="Analytic Distribution Model" editable="top" multi_edit="1">
  8. <field name="partner_id" optional="show"/>
  9. <field name="partner_category_id" optional="hide"/>
  10. <field name="company_id" groups="base.group_multi_company" optional="show"/>
  11. <field name="analytic_distribution" widget="analytic_distribution" optional="show"/>
  12. <button name="action_read_distribution_model" type="object" string="View" class="float-end btn-secondary"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record id="account_analytic_distribution_model_form_view" model="ir.ui.view">
  17. <field name="name">account.analytic.distribution.model.form</field>
  18. <field name="model">account.analytic.distribution.model</field>
  19. <field name="arch" type="xml">
  20. <form string="Analytic Distribution Model">
  21. <sheet>
  22. <group>
  23. <group string="Simultaneous conditions to meet" colspan="2">
  24. <group>
  25. <field name="partner_id"/>
  26. <field name="partner_category_id"/>
  27. </group>
  28. <group>
  29. <field name="company_id" groups="base.group_multi_company"/>
  30. </group>
  31. </group>
  32. <group string="Analytic distribution to apply" colspan="2">
  33. <field name="analytic_distribution" widget="analytic_distribution"
  34. options="{'force_applicability': 'optional', 'disable_save': true}"/>
  35. </group>
  36. </group>
  37. </sheet>
  38. </form>
  39. </field>
  40. </record>
  41. <record id="action_analytic_distribution_model" model="ir.actions.act_window">
  42. <field name="name">Analytic Distribution Models</field>
  43. <field name="res_model">account.analytic.distribution.model</field>
  44. <field name="view_mode">tree,form</field>
  45. </record>
  46. </odoo>