report_creator does not handle identical field names correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
Mantavya Gajjar (Open ERP) |
Bug Description
using c2c_budget - this will happen everywhere - I just wanted to create a report based on this data
this query
select
min(
c2c_budget.name as field0,
c2c_budget_
c2c_budget_
from
c2c_budget,
c2c_budget_item,
c2c_budget_version
where
c2c_budget.
c2c_budget_
c2c_budget.name, c2c_budget_
returns
a report "Name","Version Name", "Name"
whereas the content of the second "Name" column is identical with the first "Name"
because the c2c_budget and c2c_budget_item both have a python "Name" label whereas c2c_budget_version has "Version Name"
this is probably a limit of the XML engine which obviously can not handle duplicate names
Possible workaround ?
use field0 string="Name", field1 string="Version Name", field2 string="Name" to construct the XML
or allow custom labels