Discussion:
[Erp5-dev] persistent change in default portal_skin for reports
Bartłomiej Górny
2006-01-17 13:25:37 UTC
Permalink
A minor, but very annoying problem: I used an export csv feature
(exported a list of accounting transactions), and from this moment the
portal_skin field in report dialogs (the hidden one) that should default
to "Print" now defaults to "CSV" - I have to change it manually to be
able to print a report. Where is it stored, how to bring it back to the
original state, and is it on your buglist?

Bartek
--
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"
Bartłomiej Górny
2006-01-18 12:04:09 UTC
Permalink
Post by Bartłomiej Górny
A minor, but very annoying problem: I used an export csv feature
(exported a list of accounting transactions), and from this moment the
portal_skin field in report dialogs (the hidden one) that should default
to "Print" now defaults to "CSV" - I have to change it manually to be
able to print a report. Where is it stored, how to bring it back to the
original state, and is it on your buglist?
Ok, got this one - stored in portal_selection, can be fixed by calling
setSelectionParamsFor for 'accounting_selection'.

The problem that remains is that it was changed when producing csv
export, and needed to be fixed manually. Maybe we should set it again to
'Print' upon pdf report generation?

Bartek
Post by Bartłomiej Górny
Bartek
--
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"
Jérôme Perrin
2006-01-18 15:33:09 UTC
Permalink
Post by Bartłomiej Górny
Post by Bartłomiej Górny
A minor, but very annoying problem: I used an export csv feature
(exported a list of accounting transactions), and from this moment the
portal_skin field in report dialogs (the hidden one) that should default
to "Print" now defaults to "CSV" - I have to change it manually to be
able to print a report. Where is it stored, how to bring it back to the
original state, and is it on your buglist?
Ok, got this one - stored in portal_selection, can be fixed by calling
setSelectionParamsFor for 'accounting_selection'.
exactly ! and form_dialog gives precedence to the value found in request and
selection than the default value of the field.
I just commited a patch for this.
--
J?rome
Loading...