Hi,

I'm trying to fix a behavior in a custom modules we have developed [1] [2]. 
We added a field on sale_line model in order to store the cost_price of the 
product to compute the margin of benefit. This field is filled automaticaly 
each time product changes. The form view of the sale (pos sale) has a tree 
view of sale_lines that allows enter lines without the need of changing to 
form view (editable). I think here is the problem. Almost always it works 
fine except in one case: the firts time you open the view of the sale, you 
enter a product and its quantity and push enter instead of tab. In this 
case, and only in this case, the field cost_price is not filled 
automaticaly.

Could someone orient me where to find the issue, please?

Thank you.

[1] https://bitbucket.org/zikzakmedia/trytond-sale_pos
[2] https://bitbucket.org/zikzakmedia/trytond-sale_margin

Reply via email to