0
votes

I am using OpenERP report designer to alter the sales order report a bit.

Background:

I am trying to remove the internal reference of a product that appears in my invoices, sales orders and quotations....

Actions done: I have created a new field through the delevoper mode and named it x_showintref which is a boolean ('x_showintref': fields.boolean('Show Internal Reference'))...

What to do:

I am trying to edit the sales - quotation report so that when the x_showintref is ticked, it will display the internal reference else it will not display the Internal Reference of the product.

Other Ideas: Is there a way one can put this in a python script as well??

Many Thanks

1

1 Answers

0
votes

Try this in your report. This will work.

[[ o.x_showintref==True and line.product_id.default_code or line.name ]]