2
我想補充O映像的widget odoo screeen,圖片上傳在Odoo
我用如下領域,
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"/>
上傳圖像在圖像周圍有空白區域,如何上傳圖像,而不在圖像周圍添加空白區域?
你是否從類似'res.partner'的odoo模塊繼承了模型?或者這是上面這個'Binary'字段的全新模型? – CZoellner
繼承event.event模塊 –
測試圖像有多大(長度,寬度)? – CZoellner