跳至內容
選單
此問題已被標幟
534 瀏覽次數

I have a one2many (x_survey_line_ids) table field ("Add a line") in survey.survey model and all the relevant fields i want displayed in this table in survey.user_input model so that when add a line is clicked it opens a new form to enter data for the relevant fields such as ammount payable and total. I have x_rate (float) in survey.survey that i want to calulate with amount payable and totals. I want amount payable to be divided by x_float and to be displayed in totals column for each separate record. I have 2 issues; since x_rate and the other 2 fields needed to compute are in two different modelsi dont know how to do that. Second, since the amount payable and totals are not separate fields itself and just separate records all under the one2many field x_survey_line_ids how is it possible to calculate each row individually so that if either x_rate or amount payable changes it should be reflected in the totals? I would really appreciate it if anyone could help me with this please.

頭像
捨棄