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.

60 lines
2.4 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. <field name="company_id" groups="base.group_multi_company"/>
  14. <group expand="0" string="Group By">
  15. <filter string="Date Start" name="groupby_date_start"
  16. context="{'group_by':'date_start'}"/>
  17. <filter string="Date End" name="groupby_date_end"
  18. context="{'group_by':'date_end'}"/>
  19. <filter string="Date Invoice" name="groupby_date_invoice"
  20. context="{'group_by':'date_invoice:day'}"/>
  21. </group>
  22. </search>
  23. </field>
  24. </record>
  25. <record model="ir.ui.view" id="contract_line_forecast_period_tree_view">
  26. <field name="name">contract.line.forecast.period.tree (in
  27. contract_forecast)
  28. </field>
  29. <field name="model">contract.line.forecast.period</field>
  30. <field name="arch" type="xml">
  31. <tree editable="top" create="false" edit="false" delete="false">
  32. <field name="name"/>
  33. <field name="contract_id"/>
  34. <field name="date_start"/>
  35. <field name="date_end"/>
  36. <field name="date_invoice"/>
  37. <field name="company_id" groups="base.group_multi_company"/>
  38. </tree>
  39. </field>
  40. </record>
  41. <record id="contract_line_forecast_period_pivot_view" model="ir.ui.view">
  42. <field name="name">contract.line.forecast.period.tree (in
  43. contract_forecast)
  44. </field>
  45. <field name="model">contract.line.forecast.period</field>
  46. <field name="arch" type="xml">
  47. <pivot string="Contract Forecast">
  48. <field name="product_id" type="col"/>
  49. <field name="date_invoice" type="row"/>
  50. <field name="price_subtotal" type="measure"/>
  51. </pivot>
  52. </field>
  53. </record>
  54. </odoo>