OpenErp(Odoo) How to add custom analysis on reporting Tab -
i need make summery of raw materials used, qualty of products ,final products status . . . for each manufactureing process , provide information on reporing tab sales anlysis , purchase analysis . . . how can this? , insights requirment?
create module custom analysis report. explain how sales analysis report created. using create own analysis report.
steps
create module report in
addonsfolder. can use following link details creating module how create odoo modulecreate python file in module , import in
__init__.pyfile. in file create model based onpostgresql view. add methodinit(self, cr)createspostgresql viewmatching fields declared in_columns. can check in filesale_report.pyin report folder of sale module. create fields needed in_columns, write query ininitmethod getting values these fields.specify parameter
_auto=falseopenerp object, no table corresponding_columnsdictionary created automatically.for model
sale.reportdata taken view defined ininitmethod of model. value each field calculated dynamically, @ time click onmenuitemsales analysis report in reporting tab. aliases inselectquery of view creation field names of modelsale_report. example inselectquery can finduom_idproduct_uomproduct_uomcolumn in modelsale_report.define views. create xml file in report folder of module. can use
sale_report_view.xmlfile insalemodule reference. create xml view model, includingtree view, search view , graph view. in tree view, there attribute in<tree>tagcreate="false". used hidingcreatebutton intree view. createaction,menuitemview in sales analysis report.restart server , upgrade module.
compare report sales analysis reportto solve issues.
Comments
Post a Comment