Ovnicraft a écrit :


2008/10/14 Christophe Simonis <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>

    Ovnicraft a écrit :

        hi, i've created a object that in my country represent the
        especial treatment with the taxes, named retentions and this
        must be printed together with the invoice, now i want to add a
        page into invoice view and show the new object fields here.

        this is my view http://openerp.pastebin.com/f4d6df08c i want to
        know if is ok.
        and the object http://openerp.pastebin.com/m2f8e60dd

        i have this error trying to update the module
        http://openerp.pastebin.com/m161f1b0b

        best regards,

-- [b]question = (to) ? be : !be; .[/b]


    Do not make a one2one field. Use inheritance:
    
http://openerp.com/wiki/index.php/Developers:Developper%27s_Book/Objects/ObjectInheritIntro/ObjectsInherit

-- Christophe Simonis
    Developer
    OpenERP - Tiny sprl
    Chaussée de Namur, 40
    B-1367 Gérompont
    Tel: +32.81.81.37.00
    Web: http://openerp.com
    Blog: http://christophe-simonis-at-tiny.blogspot.com

    Tiny ERP - when brains matter more than size
     -- George Jacobson, 2005

    _______________________________________________
    Tinyerp-users mailing list
    http://tiny.be/mailman/listinfo/tinyerp-users

i am going to try, but with inherit it just modified invoice and not create another object with relation.
--
[b]question = (to) ? be : !be; .[/b]

So use a many2one with a '_sql_constraint'.
it's depend if your relation is a 'IS A' or a 'HAS A'. In first case, you can use _inherits

--
Christophe Simonis
Developer
OpenERP - Tiny sprl
Chaussée de Namur, 40
B-1367 Gérompont
Tel: +32.81.81.37.00
Web: http://openerp.com
Blog: http://christophe-simonis-at-tiny.blogspot.com

Tiny ERP - Schhht, don't tell your competitors it's free !
  -- Fabien Pinckaers, 2004
begin:vcard
fn:Christophe Simonis
n:Simonis;Christophe
org:Tiny SPRLU
adr;quoted-printable;quoted-printable:;;Chauss=C3=A9e de Namur 40;Grand Rosi=C3=A8re;;1367;Belgique
email;internet:[EMAIL PROTECTED]
title:Developer
tel;work:+3281813700
x-mozilla-html:FALSE
url:http://tiny.be
version:2.1
end:vcard

_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to