It is currently Mon May 21, 2012 5:50 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Farben
PostPosted: Wed Feb 23, 2011 2:00 pm 
Offline

Joined: Wed Feb 23, 2011 1:45 pm
Posts: 4
Moin moin,

bin noch sehr frisch dabei, was OpenERP und Python-Programmierung angeht und daher hätte ich mal eine Frage bzgl. Farben in einer Tabelle.

Und zwar möchte ich, dass er Inhalt einer Tabelle, also die Schrift, farbig wird. Jeder Spalte soll eine andere Frabe bekommen. Ist dieses möglich? Wenn ja, wie? Muss man das in der XML-Struktur reinschreiben?

Hier mal die XML-Datei:
Code:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <menuitem id="example_simple_table_menu" name="BIR-Vorlesung" sequence="100"/>

      <record model="ir.ui.view" id="example_simple_table_friends_list">
            <field name="name">example.simple.friends.list</field>
            <field name="model">example.simple.table</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="BIR-Vorlesung">
                    <field name="name" select="1"/>
                    <field name="forename" select="1"/>
               <field name="matrikelnummer" select="1"/>
               </tree>
            </field>
        </record>
      
        <record id="example_simple_table_menu_view_action" model="ir.actions.act_window">
            <field name="name">Gruppe 2</field>
            <field name="res_model">example.simple.table</field>
            <field name="view_type">form</field>
        </record>

        <menuitem action="example_simple_table_menu_view_action"
                     id="example_simple_table_menu_view"
                     parent="example_simple_table_menu"/>
    </data>
</openerp>


Vielleicht kann mir ja jemand a helfen....

Gruß
Gordon


Top
 Profile  
 
 Post subject: Re: Farben
PostPosted: Wed Feb 23, 2011 2:05 pm 
Offline

Joined: Thu Sep 23, 2010 9:29 pm
Posts: 251
Location: Leeseringen, Germany
I think the project module... ah, deutsches Forum :)

Ich glaube im Projekt-Modul gibt's Beispiele, wie z.B. Daten bei Verzug auf Rot gesetzt werden.
Evtl. kannst du dich da gut bedienen.

_________________
Light travels faster than sound.
That is why some people appear bright until you hear them speak.


Top
 Profile  
 
 Post subject: Re: Farben
PostPosted: Wed Feb 23, 2011 2:16 pm 
Offline

Joined: Wed Feb 23, 2011 1:45 pm
Posts: 4
Danke für die schnelle Antwort....

Hatte auch schon in den Modulen gesucht, aber nichts gefunden. Bisher war es mir nun möglich, eine ganze Zeile per Bedingung einzufärben. Aber permanent eine ganze Spalte einfärben bekomme ich irgendwie nicht hin! Leider auch noch nichts gefunden. :(

Kann es sein, dass das mit der Tabellenform gar nicht geht?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP