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.

49 lines
2.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_nutrition_information" model="ir.ui.view">
  4. <field name="name">Partner Contact Nutrition</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//page[@name='sales_purchases']" position="before">
  9. <page name="nutrition" string="Nutrition">
  10. <group>
  11. <group name="intake" string="Intake">
  12. <label for="caloric_intake"/>
  13. <div>
  14. <field name='caloric_intake' class="oe_inline"/>
  15. <field name='caloric_intake_uom'
  16. class="oe_inline"
  17. placeholder="UoM"/>
  18. </div>
  19. <label for="carbohydrate_intake"/>
  20. <div>
  21. <field name='carbohydrate_intake' class="oe_inline"/>
  22. <field name='carbohydrate_intake_uom'
  23. class="oe_inline"
  24. placeholder="UoM"/>
  25. </div>
  26. <label for="fat_intake"/>
  27. <div>
  28. <field name='fat_intake' class="oe_inline"/>
  29. <field name='fat_intake_uom'
  30. class="oe_inline"
  31. placeholder="UoM"/>
  32. </div>
  33. <label for="protein_intake"/>
  34. <div>
  35. <field name='protein_intake' class="oe_inline"/>
  36. <field name='protein_intake_uom'
  37. class="oe_inline"
  38. placeholder="UoM"/>
  39. </div>
  40. </group>
  41. <group name="other_info" string="Other info"/>
  42. </group>
  43. </page>
  44. </xpath>
  45. </field>
  46. </record>
  47. </odoo>