In our previous example, we were simply changing the static text. Now we will work with a dynamic field from our sales order header. For our real world example, we want to make sure that everyone sees clearly on the sales order when there is a rush order. This was the custom field that we added in Chapter 10, Customizing OpenERP for Your Business. We now want to check this field on our sales order and if the Rush Order field has been checked, we want to display RUSH ORDER in big text on our sales order.
Fortunately, it will be easy for us to add this to our sales order with the skills we have already learned in this chapter. Begin by modifying the sales order in OpenERP. Next, we want to add a line of text that will allow us to only display RUSH ORDER when the x_rushorder
Boolean field is true.
The line of markup in our document that adds the rush order message is outlined in yellow. At first, this markup syntax can be confusing. It reads like this; if...