Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
How to extend the limit to 128 characters in the field "Save as Attachment Prefix" for Reports/Invoice pdf
Select an Edit Invoices pdf, the field "Save as Attachment Prefix" is limited to 128 characters !
How to extend it?
Rem: i use OpenErp version 7.0-20140804-231303
A fast way:
1) find a file:
2) in this file find the line, which is starts with:
'attachment': fields.char('Save as Attachment Prefix', size=128, help='This is the filename of the attachment used to ...
3) in that line, change size=128 to greather value you like, lets say: size=256, . then save and close the file.
4) restart openerp
5) in openerp, go to: "Settings/Modules/Installed Modules" page. find there module named "Base" and open it. When you open it, you'll see two buttons: "Upgrade" and "Uninstall". clikc on "Upgrade", then wait to upgrade process to be completed.
That's all, you're done.
However, this changes may be lost upon openerp update. the better way is to develop separated module for this purpose, inherit 'ir.actions.report.xml' class in it and override 'attachment' field thereby setting preferred size. and then install that module, instead of changing code in base module.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/12/14, 5:57 AM|
|Seen: 1313 times|
|Last updated: 3/16/15, 8:10 AM|