Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

salesman calendar add item details

By
Prakash
on 7/8/13, 7:28 AM 1,467 views

Based on this requirement "When a sales order is confirmed an item is put on the salesman's calendar to urge a follow-up call to customer to gauge satisfaction and cross-sell" how to apply in openerp 7?

0

Bonnet Denis

--Bonnet Denis--
925
| 5 6 8
Vannes, France
--Bonnet Denis--

Engeneer at MGS Consulting Ouest at Vannes, FRANCE

Bonnet Denis
On 7/8/13, 11:06 AM

You can inherit the method called by the 'confirm' button : def action_button_confirm(self, cr, uid, ids, context=None) in addons/sale/sale.py file at line n°576 approximatively :

    def action_button_confirm(self, cr, uid, ids, context=None):
        assert len(ids) == 1, 'This option should only be used for a single id at a time.'
        wf_service = netsvc.LocalService('workflow')
        wf_service.trg_validate(uid, 'sale.order', ids[0], 'order_confirm', cr)

        # redisplay the record as a sales order
        view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'sale', 'view_order_form')
        view_id = view_ref and view_ref[1] or False,
        return {
            'type': 'ir.actions.act_window',
            'name': _('Sales Order'),
            'res_model': 'sale.order',
            'res_id': ids[0],
            'view_type': 'form',
            'view_mode': 'form',
            'view_id': view_id,
            'target': 'current',
            'nodestroy': True,
        }

and here you create your object.

Is it possible to add product item in salesperson calendar?....

Prakash
on 7/8/13, 11:22 AM

Not directly, but you can create a meeting object with all references to your product.

Bonnet Denis
on 7/8/13, 11:48 AM

please can u provide more details. I think 1) crm.metting object inherit add column product_id many2one fields 2) action_button_confirm method Inherit crm.metting calendar confirmed order date show product items add is it right way?

Prakash
on 7/9/13, 5:07 AM

I don't understand why you want to use product? You should use sale order.

Bonnet Denis
on 7/9/13, 5:46 AM

ok thanks i will try using sale order

Prakash
on 7/9/13, 5:51 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/8/13, 7:28 AM
Seen: 1467 times
Last updated: 3/16/15, 8:10 AM