Skip to Content
Menu
This question has been flagged
2 Replies
660 Views

Hello,


When I try to create a payment method, the system asks me to insert an image. When I do, I get the following error message:

"This payment method requires an accomplice; you must first activate a payment provider that supports this payment method."


When I try to modify an existing payment method, I get this message:


"L'opération ne peut pas être terminée : Missing required value for the field 'Code' (code). Model: 'Mode de paiement' (payment.method) - create/update: a mandatory field is not set - delete: another model requires the record being deleted, you can archive it instead"


Thank you for your help.

Avatar
Discard
Best Answer

To resolve this issue in Odoo, first go to Accounting > Configuration > Payment Providers, and make sure at least one payment provider (e.g. Bank, Stripe, PayPal) is enabled — this is required before a payment method can be used. Then, go to Accounting > Configuration > Payment Methods, and when creating or editing a payment method, ensure that all mandatory fields, especially the ‘Code’ field, are filled in correctly. If you attempt to delete a payment method and receive an error due to dependencies, you should archive the record instead by clicking the ‘Archive’ option from the action menu.

Yes, you're right, you should acitvate dev mode first to show the code field.

Regards, 

Appschef

Avatar
Discard
Author Best Answer

It's okay, I fixed the problem, I had to activate developer mode to be able to display other invisible fields. Thank you.

Avatar
Discard
Author

hello,
Even after solving the problem, I noticed that the payment method is not complete in the odoo community version 18. There is only one type of active payment method, it is "manual payment". I have to install an add-on to configure other payment types: check, bill, cash?... if its true ,could you suggest an effective add-on?thanks .

Related Posts Replies Views Activity
1
Aug 25
971
2
Aug 25
471
2
Aug 25
516
3
Aug 25
1343
1
Aug 25
743