Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

column span

Subscriure's

Get notified when there's activity on this post

This question has been flagged
columnspan
1 Respondre
14727 Vistes
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
Descartar
Frankie Chan
Autor

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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Put an additional clum in Incomingshipement
column
Avatar
1
de des. 24
5006
Colimn invisible Solved
column
Avatar
Avatar
1
de nov. 19
3589
is it possible to move the columns of a table in Odoo without using Odoo Studio!
column columns
Avatar
1
d’abr. 25
1890
limit colums in man2many
column many2many
Avatar
0
de març 25
1429
Multi colum
form column
Avatar
0
de juny 24
1736
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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