Odoo Help


How should I extend mrp_production_sale_info so that SO information gets to the WO ?

on 8/23/15, 3:58 AM 818 views

I would like to get sale info from the Sale Order Line into my Work Order.

Using MRP Production Sale Info I could already get the sale info into the Manufacturing Order.


I would like this to customize this to be able to see the Sale Order Line (description) in the Work Order.

I customized the following.


        <record id="mrp_production_workcenter_line_sale_info_form_view" model="ir.ui.view">
<field name="name">mrp.production.workcenter_line_sale.info.form.view</field>
<field name="model">mrp.production.workcenter.line</field>
<field name="inherit_id" ref="mrp_operations.mrp_production_workcenter_form_view_inherit" />
<field name="arch" type="xml">
<field name="move_prod_id" position="before">
<field name="sale_line" readonly="1" />


class MrpProduction(models.Model):
_inherit = 'mrp.production.workcenter.line'

sale_line = fields.Many2one(
comodel_name='sale.order.line', string='Sale Line',

Hope you guys can help me further and I can use finally start using Odoo :D

Many thanks!

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 8/23/15, 3:58 AM
Seen: 818 times
Last updated: 8/24/15, 10:34 PM