Re: [tryton-dev] Problems using one2many and many2many fields

2017-05-03 Thread Sergi Almacellas Abellana
El 03/05/17 a les 16:55, Carlos Ibrahim Arias ha escrit: I created the model Z_MecialHistory to store information of the patient (/date, patient and healthprofessional/) and it is related to the model PatientData. The point is that, as Albert said, I need to access to the information in the model

Re: [tryton-dev] Problems using one2many and many2many fields

2017-05-03 Thread Carlos Ibrahim Arias
I created the model Z_MecialHistory to store information of the patient (*date, patient and healthprofessional*) and it is related to the model PatientData. The point is that, as Albert said, I need to access to the information in the model PatientEvaluation. After adding the function field Alb

Re: [tryton-dev] resend:upgrade warnings with recent develop branch

2017-05-03 Thread Cédric Krier
On 2017-05-01 22:39, Richard PALO wrote: > [resend, g$ggle still broke, apparently] > full upgrade with recent 'develop' shows the following: > > 4815 140668832162880 [2017-05-01 16:35:10,058] WARNING > > trytond.backend.postgresql.table Unable to set column company of table > > account_fiscalyea

Re: [tryton-dev] Problems using one2many and many2many fields

2017-05-03 Thread Albert Cervera i Areny
2017-05-03 4:23 GMT+02:00 Carlos Ibrahim Arias : > Hi! I'm having problems using a one2many field on another model different > from the class it was created on. I tried to use a many2many field so that I > can view the related fields but cant make it work > > This is the first class... > > class Z_

Re: [tryton-dev] Problems using one2many and many2many fields

2017-05-03 Thread Sergi Almacellas Abellana
El 03/05/17 a les 04:23, Carlos Ibrahim Arias ha escrit: Hi! I'm having problems using a one2many field on another model different from the class it was created on. I tried to use a many2many field so that I can view the related fields but cant make it work I'm not sure to understand what are y

Re: [tryton-dev] Best way to test for a date in a date field

2017-05-03 Thread Sergi Almacellas Abellana
El 02/05/17 a les 07:59, Vincent Bastos ha escrit: Hi, I wanted to know what the best way to write a domain for a search call to test for records that have a date in a particular field. My idea is something like this: nodate = Date(0) invoices = Invoice.search([ ('lease', '=', sel

[tryton-dev] Best way to test for a date in a date field

2017-05-03 Thread Vincent Bastos
Hi, I wanted to know what the best way to write a domain for a search call to test for records that have a date in a particular field. My idea is something like this: nodate = Date(0) invoices = Invoice.search([ ('lease', '=', self.id), ('state', '!=', 'paid'),

[tryton-dev] Problems using one2many and many2many fields

2017-05-03 Thread Carlos Ibrahim Arias
Hi! I'm having problems using a one2many field on another model different from the class it was created on. I tried to use a many2many field so that I can view the related fields but cant make it work This is the first class... class Z_MedicalHistory(ModelSQL, ModelView): 'Patient Medical