Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
55924 Zobrazení

Hello, where can I find this css file that has this oe_container class or address_format? Is it in source code or it is located somewhere else? oe_container class I saw being used in description in index.html and address_format class being used in crm_lead_view.xml, but I couldn't find where these classes are located.

I tried to use command to look for files in source code containing such content:

find  -type f -name '*.css' | xargs grep 'address_format'

But it didn't find anything. So does anyone know where it is located and where for example in crm module is written for it to know where to look for this class?..

Avatar
Zrušit
Nejlepší odpověď

grep --include="*.css" -rl "address_format" * would be what i would try first but that didn't find anything so i tried.

grep -rl "address_format" * and found it in server/openerp/addons/base/res/res_partner.py

layouts = {
    '%(city)s %(state_code)s\n%(zip)s': """
        <div class="address_format">
            <field name="city" placeholder="City" style="width: 50%%"/>
            <field name="state_id" class="oe_no_button" placeholder="State" style="width: 47%%" options='{"no_open": true}'/>
            <br/>
            <field name="zip" placeholder="ZIP"/>
        </div>
    """,
    '%(zip)s %(city)s': """
        <div class="address_format">
            <field name="zip" placeholder="ZIP" style="width: 40%%"/>
            <field name="city" placeholder="City" style="width: 57%%"/>
            <br/>
            <field name="state_id" class="oe_no_button" placeholder="State" options='{"no_open": true}'/>
        </div>
    """,
    '%(city)s\n%(state_name)s\n%(zip)s': """
        <div class="address_format">
            <field name="city" placeholder="City"/>
            <field name="state_id" class="oe_no_button" placeholder="State" options='{"no_open": true}'/>
            <field name="zip" placeholder="ZIP"/>
        </div>
    """
}
Avatar
Zrušit
Autor

Thanks for that.

Related Posts Odpovědi Zobrazení Aktivita
1
čvn 25
3020
0
pro 23
1521
1
říj 22
2986
0
pro 17
3592
1
srp 16
4197