跳至内容
菜单
此问题已终结
2 回复
1444 查看

Hi everyone ! 

I'm on the last version of odoo community, running in docker.

I'm encountering an issue while trying to activate the "Wire Transfer" option within Payment Providers in Odoo. Whenever I attempt to enable it, I receive the following error message:

"Invalid Operation: You can't have two payment method lines of the same payment type (inbound) and with the same name (Manual) on a single journal."

I believe I might have inadvertently misconfigured this module while making adjustments. I've tried uninstalling and reinstalling the Wire Bank application, but unfortunately, it hasn't resolved the issue.

It seems there might be a duplication problem within the journal (accounting module), but unfortunately, access to it isn't available in the free version of Odoo. Could someone please provide some guidance on how to resolve this issue?

Any help would be greatly appreciated!

Thank you!


形象
丢弃
编写者 最佳答案

Thanks for reply, 

I dont have custom code. I find that in the database : 

--
-- Data for Name: account_payment_method; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.account_payment_method (id, create_uid, write_uid, code, payment_type, name, create_date, write_date) FROM stdin;
1 1 1 manual inbound ​{"en_US": "Manual", "fr_FR": "Manuel"} 2024-03-17 03:08:19.908659 2024-03-17 03:08:19.908659
2 1 1 manual outbound ​{"en_US": "Manual", "fr_FR": "Manuel"} 2024-03-17 03:08:19.908659 2024-03-17 03:08:19.908659
\.

--
-- Data for Name: account_payment_method_line; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.account_payment_method_line (id, sequence, payment_method_id, payment_account_id, journal_id, create_uid, write_uid, name, create_date, write_date, payment_provider_id) FROM stdin;
1 10 1 \N 6 1 1 Manual 2024-03-17 03:08:36.43771 2024-03-17 03:08:36.43771 \N
2 10 1 \N 7 1 1 Manual 2024-03-17 03:08:36.43771 2024-03-17 03:08:36.43771 \N
3 10 2 \N 6 1 1 Manual 2024-03-17 03:08:36.43771 2024-03-17 03:08:36.43771 \N
4 10 2 \N 7 1 1 Manual 2024-03-17 03:08:36.43771 2024-03-17 03:08:36.43771 \N
5 10 1 \N 6 2 2 Manuel 2024-03-19 04:10:16.902555 2024-03-19 04:10:16.902555 \N
\.

I think the probme is here, but idk where...

形象
丢弃
最佳答案

Hi,
You have to check your db and see along with your custom codes to understands what exactly going on. 

The above message is raised when multiple records in account.payment.method with same name, journal and payment type is created.

Thanks

形象
丢弃
相关帖文 回复 查看 活动
0
6月 24
1959
2
7月 25
2136
0
3月 25
1201
4
10月 24
1538
1
7月 24
2078