Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3198 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 23
11905
3
Jul 22
22094
2
Jun 21
17868
0
Mei 16
3568
1
Agu 15
9016