Skip to Content
मेन्यू
This question has been flagged
3723 Views

i hava a model like this hav 1 fileld

class customer_number(models.Model):
    _inherit = "res.partner"

    customer_number= fields.Char(string='Custom Number')

how to get that data each user login website and put to xml file

<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <template id="custom_number" inherit_id="web._assets_primary_variables" name="Website Login Layout" priority="20">
            <xpath expr="//link[last()]" poision="after">
                <t t-if="customer_number==0">
                    <link rel="stylesheet" type="text/scss" href="/customer_number/statis/css/custom_variables_bla.scss"/>
                </t>
                <t t-if="customer_number==1">
                    <link rel="stylesheet" type="text/scss" href="/customer_number/statis/css/custom_variables_blu.scss"/>
                </t>
            </xpath>
        </template>
    </data>
</odoo>
Avatar
Discard
Related Posts Replies Views Activity
2
दिस॰ 23
12745
3
जुल॰ 22
23123
2
जून 21
18572
0
मई 16
4134
1
अग॰ 15
9609