Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2373 Vizualizări

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  

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 25
5253
2
ian. 24
1492
3
iul. 20
11968
4
oct. 24
5429
2
apr. 19
10998