*Hello again Karla. *

  I change my code and reduce only to the first part. 

 This is my code: https://pastebin.com/3c0RkQ63

  I want to associate first the account service with the line services of 
some client. 
( in this case i don't have the asociation with product and enteprise 
tryton models on my diagram)
<https://lh3.googleusercontent.com/-S8mBBrZitqI/WQBE2kDRGZI/AAAAAAAAQCc/3fKRv7mmLVoYTm0vkJoXZPn1PySU8VuZQCLcB/s1600/26-04-2017%2B01-56-14%2Ba.m..png>





















The model "medica.accounting_services" have the patient information, and in 
my case, i will associate to one enterprise or one DUMMY enterprise for 
individual transactions. 

Then, i review the information in the version 3.0 of tryton of this URL: 
http://doc.tryton.org/3.0/trytond/doc/ref/models/fields.html#ref-models-fields

but,I don't understand wich part of the class is "read" the field of the 
other module. 

<https://lh3.googleusercontent.com/-kfvV58ChrYA/WQBF9Uta5oI/AAAAAAAAQCo/VIBiViWhtuoiPmWqqVjQ31gRLR7j8C_2QCLcB/s1600/26-04-2017%2B02-00-51%2Ba.m..png>











































if you see, we have the next values: "Many2One(*model_name*, *string*[, 
*left*[, *right*[, *ondelete*[, *datetime_field*[, ***options*]]]]])ΒΆ 
<http://doc.tryton.org/3.0/trytond/doc/ref/models/fields.html#trytond.model.fields.Many2One>
"
On which part can i define the field that i will need?

I mean, of my definition, i need associate the next fields with the 
corresponding model field of the product.product model of tryton:
(to the first field by the moment the relation is not implemented because i 
want to understand this association)

services_concept = fields.Char('services_concept',size=50,"Concepto") #get 
> the Description product
> services_product = fields.Many2One('product.product','code') #get the 
> product code
>
>
<https://lh3.googleusercontent.com/-u4Twk9z4Ty4/WQBHltbsSxI/AAAAAAAAQC0/zhaz-sPplpEfwJUClhUAnmSx-ga8D5y5QCLcB/s1600/26-04-2017%2B02-08-29%2Ba.m..png>







this is the output at database level. 
( i want to show the code and description of this model product.product)


<https://lh3.googleusercontent.com/-lvwJ-BWuQq0/WQBIuMTYbfI/AAAAAAAAQDA/ZhSeWwyxW6Uw5t950wnVLSDii534a9dHwCLcB/s1600/26-04-2017%2B02-05-58%2Ba.m..png>


















from the line 50 to below of the code aren't updated right now. 


could you help me with your recommendation for do this one?
the other question is, on which model do we have the price of the 
products?, i was review all models of kind product_* , but i don't see this 
one. 



thanks a lot for your help. 











-- 
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/052b9be5-e371-4042-97ae-bb8266a0aa83%40googlegroups.com.

Reply via email to