Community mailing list archives

community@mail.odoo.com

Re: How to change message in open chatter

by
Abhishek
- 10/31/2014 04:06:00
Thanks Atchuthan,

i already did it but the problem persists that if i changed 2 fields and both are in _track then two sub type message will be generated and fire two mails ,,,,,,it 
i want to send on a single mail, secondly the true false still comming

On Fri, Oct 31, 2014 at 12:47 PM, Atchuthan T U <atchuthantu@gmail.com> wrote:
In XML,
        <record id="mt_feature1" model="mail.message.subtype">
            <field name="name">Ready for Dispatch True</field>
            <field name="res_model">YOUR MODULE</field>
            <field name="default" eval="False"/>
            <field name="description">Ready for Dispatch : Checked</field>
        </record>
        <record id="mt_feature2" model="mail.message.subtype">
            <field name="name">Ready for Dispatch False</field>
            <field name="res_model">YOUR MODULE</field>
            <field name="default" eval="True"/>
            <field name="description">Ready for Dispatch : Unchecked</field>

In PY,
    _track = {
        'ready_for_dispatch': {
            'YOUR MODULE.mt_feature1': lambda self, cr, uid, obj, ctx=None: obj.ready_for_dispatch == True,
            'YOUR MODULE.mt_feature2': lambda self, cr, uid, obj, ctx=None: obj.ready_for_dispatch == False,
        },
    }

On Thu, Oct 30, 2014 at 7:46 PM, atchuthantu@gmail.com <atchuthantu@gmail.com> wrote:
Abhishek,

    Then you have to add _track feature that enables the use of having a custom message sub-type defined in it.  You can check on _track.



On Thursday 30 October 2014 06:48 PM, abhishek jaiswal wrote:
hi <span name="atchuthantu@gmail.com" class="">atchuthantu,
<span name="atchuthantu@gmail.com" class="">i don't want to off the visibility ,,,

<span name="atchuthantu@gmail.com" class="">i want a custom message if instead of true -> false




On Thu, Oct 30, 2014 at 5:02 PM, atchuthantu@gmail.com <atchuthantu@gmail.com> wrote:

Abhishek,

    In Odoo, we have a feature track_visibility parameter defined in its field definition.

In Sale module,
'user_id': fields.many2one('res.users', 'Salesperson', states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, select=True, track_visibility='onchange'),

So, when this field is changed, a message is added in Open Chatter with a value change.

If you need to remove this, overwrite the field and set track_visibility to "none"


On Thursday 30 October 2014 02:07 PM, abhishek jaiswal wrote:
<blockquote cite="mid:CAKyY-ozYAWc4fBcQdnu8auWikL_+_3H4d6Z6AqsthdJrUi3+ow@mail.gmail.com" type="cite">
Hi community , 

I have situation where a Boolean field changed and  in open chatter it shows 
field name true -> false by admin 1 min ago

how can i changed this 



--
With Warm Regards
Abhishek Jaiswal,

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


-- 


--
Thanks & Regards,
Atchuthan

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
With Warm Regards
Abhishek Jaiswal,
Website, Blog

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


-- 


--
Thanks & Regards,
Atchuthan

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
With Warm Regards
Abhishek Jaiswal,
Website, Blog