تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2220 أدوات العرض

Hi community,

I want to add a field in sale.order to the Sales Analysis (odoo 10)

For that, I create a model (module_name/report/sale_report.py) and I inherit it with 'sale.report'. 


from openerp import models, fields
import logging
_logger = logging.getLogger(__name__)

class SaleReport(models.Model):
_inherit = 'sale.report'

_logger.error("________________________________________________________________________")
is_fbm = fields.Boolean('Is Fbm', readonly=True)

I upgrade my custom module but nothing happen, did I miss something ? Maybe the _select, _from, _group_by function ?


If somebody can help me


Thanks  

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 25
5106
2
يناير 24
1338
3
يوليو 20
11750
4
أكتوبر 24
5296
2
أبريل 19
10853