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

-- 
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/f803c9f8-c3df-4123-8a4f-4ca5d0744d51%40googlegroups.com.

Reply via email to