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.
I want output a odoo 8 datetime field in the localization format but without time.
I extended the t-field with a option hide_time.
Is there a simpler build in solution?
You can use formatLang , <t-esc="formatLang(o.your_datatime_field,date=True)"/>
but u need to override the report ,as given sample code
from openerp.report import report_sxw
from openerp.osv import osv
def __init__(self, cr, uid, name, context=None):
super(QuotationPrint, self).__init__(cr, uid, name, context=context)
self.context = context
_name = 'report.sale.quotation_template'
_inherit = 'report.abstract_report'
_template = 'sale.quotation_template'
_wrapped_report_class = QuotationPrint
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 11/14/14, 4:33 AM|
|Seen: 6100 times|
|Last updated: 1/16/17, 6:56 AM|