Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将CSS代码添加到我的模块(ODOO 12)后出错_Css_Xml_Odoo_Odoo 11_Odoo 12 - Fatal编程技术网

将CSS代码添加到我的模块(ODOO 12)后出错

将CSS代码添加到我的模块(ODOO 12)后出错,css,xml,odoo,odoo-11,odoo-12,Css,Xml,Odoo,Odoo 11,Odoo 12,我有一个问题,我想把3个图像字段放在同一行,所以我在我的模块目录中添加了一些css代码,如下所示:odoo/addons/GestionIMMO/static/src/scss/GestionIMMO.scss 这是我的GestionIMMO.scss代码: .mmligne{text-align:right;} 这是我的gesimmo_views.xml代码 <odoo> <template id="assets_backend" name="GestionIMM

我有一个问题,我想把3个图像字段放在同一行,所以我在我的模块目录中添加了一些css代码,如下所示:odoo/addons/GestionIMMO/static/src/scss/GestionIMMO.scss

这是我的GestionIMMO.scss代码:

.mmligne{text-align:right;}
这是我的gesimmo_views.xml代码

<odoo>
     <template id="assets_backend" name="GestionIMMO assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <link rel="stylesheet" href="/GestionIMMO/static/src/css/GestionIMMO.css"/>
            </xpath>
        </template>
    <record model="ir.ui.view" id="view_form_gesimmo">
      <field name="name">Product</field>
      <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_only_form_view"/>
      <field name="arch" type="xml">
          <xpath expr="//field[@name='default_code']" position="after">
              <group>
                <field name="prop" style="width:300%%"/>
                  <field name="ref" style="width:300%%"/>
                  <field name="surface" style="width:300%%"/>
                  <field name="immo_cat" style="width:300%%"/>
                  <field name="immo_titre" style="width:300%%"/>
                  <field name="immo_date" style="width:300%%"/>
                  <br/>
                  <br/>
                  <div class="mmligne">
                  <field name="img_one" widget="image" style="width:300%%"/>
                  <field name="img_two" widget="image" style="width:300%%"/>
                  <field name="img_three" widget="image" style="width:300%%"/>
                  </div>
              </group>
          </xpath>
          <xpath expr="//field[@name='standard_price']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
          <xpath expr="//field[@name='barcode']" position="attributes" nolabel="true">
            <attribute name="invisible">1</attribute>
        </xpath>
          <xpath expr="//field[@name='categ_id']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
           <xpath expr="//field[@name='type']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
          <xpath expr="//field[@name='default_code']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
          <xpath expr="//label[@for='standard_price']" position="attributes">
     <attribute name="invisible">1</attribute>
        </xpath>
          <xpath expr="//field[@name='taxes_id']" position="after">
              <group>
                <field name="nbre_ch" style="width:200%%"/>
                  <field name="pr" style="width:200%%"/>
                  <br />
                  <br />
                  <br />
                  <br />
                  <br />
                  <field name="rue" placeholder="Rue" style="width:200%%"/>
              <field name="gouv" placeholder="Gouvernorat" style="width:200%%"/>
              <field name="ville" placeholder="Ville" style="width:200%%"/>
              <field name="codepostal" placeholder="Code postal" style="width:200%%"/>
              <field name="pays" placeholder="Pays" style="width:200%%"/>
              </group>
          </xpath>
           <xpath expr="//field[@name='taxes_id']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
           <xpath expr="//field[@name='list_price']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
          <label for="name" position="replace">
                    <label for="name"  string="Nom du bien immobilier"/>
                </label>
          <label for="sale_ok" position="replace">
                    <label for="sale_ok"  string="A Vendre"/>
                </label>
          <label for="purchase_ok" position="replace">
                    <label for="purchase_ok"  string="A Louer"/>
                </label>
                <xpath expr="//field[@name='rue']" position="before">
                   <button name="open_map" string="Localisation sur Google Maps" type="object" class="oe_highlight" style="width:100%%"/>
                </xpath>
              <xpath expr="//page[@name='variants']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
           <xpath expr="//page[@name='sales']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
           <xpath expr="//page[@name='purchase']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
           <xpath expr="//page[@name='inventory']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
          <!--<xpath expr="//button[@name='uom_name']" position="attributes">
            <attribute name="invisible">1</attribute>
          </xpath>-->
         <!-- <xpath expr="//page[@name='shop']" position="attributes">
            <attribute name="invisible">1</attribute>-->

            </field>
    </record>



</odoo>
ps:我继承了产品模板视图


请帮助

您已经定义了SCS=>GestionIMMO/static/src/scss/GestionIMMO.scs 在资产上添加错误路径ref/gestionimo/static/src/css/gestionimo.css

正确的

<link rel="stylesheet" href="/GestionIMMO/static/src/scss/GestionIMMO.scss"/>

谢谢

<link rel="stylesheet" href="/GestionIMMO/static/src/scss/GestionIMMO.scss"/>