Skip to Content
Menu
This question has been flagged
1 Reply
3873 Views

Odoo v8

Accounting | Journal Entries | Create

I would like to add 4 fields and a button (working OK), also remove/hide the "Add an item" (in the Journal Items notebook).

Following is my xml (inherited). Still not able to remove that hyperlink.

Your advice is appreciated.

Thanks in advance! :)

<?xml version="1.0"?>
<openerp>
    <data>
        <record id="view_form_account_move_inherited" model="ir.ui.view">
     <field name="name">Account Move form – User extension</field>
             <field name="model">account.move</field>
             <field name="inherit_id" ref="account.view_move_form"/>
             <field name="arch" type="xml">
                <group>
                    <group name="group_l1">
                        <field name="x_myDescription" />
                        <field name="x_myDebitCredit" />
                        <field name="x_myPartner" />
                        <field name="x_myAccount" />
                    </group>
                    <group name="group_l2">
                        <button name="do_insert_item" type="object" string="Insert Item" class="oe_highlight" />
                    </group>
                </group>

                 <xpath expr='//form[@string="Journal Item"]' position='attributes'>
                    <attribute name="create">false</attribute>
                 </xpath>
            </field>
        </record>
     </data>
</openerp>    
Avatar
Discard
Author Best Answer

found the solution to this :)


<xpath expr='//tree[@string="Journal Items"]' position='attributes'>
    <attribute name="create">false</attribute>
</xpath>

 

Avatar
Discard