Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

column span

Subscribe

Get notified when there's activity on this post

This question has been flagged
columnspan
1 Reply
14683 Views
Avatar
Frankie Chan

Hi,

I wrote the code:

 <group >

    <label for="remarks" string="Remarks"/>
        <div>     
            <field name="remarks" />
        </div>
 </group>

It appear like:

Remarks                              |_____________________________|<--------------text field

However, I would like to have:

Remarks  |___________________________________________|<--------------text field

How to achieve that?

Thank you very much.

2
Avatar
Discard
Frankie Chan
Author

Thanks for the method suggested by prakash. It works but the the field is now on the second page. Are there any amendments or commands to make it appear on the first page?

Prakash

In my custom module version 7. I applied the same method its working without any issue.

OdooBot
Hi prakash,

Thanks for your email.

It's good that we can discuss through email because I can show you the results by figure. 

How can I find the email addresses of others in the forum?

I tried your code but it appears on the second page, as shown in the figure attached.

My desired result is that the whole "text + text box" appears at the line just below title with the text box shorten to fit the page.

I am now changing the form view of existing module, not creating new module.

Does it have any problems?

Also, you see that the address text box is very small, how can I enlarge its height?

Thank you very much.

Regards,

Frankie



On Fri, Jul 4, 2014 at 1:19 PM, prakash <prakash-jain-sunarctechnologies-com@openerp.my.openerp.com> wrote:

In my custom module version 7. I applied the same method its working without any issue.

--
prakash Sent by OpenERP S.A. using OpenERP. Access your messages and documents in Odoo

OdooBot
Hi Frankie,

 1) I think you added "Remark" fields at the End of the </sheet> tag. so its shows in the next page (next sheet).  Add the "Remarks" after the  "Title" fields and  or In the page tag after the  "Internal Notes"  based on your need.

2) In your screen shot "Address" text box only shown. In the Openerp version 7 Customer form Address, City, State, Zip, Country text box also available. Check you settings to Enable all other fields.

Hope this will help you!

Thanks
Prakash




On Sat, Jul 5, 2014 at 8:13 AM, Frankie Chan <kwfchan@gmail.com> wrote:
Hi prakash,

Thanks for your email.

It's good that we can discuss through email because I can show you the results by figure. 

How can I find the email addresses of others in the forum?

I tried your code but it appears on the second page, as shown in the figure attached.

My desired result is that the whole "text + text box" appears at the line just below title with the text box shorten to fit the page.

I am now changing the form view of existing module, not creating new module.

Does it have any problems?

Also, you see that the address text box is very small, how can I enlarge its height?

Thank you very much.

Regards,

Frankie



On Fri, Jul 4, 2014 at 1:19 PM, prakash <prakash-jain-sunarctechnologies-com@openerp.my.openerp.com> wrote:

In my custom module version 7. I applied the same method its working without any issue.

--
prakash Sent by OpenERP S.A. using OpenERP. Access your messages and documents in Odoo

--
Frankie Chan Sent by OpenERP S.A. using OpenERP. Access your messages and documents in Odoo

Ray Carnes

Please review http://forum.openerp.com/forum/topic24602.html for help on colspan and cols.

OdooBot
Hi Ray,

Thanks.

I read it.

I wrote the code:

-------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>
    <record model="ir.ui.view" id="view_ct_form">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form" />
        <field name="arch" type="xml">

       <group >
             <label for="remarks" class="custom_allign" string="Remarks"/>
                <div>     
                    <field name="remarks" colspan = "4" />
                </div>
       </group>

    </record>
  </data>
</openerp>
-------------------------------------------------------------------------------------------------

However, the text box is too short. Can you please help?

Thanks.

Regards,

Frankie



On Sun, Jul 6, 2014 at 10:50 AM, Ray Carnes <rcarnes-ursainfosystems-com@openerp.my.openerp.com> wrote:

Please review http://forum.openerp.com/forum/topic24602.html for help on colspan and cols.

--
Ray Carnes Sent by OpenERP Inc. using OpenERP. Access your messages and documents in Odoo

Ray Carnes

Check where you are anchoring your <group> tag (right now you are not anchoring it anywhere that I can see), when I do it outside the main group, I get:

 

<img width="495" height="204" id="Picture_x0020_1" src="cid:image001.jpg@01CF99F9.A00A74E0">

 

 

You need an anchor field/group and postion=”before” or “after”.

 

Ray.

 

From: Frankie Chan [mailto:kwfchan@gmail.com]
Sent: Saturday, July 05, 2014 8:37 PM
To: Followers of column-span
Subject: Re: column span

 

Hi Ray,

 

Thanks.

 

I read it.

 

I wrote the code:

 

-------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>

<openerp>

  <data>

    <record model="ir.ui.view" id="view_ct_form">

        <field name="name">res.partner.form</field>

        <field name="model">res.partner</field>

        <field name="inherit_id" ref="base.view_partner_form" />

        <field name="arch" type="xml">

 

       <group >

             <label for="remarks" class="custom_allign" string="Remarks"/>

                <div>     

                    <field name="remarks" colspan = "4" />

                </div>

       </group>

 

    </record>

  </data>

</openerp>

-------------------------------------------------------------------------------------------------

 

However, the text box is too short. Can you please help?

 

Thanks.

 

Regards,

 

Frankie

 

 

On Sun, Jul 6, 2014 at 10:50 AM, Ray Carnes <rcarnes-ursainfosystems-com@openerp.my.openerp.com> wrote:

Please review http://forum.openerp.com/forum/topic24602.html for help on colspan and cols.

--
Ray Carnes Sent by OpenERP Inc. using OpenERP. Access your messages and documents in Odoo

 

--
Frankie Chan Sent by OpenERP S.A. using OpenERP. Access your messages and documents in Odoo

Avatar
Prakash
Best Answer

In __openerp__.py File add:-

                "css" : ["static/src/css/labelallign.css"],

In static/src/css/labelallign.css add:-

                .openerp .custom_allign {
                            text-align: right;
                 }

In xml file add:-

<form string="Title" version="7.0">
 <group >
    <label for="remarks" class="custom_allign" string="Remarks"/>
        <div>     
            <field name="remarks" />
        </div>
 </group>
</form>

 

2
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
Put an additional clum in Incomingshipement
column
Avatar
1
Dec 24
4972
Colimn invisible Solved
column
Avatar
Avatar
1
Nov 19
3558
is it possible to move the columns of a table in Odoo without using Odoo Studio!
column columns
Avatar
1
Apr 25
1859
limit colums in man2many
column many2many
Avatar
0
Mar 25
1401
Multi colum
form column
Avatar
0
Jun 24
1682
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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