Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3634 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jul 25
4759
2
Des 24
7871
2
Nov 24
28651
2
Mei 24
7565
3
Mar 24
7005