Il giorno martedì 16 gennaio 2018 11:02:29 UTC+1, Cato Nano ha scritto:
> I have 2 models, with a relation between them
>
> Much like Sales and SaleLine
>
> Let' s say I have Bolletta and BollettaLine
>
> Some BollettaLine fields are calcolated and they depend on some Bolletta
> fields
>
> How do I do that ?
>
> Also, I' d like to show on the BollettaLine form view some Bolletta fields
>
> I tried this
>
> SomeBollettaField = fields.Many2One('tributi.bolletta', 'Some Bolletta Field')
>
> but when I update the module, I get
>
> psycopg2.ProgrammingError: ERRORE: non è possibile implementare il vincolo
> di chiave esterna "tributi_affissione_dataCommissione_fkey"
> DETAIL: Le colonne chiave "dataCommissione" e "id" hanno tipi incompatibili:
> date e integer.
>
> Translated:
>
> ERROR: The foreign key constarint tributi_affissione_dataCommissione_fkey
> can't be implemented
> DETAIL: The key columns "SomeBollettaField" and "id" have mismatching types:
> date and integer
ah the field has to be different
I think I made it
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/8828451f-b451-41b6-8d39-d29969834efe%40googlegroups.com.