2017-11-29 7 views
0

"Point Of Sale" Odooモジュールでカスタム画像ポップアップを作成する必要があります。ここで私のモジュールの静的/ src/xml/image_view_xmlのパスでコード化された方法です。そして、私のコードはここにあります。私のモジュールのポップアップを定義する方法を教えてください!Odooでのカスタム画像ポップアップの作成

<t t-name="ProductImagePopupWidget"> 
    <div class="modal-dialog"> 
     <div class="popup popup-image"> 
      <!--Image Popup Code Here--> 
      <div class="footer"> 
       <div class="button ok"> 
        Done 
       </div> 
      </div> 
     </div> 
    </div> 
</t> 
+0

ポップアップをボタンで表示しましたが、画像を追加するか、コードを追加したいのですか? – Cherif

答えて

0

解決済み! クリックした商品のポップアップに画像が必要でしたので、ここで行っています。

<!--Image Popup Code Here--> 
<span id="image_view"> 
    <img t-att-src="widget.image_url"/> 
</span> 
関連する問題