Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2222 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 25
5109
2
gen 24
1343
3
lug 20
11754
4
ott 24
5301
2
apr 19
10856