On Linux OpenERP-Client doesn't support printing with preview disabled

Bug #681142 reported by logari81
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Low
OpenERP sa GTK client R&D

Bug Description

Disabling the option "Preview before print" under Options-->Print causes the client to produce the following message on printing:

"Linux Automatic Printing not implemented.
Use preview option !"

In the attached patch I have implemented the missing functionality

Related branches

Revision history for this message
logari81 (logari81) wrote :
Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello logari81

First of all we would like to thank you for your contribution. The patch seems Almost perfect but just some features are missing. Like says it gives the user to print only a range of pages, # of copies, etc are not working.
Can you please improve the patch and resubmit it to get this missing functionality in OpenERP.

Thanks,

Revision history for this message
logari81 (logari81) wrote :

At the moment I don't have a printer to test it but according to the gtk documentation these options should be available if the printer supports them itself:

"The set_manual_capabilities() method lets you specify the printing capabilities your application supports using the Unixprint Print Capabilities Flag Constants specified by capabilities. For example, if the application can handle scaling the output then it should pass gtkunixprint.PRINT_CAPABILITY_SCALE. If it doesn't pass that, the dialog will only let you select the scale if the printing system automatically handles scaling."

Otherwise we have to re-implement each of them manually. Candidates for such a manual handling are the following:

gtkunixprint.PRINT_CAPABILITY_COPIES
gtkunixprint.PRINT_CAPABILITY_COLLATE
gtkunixprint.PRINT_CAPABILITY_REVERSE
gtkunixprint.PRINT_CAPABILITY_SCALE

Are all these really necessary? Which of them would be most important?

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hi logari81,

     No, I dont think so they all are necessary. I too think it should be supported by the printer itself. I will try out this with the
     printer and let you know. anyway as it's a good improvement, It has been improved in lp:~openerp-dev/openobject-client/trunk-dev-client with revision-info as 1398 <email address hidden> and will be soon available in trunk client.

Thanks,

Changed in openobject-client:
status: Confirmed → Fix Released
milestone: none → 6.0-rc2
Revision history for this message
xrg (xrg) wrote : Re: [Bug 681142] Re: On Linux OpenERP-Client doesn't support printing with preview disabled

On Wednesday 15 December 2010, you wrote:
> Hi logari81,
>
> No, I dont think so they all are necessary. I too think it should be
> supported by the printer itself. I will try out this with the printer and
> let you know....
>

People, I do have a script for a "dummy ps printer", which will save some
trees (but really appear as if it were a real printer to CUPS). I can send you
this, so that we can have many comfortable tests on this subject.
(let me remember how it worked, first, because it is some time since I last
used it)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.