跳至內容
選單
此問題已被標幟
2 回覆
8789 瀏覽次數

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
2522
0
6月 21
2499
1
5月 23
2772
1
2月 25
4234
1
4月 19
9996