Commit b7bc2914 authored by Ilyas Semmaoui's avatar Ilyas Semmaoui Committed by Vincent A

woob.capabilities.bill: update Bill's price and income warning messages

The warning message asks to use total_amount instead of price/income but
total_amount doesn't exist in Bill and it should be total_price
instead.
parent b5ffe7be
......@@ -129,7 +129,7 @@ def __repr__(self):
@property
def price(self):
warnings.warn(
'Field "price" is deprecated, use "total_amount" field instead.',
'Field "price" is deprecated, use "total_price" field instead.',
DeprecatedFieldWarning, stacklevel=3,
)
......@@ -140,7 +140,7 @@ def price(self):
@price.setter
def price(self, value):
warnings.warn(
'Field "price" is deprecated, use "total_amount" field instead.',
'Field "price" is deprecated, use "total_price" field instead.',
DeprecatedFieldWarning, stacklevel=3,
)
if empty(value):
......@@ -158,7 +158,7 @@ def price(self, value):
@property
def income(self):
warnings.warn(
'Field "income" is deprecated, use "total_amount" field instead.',
'Field "income" is deprecated, use "total_price" field instead.',
DeprecatedFieldWarning, stacklevel=3,
)
......@@ -169,7 +169,7 @@ def income(self):
@income.setter
def income(self, value):
warnings.warn(
'Field "income" is deprecated, use "total_amount" field instead.',
'Field "income" is deprecated, use "total_price" field instead.',
DeprecatedFieldWarning, stacklevel=3,
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment