Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Hide "validate" button on invoice

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
invoicevalidateopen
3 Replies
6674 Tampilan
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
Buang
Avatar
Ludo - 21South
Jawaban Terbai

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
Buang
Avatar
klacus
Jawaban Terbai

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
Buang
Avatar
Mickael Charbonnier
Penulis Jawaban Terbai

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
Buang
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
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
"Validate" button missing on invoices for users with Only Own Documents rights
invoice validate
Avatar
Avatar
Avatar
4
Apr 25
2097
Cannot create moves for different companies when validating invoice Diselesaikan
invoice validate Odoo11
Avatar
Avatar
Avatar
2
Jan 23
5582
Invoice Numbers not be created?
invoice validate sequence
Avatar
Avatar
Avatar
Avatar
Avatar
12
Jan 17
15241
Global taxes defined, but they are not in invoice lines ?
invoice validate openerp7
Avatar
Avatar
2
Apr 16
4925
Why in the Calendar View if you move the invoice can change the date of the invoice validated ? Is it a bug? Diselesaikan
invoice calendar validate
Avatar
Avatar
1
Mar 15
4290
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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