跳至内容
菜单
此问题已终结
2 回复
8776 查看

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
2518
0
6月 21
2493
1
5月 23
2768
1
2月 25
4226
1
4月 19
9981