Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
3621 Näkymät

Hi all,

Is it possible in Odoo 10 to change the default file naming? in V8, there was an option in settings to do so, but it is no longer there.


Currently in Odoo 10, any document you create in the system is downloaded with that name, Delivery Slip.pdf, Picking Operations.pdf and so on.

that is really frustrating to have to change the file name of the files downloaded, and I wonder why a complex system like Odoo does not that option.


Avatar
Hylkää
Paras vastaus

Hello,

     You can have custom report names as you like. For this activate developer mode. Go to

settings/ technical/ reports/ reports. Open form view of the report you want custom name, Add your field name to Printed Report Name.

Odoo supports both normal charecter or python expression(to have dynamic name) in that field

Avatar
Hylkää
Tekijä Paras vastaus

Can you elaborate more?

invoice report form view gives the following code:


<?xml version="1.0"?> <form string="Report"> <field name="ir_values_id" invisible="1"/> <sheet> <div class="oe_button_box" name="button_box"> <button name="create_action" string="Add in the 'Print' menu" type="object" attrs="{'invisible':[('ir_values_id','!=',False)]}" icon="fa-plus-square" help="Display an option on related documents to print this report" class="oe_stat_button"/> <button name="unlink_action" string="Remove from the 'Print' menu" type="object" attrs="{'invisible':[('ir_values_id','=',False)]}" icon="fa-minus-square" help="Remove the contextual action related this report" class="oe_stat_button"/> </div> <group> <group> <field name="name"/> <field name="report_type"/> </group> <group> <field name="model"/> <field name="report_name" attrs="{'invisible':[('report_type','=', 'controller')]}"/> <field name="report_rml" attrs="{'invisible':[('report_type','!=', 'controller')]}"/> </group> </group> <notebook> <page name="security" string="Security"> <field name="groups_id"/> </page> <page name="rml" string="RML Configuration" attrs="{'invisible':[('report_type','not in',['pdf','sxw'])]}"> <group> <group string="RML Report"> <field name="header"/> <field name="report_file"/> <field name="auto"/> <field name="parser"/> <field name="usage"/> </group> <group string="XML Report"> <field name="report_xsl"/> <field name="report_xml"/> </group> </group> </page> <page name="advanced" string="Advanced Properties"> <group> <field name="multi"/> <field name="attachment_use" attrs="{'invisible':[('report_type','=', 'controller')]}"/> <field name="attachment" attrs="{'invisible':[('report_type','=', 'controller')]}"/> </group> </page> </notebook> </sheet> </form>

What exactly do I need to change? can you give an example?


thanks in advance.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
heinäk. 25
4709
2
jouluk. 24
7832
2
marrask. 24
28621
2
toukok. 24
7545
3
maalisk. 24
6976