Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Hide "validate" button on invoice

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
invoicevalidateopen
3 Besvarelser
6644 Visninger
Avatar
Mickael Charbonnier

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

0
Avatar
Kassér
Avatar
Ludo - 21South
Bedste svar

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
Avatar
Kassér
Avatar
klacus
Bedste svar

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/

1
Avatar
Kassér
Avatar
Mickael Charbonnier
Forfatter Bedste svar

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

0
Avatar
Kassér
klacus

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

OdooBot
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
OdooBot
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
OdooBot
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
OdooBot
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
OdooBot
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
OdooBot
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
OdooBot
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
OdooBot
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
OdooBot
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
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
"Validate" button missing on invoices for users with Only Own Documents rights
invoice validate
Avatar
Avatar
Avatar
4
apr. 25
2063
Cannot create moves for different companies when validating invoice Løst
invoice validate Odoo11
Avatar
Avatar
Avatar
2
jan. 23
5544
Invoice Numbers not be created?
invoice validate sequence
Avatar
Avatar
Avatar
Avatar
Avatar
12
jan. 17
15207
Global taxes defined, but they are not in invoice lines ?
invoice validate openerp7
Avatar
Avatar
2
apr. 16
4903
Why in the Calendar View if you move the invoice can change the date of the invoice validated ? Is it a bug? Løst
invoice calendar validate
Avatar
Avatar
1
mar. 15
4276
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now