On Wednesday, 13 December 2017 10:40:06 UTC+1, Cédric Krier  wrote:
> On 2017-12-13 01:13, wrote:
> > But the question remains: Is it possible?
> 
> Yes probably. Plugins are kind of wizard that run on client side.

I got the first part working, I got the data from the database. Now I want to 
put that data into a label. For that part I need the win32com.client library 
from Python. But importing failed (I'm working on Windows 10). So, do I need to 
rebuild the whole client to get this working?


> 
> > and if so, how can we execute a plugin-command from the client?
> 
> The plugins appears in the action menu of the form.
> The plugin can decide on which model to appear thanks to the
> 'get_plugins(model)' method.
> 
> > So a user clicks on the (new?) print button and in the background the
> > labelsoftware is started, a predefined label with variables is opened
> > (just like a odt-report) and filled in with the data the plugin got
> > from the Tryton-client.
> 
> I guess you will have to retrieve the report using RPC calls and send it
> to the printer.
> 
> But indeed you may be interested by https://bugs.tryton.org/issue6999, I
> think we will allow to customize the command to do direct printing. In
> this case, you could write a script that will recognize the label and
> send it to the right printer.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/23b7268b-7acf-450b-a588-1bc9467f9b56%40googlegroups.com.

Reply via email to