Browse Source

[FIX] Use many2one field for calendar view

pull/139/head
Agathe Mollé 10 years ago
committed by Alejandro Santana
parent
commit
3efdfdb0e1
  1. 5
      super_calendar/views/super_calendar_view.xml

5
super_calendar/views/super_calendar_view.xml

@ -99,7 +99,7 @@
<field name="configurator_id" readonly="1"/> <field name="configurator_id" readonly="1"/>
<field name="model_id" readonly="1"/> <field name="model_id" readonly="1"/>
<field name="model_description" readonly="1"/> <field name="model_description" readonly="1"/>
<field name="res_id"/>
<field name="res_id" readonly="1"/>
</group> </group>
</sheet> </sheet>
</form> </form>
@ -110,7 +110,8 @@
<field name="name">super_calendar</field> <field name="name">super_calendar</field>
<field name="model">super.calendar</field> <field name="model">super.calendar</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<calendar string="Calendar" color="model_description" date_start="date_start" date_delay="duration">
<calendar string="Calendar" color="model_id" date_start="date_start" date_delay="duration" quick_add="false">
<!--The color attribute should be: model_description but v8 calendars require many2one fields-->
<field name="name"/> <field name="name"/>
</calendar> </calendar>
</field> </field>

Loading…
Cancel
Save