Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Hide "validate" button on invoice

By
Mickael Charbonnier
on 7/22/14, 9:48 AM 1,110 views

Hello,

 I'm working with openERP 7.0 and I try to hide the "validate" button on invoice for a group of user. It is possible with the rights access ?

Could you please help me ?

Thanks,

Mickael

1

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 7/22/14, 10:05 AM

Yes. Create a custom module and overwrite the view for the invoice. Replace the button like this:

<button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_highlight" groups="account.group_account_invoice"/>

 

with

<button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_highlight" groups="account.group_account_invoice, mymodule_my_custom_group"/>

 

1
klacus
On 7/22/14, 10:17 AM

Just not forget to update the security.xml with your group, and rights.

 

Yes possible.

You just create a new view, and you can replace with this methode. This guide is helpfull.

https://doc.odoo.com/6.0/developer/2_6_views_events/views/specify_view_to_use/

0
Mickael Charbonnier
On 7/22/14, 11:10 AM

Hello Ludo and Klacus,

Thanks for your answer.

Is it possible to : duplicate the invoice view, replace the button and apply my new view to my group ?

If not, could you please describe me how to create a custom module ?

 

Thanks,

 

Mickael

Hi Mickael. I refresh the answer. Cheers :-)

klacus
on 7/22/14, 11:54 AM
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
Mickael Charbonnier
on 7/23/14, 5:52 AM
Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
klacus
on 7/23/14, 6:02 AM
Thanks Laci,

It works fine !

Best regards,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 10:03:00 +0000

Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
Mickael Charbonnier
on 7/23/14, 11:10 AM
Hi Mickael,

Your Welcome!
B.R.

Laci
p.m.: if you have any question just write a mail, if I can I will help..

2014-07-23 17:10 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W244215D884DCE1B639BED5F7FE0@phx.gbl" type="cite">
Thanks Laci,

It works fine !

Best regards,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 10:03:00 +0000

Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
klacus
on 7/23/14, 11:12 AM
Hello Laci,

How are you ?

I have antoher question on OPENERP7....

I would like to change the name and the folder when I print an invoice. Is it possible?

And you know how to print directly (no pdt but send directly to the printer)

Thanks for your help,

Best regards,

Mickael

Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 15:12:11 +0000

Hi Mickael,

Your Welcome!
B.R.

Laci
p.m.: if you have any question just write a mail, if I can I will help..

2014-07-23 17:10 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W244215D884DCE1B639BED5F7FE0@phx.gbl" type="cite">
Thanks Laci,

It works fine !

Best regards,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 10:03:00 +0000

Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
Mickael Charbonnier
on 7/31/14, 5:49 AM
Hi Michael!

Now I am very busy, but at the weekend I can deal with your problem.

Regards
Laci

2014-07-31 11:49 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W29E2A7BF0C0E9E95C36F37F7E60@phx.gbl" type="cite">
Hello Laci,

How are you ?

I have antoher question on OPENERP7....

I would like to change the name and the folder when I print an invoice. Is it possible?

And you know how to print directly (no pdt but send directly to the printer)

Thanks for your help,

Best regards,

Mickael

Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 15:12:11 +0000

Hi Mickael,

Your Welcome!
B.R.

Laci
p.m.: if you have any question just write a mail, if I can I will help..

2014-07-23 17:10 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W244215D884DCE1B639BED5F7FE0@phx.gbl" type="cite">
Thanks Laci,

It works fine !

Best regards,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 10:03:00 +0000

Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
klacus
on 7/31/14, 6:31 AM
Hi Mickael.

As far I remember the openerp has some several solution for the printing.

Like this:
https://www.odoo.com/apps/trunk/print_manager/

https://www.odoo.com/forum/help-1/question/how-to-send-reports-directly-to-printer-in-v7-0-1341
http://forum.openerp.com/forum/topic27513.html

some solution is 6.0 or 6.1 but you can install it under 7.0 with a small modify. (just debug the module when you try to install, and repairt it one-by-one, and step by step)

You can find a lot of solution if you looking fro the printjob, or direct printing in google with openerp key.

About the folder and name, can you tell me a bit more what are you want? If you want to change the pdf name you need to modify your /report/print_invoice.py.

This output is give the name. Or you can manipulate the file after the printing method is success. Like any I/o with python.
Very useful if you check the python os modul.

http://www.tutorialspoint.com/python/os_rename.htm


I will need to make a module for Zebra printer at end of august, if you want i will share with you my moduls..

Bye
Laci



2014-07-31 11:49 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W29E2A7BF0C0E9E95C36F37F7E60@phx.gbl" type="cite">
Hello Laci,

How are you ?

I have antoher question on OPENERP7....

I would like to change the name and the folder when I print an invoice. Is it possible?

And you know how to print directly (no pdt but send directly to the printer)

Thanks for your help,

Best regards,

Mickael

Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 15:12:11 +0000

Hi Mickael,

Your Welcome!
B.R.

Laci
p.m.: if you have any question just write a mail, if I can I will help..

2014-07-23 17:10 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W244215D884DCE1B639BED5F7FE0@phx.gbl" type="cite">
Thanks Laci,

It works fine !

Best regards,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 10:03:00 +0000

Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
klacus
on 8/3/14, 1:10 AM
Hi Lacy,

Sorry for the delay, i was in vacation ....

For the print_manager, the module doesn't work with V7. Do you know why and how can I install it ?

About the folder and name, I want to change the name and the folder destination when I print a customer invoice. Because the name is always "invoice" and the folder destination is always downloads.
Do you know how can I do it ?

Thanks again,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Sun, 3 Aug 2014 05:10:46 +0000

Hi Mickael.

As far I remember the openerp has some several solution for the printing.

Like this:
https://www.odoo.com/apps/trunk/print_manager/

https://www.odoo.com/forum/help-1/question/how-to-send-reports-directly-to-printer-in-v7-0-1341
http://forum.openerp.com/forum/topic27513.html

some solution is 6.0 or 6.1 but you can install it under 7.0 with a small modify. (just debug the module when you try to install, and repairt it one-by-one, and step by step)

You can find a lot of solution if you looking fro the printjob, or direct printing in google with openerp key.

About the folder and name, can you tell me a bit more what are you want? If you want to change the pdf name you need to modify your /report/print_invoice.py.

This output is give the name. Or you can manipulate the file after the printing method is success. Like any I/o with python.
Very useful if you check the python os modul.

http://www.tutorialspoint.com/python/os_rename.htm


I will need to make a module for Zebra printer at end of august, if you want i will share with you my moduls..

Bye
Laci



2014-07-31 11:49 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W29E2A7BF0C0E9E95C36F37F7E60@phx.gbl" type="cite">
Hello Laci,

How are you ?

I have antoher question on OPENERP7....

I would like to change the name and the folder when I print an invoice. Is it possible?

And you know how to print directly (no pdt but send directly to the printer)

Thanks for your help,

Best regards,

Mickael

Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 15:12:11 +0000

Hi Mickael,

Your Welcome!
B.R.

Laci
p.m.: if you have any question just write a mail, if I can I will help..

2014-07-23 17:10 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W244215D884DCE1B639BED5F7FE0@phx.gbl" type="cite">
Thanks Laci,

It works fine !

Best regards,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 10:03:00 +0000

Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
Mickael Charbonnier
on 8/25/14, 6:30 AM
Hi Mickael.

I was In Adria also :-) And the 3g in Croatia is very slow :-)

You need to create a custom button: this button is create a new invoice file name as you want.

In the return section you need to give back the report format as ir.action.report.

you can see this
http://stackoverflow.com/questions/14434846/openerp-custom-report-filename
for the first steps.

Bye.
Laci.




2014-08-25 12:30 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W39C9C681FB631BECBBA8C0F7DF0@phx.gbl" type="cite">
Hi Lacy,

Sorry for the delay, i was in vacation ....

For the print_manager, the module doesn't work with V7. Do you know why and how can I install it ?

About the folder and name, I want to change the name and the folder destination when I print a customer invoice. Because the name is always "invoice" and the folder destination is always downloads.
Do you know how can I do it ?

Thanks again,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Sun, 3 Aug 2014 05:10:46 +0000

Hi Mickael.

As far I remember the openerp has some several solution for the printing.

Like this:
https://www.odoo.com/apps/trunk/print_manager/

https://www.odoo.com/forum/help-1/question/how-to-send-reports-directly-to-printer-in-v7-0-1341
http://forum.openerp.com/forum/topic27513.html

some solution is 6.0 or 6.1 but you can install it under 7.0 with a small modify. (just debug the module when you try to install, and repairt it one-by-one, and step by step)

You can find a lot of solution if you looking fro the printjob, or direct printing in google with openerp key.

About the folder and name, can you tell me a bit more what are you want? If you want to change the pdf name you need to modify your /report/print_invoice.py.

This output is give the name. Or you can manipulate the file after the printing method is success. Like any I/o with python.
Very useful if you check the python os modul.

http://www.tutorialspoint.com/python/os_rename.htm


I will need to make a module for Zebra printer at end of august, if you want i will share with you my moduls..

Bye
Laci



2014-07-31 11:49 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W29E2A7BF0C0E9E95C36F37F7E60@phx.gbl" type="cite">
Hello Laci,

How are you ?

I have antoher question on OPENERP7....

I would like to change the name and the folder when I print an invoice. Is it possible?

And you know how to print directly (no pdt but send directly to the printer)

Thanks for your help,

Best regards,

Mickael

Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 15:12:11 +0000

Hi Mickael,

Your Welcome!
B.R.

Laci
p.m.: if you have any question just write a mail, if I can I will help..

2014-07-23 17:10 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W244215D884DCE1B639BED5F7FE0@phx.gbl" type="cite">
Thanks Laci,

It works fine !

Best regards,

Mickael


Subject: Re: False
From: kozmalg@gmail.com
To: mickael.charbonnier@live.fr
Date: Wed, 23 Jul 2014 10:03:00 +0000

Hi Mickael.

Yes. The print invoice is a report.
As I know this is in the rml file.
You can check it at the Settings / Low Level objects / Actions / Reports
just looking for the account.invoice model.

So if you find it, you can see the reml path inside your addons folder.

In the rml you can find something like this:

in my case: /opt/openerp/server/openerp/addons/account/report$ geany account_print_invoice.rml

you can open with this file a simple text editor.
please see line 156:

I marked as blue the relevant info's.

    <blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
      <tr>
        <td>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
        </td>
        <td>
          <para style="terp_default_8">[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]</para>
          <para style="terp_default_8">[[ display_address(o.address_invoice_id) ]]</para>
          <para style="terp_default_8">
            <font color="white"> </font>
          </para>
          <para style="terp_default_8">Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]</para>
          <para style="terp_default_8">VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]</para>
        </td>
      </tr>
    </blockTable>


The o. is mean object. (You should define it in a report py. you can see at there also with same name just.py)

About the rml programing you can find a lot of manul in the net.

I learn it from here: funny name:-) http://www.reportlab.com/docs/rml-for-idiots.pdf

and here: http://www.reportlab.com/docs/rml2pdf-userguide.pdf

about the reports more deep:https://doc.odoo.com/6.0/book/8/8_20_Config/8_20_Config_reports/

Cheers.
Laci






2014-07-23 11:52 keltezéssel, mickael Charbonnier írta:
<blockquote cite="mid:DUB124-W24B49F194E06BD99A4FB0FF7FE0@phx.gbl" type="cite">
Hi Klacus,

Thanks for your answer.

Do you know how to display customer informations when we print an invoice ?

Best regards,

Mickael


Subject: Re: False
From: kozmalg-gmail-com@mail.odoo.com
To: mickael.charbonnier@live.fr
Date: Tue, 22 Jul 2014 15:54:13 +0000

Hi Mickael. I refresh the answer. Cheers :-)
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
klacus Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo
--
Mickael Charbonnier Sent by OpenERP S.A. using Odoo. about Forum Post False
klacus
on 8/26/14, 12:01 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/22/14, 9:48 AM
Seen: 1110 times
Last updated: 3/16/15, 8:10 AM