コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
8807 ビュー

I'm trying to add o image widget in odoo screeen,

I have used the field as below ,

  image = fields.Binary("Image", attachment=True,
                          help="This field holds the image used as avatar for \
        this contact, limited to 1024x1024px",)

XML :

<field name="image" widget='image' class="oe_avatar"/>

The uploaded image has white space around image, how to upload image as it is , without adding white space around image ?

アバター
破棄
著作者

I am stuck with this issue please anybody suggest me an idea

最善の回答

 image = fields.Binary("Image", help="This field holds the image used as avatar for \
        this contact, limited to 1024x1024px",)

Just try with these simple method. removing attachement.

アバター
破棄
関連投稿 返信 ビュー 活動
1
1月 23
2553
0
6月 21
2516
1
5月 23
2791
1
2月 25
4259
1
4月 19
10008