On 18/04/11 05:04 -0700, pobsteta wrote:
> Bonjour,
> 
> Et comment surcharges-tu la vue :
> 
> Est-ce dans attachment.xml qu'il faut ajouter :
> 
> <page string="Preview" name="preview" col="1">
>        <field name="datas" widget="image"/>
>        <field name="width" value="100"/>
>        <field name="height" value="100"/>
> </page>
> 
> ou dans un autre xml ? ou d'une autre façon ? un exemple ?

Il faut arriver à:

    <page string="Preview" name="preview" col="1">
        <field name="datas" widget="image" width="100" height="100"/>
    </page>

Comme dans:

    http://hg.tryton.org/modules/party_siret/file/093da26e2595/party.xml#l26

mais avec position="replace_attributes"

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpOlBuBEss1i.pgp
Description: PGP signature

Répondre à