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

Production Order Report

By
Billy Watt
on 9/14/13, 2:37 PM 1,244 views

I'm trying to amend the Production Order report so that I can show the field note from mrp.routing.workcenter.

I think that's probably the best field to put specific instructions for what should happen at a particular point in a routing, checking something against a spec for example.

My problem seems to be that that particular field doesn't appear in mrp_production_workcenter_line which is what the Production Order report references.

I'm sure I'm missing something really obvious but, how do I amend mrp_production_workcenter_line so that it includes note from mrp_routing_workcenter ?

0
Billy Watt
On 9/16/13, 9:10 AM

That's exactly what I thought Andreas, however, when I put the following in

     <td>
        <para style="terp_default_Centre_8">[[ (line2.workcenter_id and line2.workcenter_id.note) or '' ]]</para>
      </td>
      <td>
        <para style="terp_default_Centre_8">[[ (line2.workcenter_id and line2.workcenter_id.name) or '' ]]</para>
      </td>

The first part, which should be my note field is blank and the second part is correctly filled in with the workcenter name.

It's a little confusing

0

Andreas Brueckl

--Andreas Brueckl--
5056
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 9/16/13, 5:45 AM

From within the report you can access the field note of the workcenter of the routing with

  • [[ (line2.workcenter_id and line2.workcenter_id.note) or '' ]]

So what you have missed is the connection through workcenter_id to access the fields of mrp_routing_workcenter.

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: 9/14/13, 2:37 PM
Seen: 1244 times
Last updated: 3/16/15, 8:10 AM