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.

1

Can I change the format of invoices?

By
Udari
on 3/19/14, 2:29 AM 1,032 views

can I change the format of an invoice? can I do it by changing the coding?

Which type of changes you want do ?

Jagdish Panchal
on 3/19/14, 2:34 AM

I need to add and remove some fields and change the headings.

Udari
on 3/19/14, 2:38 AM
1

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 3/19/14, 2:49 AM

Hi,

Add this code in py file in your new module to add new field.

 class account_invoice(osv.osv):

    _inherit = "account.invoice"

    _columns = {

            'test_name' : fields.char('Test name', size='120'),

  }
account_invoice()

Add in xml file in new module to add new field.

    <record id="inherit_invoice_form" model="ir.ui.view">
        <field name="name">account.invoice.form.inherit</field>
        <field name="model">account.invoice</field>
        <field name="inherit_id" ref="account.invoice_supplier_form"/>
        <field name="arch" type="xml">
            <field name="account_id" position="after">
                <field name="test_name"/>
            </field>
        </field>
     </record>

Try this

Thanks

Thanks jack :)

Udari
on 3/19/14, 3:03 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

0 follower(s)

Stats

Asked: 3/19/14, 2:29 AM
Seen: 1032 times
Last updated: 3/16/15, 8:10 AM