跳至內容
選單
此問題已被標幟
2255 瀏覽次數

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
6月 25
5130
2
1月 24
1358
3
7月 20
11845
4
10月 24
5333
2
4月 19
10892