Divyesh Makwana(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-addons_17_general-mdi into
lp:openobject-addons.
Requested reviews:
Purnendu Singh (OpenERP) (psi-tinyerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons_17_general-mdi/+merge/129804
Hello,
I have done the following things:
1. The onchange on the duration must be the same on start date, in order to set
the end_date if we change the start date.
2. End date should be visible if duration > 24hours.
Thanks,
Divyesh
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons_17_general-mdi/+merge/129804
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-addons_17_general-mdi.
=== modified file 'base_calendar/crm_meeting_view.xml'
--- base_calendar/crm_meeting_view.xml 2012-10-12 05:51:06 +0000
+++ base_calendar/crm_meeting_view.xml 2012-10-23 04:43:20 +0000
@@ -89,7 +89,8 @@
<page string="Meeting Detail">
<group>
<group>
- <field name="date" string="Starting at"/>
+ <field name="date" string="Starting at"
+ on_change="onchange_dates(date, duration, False, allday)"/>
<label for="duration"/>
<div>
<field name="duration" widget="float_time"
@@ -100,7 +101,7 @@
<label for="allday" string="All Day?"/>)
</div>
<field name="date_deadline" groups="base.group_no_one"
- attrs="{'invisible': [('allday','=',True)]}"
+ attrs="{'invisible': ['|', ('allday','=',True), ('duration','<=', 24)]}"
on_change="onchange_dates(date,False,date_deadline)"/>
</group>
<group>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp