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
addons
folder. can use following link details creating module how create odoo modulecreate python file in module , import in
__init__.py
file. in file create model based onpostgresql view
. add methodinit(self, cr)
createspostgresql view
matching fields declared in_columns
. can check in filesale_report.py
in report folder of sale module. create fields needed in_columns
, write query ininit
method getting values these fields.specify parameter
_auto=false
openerp object, no table corresponding_columns
dictionary created automatically.for model
sale.report
data taken view defined ininit
method of model. value each field calculated dynamically, @ time click onmenuitem
sales analysis report in reporting tab. aliases inselect
query of view creation field names of modelsale_report
. example inselect
query can finduom_id
product_uom
product_uom
column in modelsale_report
.define views. create xml file in report folder of module. can use
sale_report_view.xml
file insale
module reference. create xml view model, includingtree view, search view , graph view
. in tree view, there attribute in<tree>
tagcreate="false"
. used hidingcreate
button intree view
. createaction
,menuitem
view in sales analysis report.restart server , upgrade module.
compare report sales analysis reportto solve issues.
Comments
Post a Comment