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.

58 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2019 ACSONE SA/NV
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record model="ir.ui.view" id="contract_line_forecast_period_search_view">
  6. <field name="name">contract.line.forecast.period.search (in
  7. contract_forecast)
  8. </field>
  9. <field name="model">contract.line.forecast.period</field>
  10. <field name="arch" type="xml">
  11. <search>
  12. <field name="contract_id" string="Contract"/>
  13. <group expand="0" string="Group By">
  14. <filter string="Date Start" name="groupby_date_start"
  15. context="{'group_by':'date_start'}"/>
  16. <filter string="Date End" name="groupby_date_end"
  17. context="{'group_by':'date_end'}"/>
  18. <filter string="Date Invoice" name="groupby_date_invoice"
  19. context="{'group_by':'date_invoice'}"/>
  20. </group>
  21. </search>
  22. </field>
  23. </record>
  24. <record model="ir.ui.view" id="contract_line_forecast_period_tree_view">
  25. <field name="name">contract.line.forecast.period.tree (in
  26. contract_forecast)
  27. </field>
  28. <field name="model">contract.line.forecast.period</field>
  29. <field name="arch" type="xml">
  30. <tree editable="top" create="false" edit="false" delete="false">
  31. <field name="name"/>
  32. <field name="contract_id"/>
  33. <field name="date_start"/>
  34. <field name="date_end"/>
  35. <field name="date_invoice"/>
  36. </tree>
  37. </field>
  38. </record>
  39. <record id="contract_line_forecast_period_pivot_view" model="ir.ui.view">
  40. <field name="name">contract.line.forecast.period.tree (in
  41. contract_forecast)
  42. </field>
  43. <field name="model">contract.line.forecast.period</field>
  44. <field name="arch" type="xml">
  45. <pivot string="Contract Forecast">
  46. <field name="product_id" type="row"/>
  47. <field name="date_invoice" type="col"/>
  48. <field name="price_subtotal" type="measure"/>
  49. </pivot>
  50. </field>
  51. </record>
  52. </odoo>