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.
I would like to know how to set the default destination location of my products when they are manufactured. Currently the default location is "stock" and it would be easier to set the provision location by default in my case. How can I do it ? Thank you.
Odoo set by default stock location in in MRP.
That stock location odoo get from this method if you want then you need change in this method. Or you can override 'location_dest_id' field and set default appropriate value.
def _dest_id_default(self, cr, uid, ids, context=None):
location_model, location_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'stock', 'stock_location_stock')
self.pool.get('stock.location').check_access_rule(cr, uid, [location_id], 'read', context=context)
except (orm.except_orm, ValueError):
location_id = False
Hope this help.
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: 7/6/16, 5:43 AM|
|Seen: 942 times|
|Last updated: 2/20/17, 7:52 AM|