mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[TMP]pms_api_rest: review input params None/False/''
This commit is contained in:
@@ -315,8 +315,10 @@ class PmsTransactionService(Component):
|
||||
pms_transaction_info.amount, 2
|
||||
) != round(transaction.amount, 2):
|
||||
vals["amount"] = pms_transaction_info.amount
|
||||
# Review: review all input parameters in all services
|
||||
# to determine the handling of values: False or 0, None, and empty string ''
|
||||
if (
|
||||
pms_transaction_info.partnerId is not None
|
||||
pms_transaction_info.partnerId
|
||||
and pms_transaction_info.partnerId != transaction.partner_id.id
|
||||
):
|
||||
vals["partner_id"] = pms_transaction_info.partnerId
|
||||
|
||||
Reference in New Issue
Block a user