I have gone through the video.
Here are 2 aspects:
1. You want this change only due to you override the onchange method.
2. This change is not acceptable as for customer invoices, it has to take the sales price.
For 1, you may simply do this:
def onchange()
something = call super
somethng['price'unit'] = some price
return something
For 2, I am sorry, we cannot use this patch because this is a generic need.
I will consult more experts for this point.
Thanks.
Hello ,
I have gone through the video.
Here are 2 aspects:
1. You want this change only due to you override the onchange method.
2. This change is not acceptable as for customer invoices, it has to take the sales price.
For 1, you may simply do this: 'price' unit'] = some price
def onchange()
something = call super
somethng[
return something
For 2, I am sorry, we cannot use this patch because this is a generic need.
I will consult more experts for this point.
Thanks.