I made this report that is called from an action in a tree view of SO. So i can select few reports and print them out.
The thing is that i want to change state in Sale Orders that I selected and printed out the reports. State should change from "draft" to "sent". How can I do this?
<data>
<report
id="report_het_sale_order"
string="Het Sale Order Pdf"
model="sale.order"
name="het.het_sale_order"
rml="config_het/report/het_sale_order.ods"
menu="True"
/>
<record model="ir.actions.report.xml" id="report_hetl_sale_order">
<field name="report_type">aeroo</field>
<field name="parser_loc">config_het/report/het_sale_order.pyc</field>
<field name="tml_Source">file</field>
<field name="parser_state">loc</field>
<field name="out_format" ref="report_aeroo.report_mimetypes_pdf_odt"/>
<field name="in_format">oo-ods</field>
<field name="auto" eval="True" />
</record>