Odoo Help


how to modify form layout options with V7 [Closed]

Kevin McMenamin
on 4/17/13, 2:56 AM 3,115 views

The Question has been closed

Parth Gajjar
on 04/23/2013 03:05:43

Under V7 the default for forms is with an A4 background. But for a number of screens, this looks horrible when extra fields are added. How do you get rid of the white form background.

And also, is there a way to add a horizontal line to a form. I have some with lots of fields and would like to break up.


Parth Gajjar

--Parth Gajjar--

| 3 3 5
Ahmadabad, India
--Parth Gajjar--
Parth Gajjar
On 4/17/13, 5:19 AM

For Only horizontal line

Because of OpenERP v7 supports basic HTML tags you can use < hr/> tag where you want to put horizontal line.(see in screenshot)

image description

Ok for making page wide remove <sheet> </sheet> tags from form

<form string="Sales Order" version="7.0">
               . . .
               other buttons
               . . . 
                    <label string="Quotation " . . .
                    <label string="Sales Order . . . 
                    <field name="name" . . .
                <hr/>  < < < < Here i add <hr/> tag
                . . .

And for making page wide remove <sheet> </sheet> tags from form

Hope this will help :)

Thanks - for the other part, you can see that the white "form" section sits on top of a grey background - is there any way to either make the white form wider or for it to cover the whole page.

Solnet Solutions Limited, Kevin McMenamin
on 4/17/13, 6:23 PM

could you send the xml for the form you created above as I keep getting an xml error when adding the br tag..thanks

Solnet Solutions Limited, Kevin McMenamin
on 4/17/13, 7:32 PM

not < br/> use < hr/> tag

Parth Gajjar
on 4/18/13, 2:50 AM

Ok for making page wide remove <sheet> </sheet> tags from form

Parth Gajjar
on 4/18/13, 2:52 AM

thanks for that - for the other element, typo on my part - was using <hr/> tag and getting xml error

Solnet Solutions Limited, Kevin McMenamin
on 4/18/13, 6:02 PM

XML error comes if you add <hr/> tag in old version of form. If you want to use hr tag then define form like this

<form string="Sales Shop" version="7.0">

Define version in form .... But this will do lot's of changes change.

Thus conclusion is this if you want <hr/> (or other HTML tags) then there must be version="7.0" in form

Parth Gajjar
on 4/19/13, 3:10 AM

for reference see in above answer

Parth Gajjar
on 4/19/13, 3:15 AM

excellent thanks - working now.

Solnet Solutions Limited, Kevin McMenamin
on 4/21/13, 9:45 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 4/17/13, 2:56 AM
Seen: 3115 times
Last updated: 3/16/15, 8:10 AM