Project revenue can't quantize() product that has not list_price
Scenario: - create a product service and without list_price - Create a project, and select the product ``` Traceback (most recent call last): File "/trytond/wsgi.py", line 109, in dispatch_request return endpoint(request, **request.view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/protocols/dispatcher.py", line 43, in rpc return methods.get(request.rpc_method, _dispatch)( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/wsgi.py", line 75, in wrapper return func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/protocols/wrappers.py", line 197, in wrapper return func(request, pool, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/protocols/dispatcher.py", line 209, in _dispatch result = rpc.result(meth(inst, *c_args, **c_kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/model/modelview.py", line 51, in wrapper result = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/model/fields/field.py", line 124, in wrapper return func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/modules/project_revenue/work.py", line 200, in on_change_product self.list_price = round_price(self.list_price) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/trytond/modules/product/product.py", line 55, in round_price return value.quantize( ^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'quantize' ``` From version 6.8
issue