What's the difference between col
and colspan
and how to use then in OpenERP?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Every form view container (form itself, group, page, I think there are more) in OpenERP consists of 4 columns to start with.
.
┌───┬───┬───┬───┐
│ 1 │ 2 │ 3 │ 4 │
└───┴───┴───┴───┘
Every takes 2 columns: label & input field
┌───────┬───────┬───────┬───────┐
│ label │ input │ labl2 │ inpt2 │
└───────┴───────┴───────┴───────┘
With colspan, you can widen items.
┌───────┬───────────────────────┐
│ labl4 │ inpt4_______________ │
├───────┼───────┬───────┬───────┤
│ label │ input │ labl2 │ inpt2 │
└───────┴───────┴───────┴───────┘
┌───────┬───────┬───────┬───────┐
│ label │ input │ │ │
├───────┼───────┴───────┴───────┤
│ labl4 │ inpt4_______________ │
├───────┼───────┬───────┬───────┤
│ labl2 │ inpt2 │ │ │
└───────┴───────┴───────┴───────┘
When you add additional containers, like a page, you can tell OpenERP to use more or less columns.
│ │ │ │ │
├───────┴───────┼────────────────┴────────────────┤
│ ┌────┬───┐ │ ┌────┬───┬────┬───┬────┬───┐ │
│ │ lb │ a │ │ │ lb │ d │ lb │ e │ lb │ f │ │
│ ├────┼───┤ │ └────┴───┴────┴───┴────┴───┘ │
│ │ lb │ b │ │ │
│ └────┴───┘ │ │
├───────┬───────┼────────────────┬────────────────┤
│ │ │ │ │
good answer. Just changed your answer, it's col
, not cols
good job (Y)
tolstoj , could you update your answer. It seems that special character had been broken after updates of this site. I can see only something like that: ”œâ”€â”€â”€â”€â”€â”€â”€â”´â”
I fixed the answer based on archive.org page: https://web.archive.org/web/20140215040610/http://help.openerp.com/question/1490/what-is-the-different-between-col-and-colspan
Awesome ..