Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2244 Lượt xem

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  

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
5128
2
thg 1 24
1354
3
thg 7 20
11829
4
thg 10 24
5327
2
thg 4 19
10880