Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2202 Zobrazení

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  

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 25
5084
2
led 24
1299
3
čvc 20
11727
4
říj 24
5267
2
dub 19
10835