odoo pivot filed字段设置
<record model="ir.ui.view" id="view_event_question_report_pivot">
<field name="name">event.question.report.pivot</field>
<field name="model">event.question.report</field>
<field name="arch" type="xml">
<pivot string="Questions Analysis" disable_linking="True">
<field name="event_id" type="row"/>
<field name="attendee_id" type="row"/>
<field name="question_id" type="col"/>
<field name="answer_id" type="col"/>
<field name="amount" type="measure"/>
<field name="date" interval="year" type="col"/>
<field name="date" interval="day" type="col"/>
<field name="total_difference" type="measure" widget="float_time"/>
<field name="date" interval="month" type="col"/>
</pivot>
</field>
</record>
本文来自博客园,作者:那时一个人,转载请注明原文链接:https://www.cnblogs.com/qianxunman/p/12718747.html

浙公网安备 33010602011771号