Bharat Devnani (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-addons-issues4-crm-pso-state-modification-bde
into lp:~openerp-dev/openobject-addons/trunk-addons-issues4-crm-pso.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons-issues4-crm-pso-state-modification-bde/+merge/120727
Hello Sir,
I have modified the behaviour of state field of crm.meeting
in order to keep confirmed state by default.
Thanks & Regards,
Devnani Bharat R.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-addons-issues4-crm-pso-state-modification-bde/+merge/120727
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-addons/trunk-addons-issues4-crm-pso-state-modification-bde
into lp:~openerp-dev/openobject-addons/trunk-addons-issues4-crm-pso.
=== modified file 'base_calendar/crm_meeting_demo.xml'
--- base_calendar/crm_meeting_demo.xml 2012-08-13 12:47:04 +0000
+++ base_calendar/crm_meeting_demo.xml 2012-08-22 09:40:38 +0000
@@ -27,7 +27,7 @@
<field eval="time.strftime('%Y-%m-05 12:00:00')" name="date"/>
<field eval="time.strftime('%Y-%m-05 19:00:00')" name="date_deadline"/>
<field eval="7.0" name="duration"/>
- <field name="state">draft</field>
+ <field name="state">open</field>
</record>
<record id="crm_meeting_3" model="crm.meeting">
@@ -39,7 +39,7 @@
<field eval="time.strftime('%Y-%m-12 15:55:05')" name="date"/>
<field eval="time.strftime('%Y-%m-12 18:55:05')" name="date_deadline"/>
<field eval="3.0" name="duration"/>
- <field name="state">done</field>
+ <field name="state">open</field>
</record>
<record id="crm_meeting_4" model="crm.meeting">
@@ -61,7 +61,7 @@
<field eval="time.strftime('%Y-%m-22 11:05:00')" name="date"/>
<field eval="time.strftime('%Y-%m-22 16:05:00')" name="date_deadline"/>
<field eval="5" name="duration"/>
- <field name="state">draft</field>
+ <field name="state">open</field>
</record>
<record id="crm_meeting_6" model="crm.meeting">
@@ -72,7 +72,7 @@
<field eval="time.strftime('%Y-%m-18 2:00:00')" name="date"/>
<field eval="time.strftime('%Y-%m-18 10:30:00')" name="date_deadline"/>
<field eval="8.5" name="duration"/>
- <field name="state">done</field>
+ <field name="state">open</field>
</record>
</data>
</openerp>
=== modified file 'base_calendar/crm_meeting_view.xml'
--- base_calendar/crm_meeting_view.xml 2012-08-15 22:30:38 +0000
+++ base_calendar/crm_meeting_view.xml 2012-08-22 09:40:38 +0000
@@ -70,7 +70,7 @@
<field name="arch" type="xml">
<form string="Meetings" version="7.0">
<header>
- <field name="state"/>
+ <field name="state" invisible="True"/>
</header>
<sheet>
<div class="oe_title">
@@ -115,7 +115,7 @@
<label for="allday" string="All Day?"/>)
</div>
<field name="recurrency"
- attrs="{'readonly': ['|', ('recurrent_uid','!=',False), ('state','=','done')]}"/>
+ attrs="{'readonly': [('recurrent_uid','!=',False)]}"/>
</group>
<group>
<field name="alarm_id" widget="selection" />
@@ -171,7 +171,6 @@
<button string="Invite People"
name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
icon="terp-partner" type="action"
- attrs="{'readonly': [('state', '=', 'done')]}"
context="{'model' : 'crm.meeting', 'attendee_field':'attendee_ids'}" colspan="2"/>
<field name="attendee_ids" widget="one2many" mode="tree">
<tree string="Invitation details" editable="top">
@@ -245,12 +244,11 @@
<field name="name">CRM - Meetings Tree</field>
<field name="model">crm.meeting</field>
<field name="arch" type="xml">
- <tree string="Meetings" fonts="bold:needaction_pending==True"
- colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
+ <tree string="Meetings" fonts="bold:needaction_pending==True">
<field name="name" string="Subject" />
<field name="user_id"/>
<field name="date"/>
- <field name="state"/>
+ <field name="state" invisible="True"/>
<field name="duration" />
<field name="needaction_pending" invisible="1"/>
</tree>
=== modified file 'hr_holidays/hr_holidays.py'
--- hr_holidays/hr_holidays.py 2012-08-15 20:51:43 +0000
+++ hr_holidays/hr_holidays.py 2012-08-22 09:40:38 +0000
@@ -274,7 +274,7 @@
'date': record.date_from,
'end_date': record.date_to,
'date_deadline': record.date_to,
- 'state': 'done', # to block that meeting date in the calendar
+ 'state': 'open', # to block that meeting date in the calendar
}
meeting_id = meeting_obj.create(cr, uid, meeting_vals)
self._create_resource_leave(cr, uid, [record], context=context)
_______________________________________________
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