Add support for avatar

issue10085
review343561002
This commit is contained in:
Cédric Krier
2021-03-28 19:20:36 +02:00
parent 22f86d277a
commit 7050c2fcc9
2 changed files with 14 additions and 11 deletions
+2 -1
View File
@@ -874,7 +874,8 @@ class Erase(Wizard):
pool = Pool()
Attachment = pool.get('ir.attachment')
Note = pool.get('ir.note')
return [Attachment, Note]
Avatar = pool.get('ir.avatar')
return [Attachment, Note, Avatar]
class EraseAsk(ModelView):
+12 -10
View File
@@ -2,17 +2,19 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form col="6">
<label name="name"/>
<field name="name" xexpand="1"/>
<label name="code"/>
<field name="code"/>
<group col="-1" colspan="2" id="checkboxes">
<label name="active"/>
<field name="active" xexpand="0" width="25"/>
<!-- Add here some checkboxes ! -->
<group col="6" colspan="5" id="header" yalign="0">
<label name="name"/>
<field name="name" xexpand="1"/>
<label name="code"/>
<field name="code"/>
<group col="-1" colspan="2" id="checkboxes">
<label name="active"/>
<field name="active" xexpand="0" width="25"/>
<!-- Add here some checkboxes ! -->
</group>
<label name="replaced_by"/>
<field name="replaced_by"/>
</group>
<label name="replaced_by"/>
<field name="replaced_by"/>
<notebook colspan="6">
<page string="General" id="general">
<field name="addresses" mode="form,tree" colspan="4"