Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
how to create a custom field at delivery order (stock.picking.out) which gets its value from sales order in openerp?
I have a sales order form which contains a custom delivery date field.
Now I want to pass the value from delivery date field in sales order to the commitment date field in delivery order (stock.picking.out).
Did we make two columns in both stock.picking and stock.picking.out?
And also how can I take the delivery date field value from sales order during the automatic creation of delivery order(at the click of confirm order button).
I am using v7. Thanks in advance
There is a method named _prepare_order_picking in sale.order model in sale_stock module that generates and returns a dictionary to creates delivery order.
You have to override that method and modify the dictionary as per your need.
_inherit = 'sale.order'
def _prepare_order_picking(self, cr, uid, order, context=None):
vals = super(sale_order, self)._prepare_order_picking(cr, uid, order, context=context)
I guess this will solve your question.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/14/14, 4:04 AM|
|Seen: 2862 times|
|Last updated: 3/16/15, 8:10 AM|