Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
6490 Zobrazení

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 ?

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
bře 21
3924
0
čvc 20
2460
0
říj 20
1678
0
pro 15
4460
1
srp 15
10532