Skip to Content
मेन्यू
This question has been flagged
1 Reply
6522 Views

Hi, I'm currently having this error when I'm trying to checkout in my website:

new row for relation "account_move_line" violates check constraint "account_move_line_check_accountable_required_fields"
DETAIL:  Failing row contains (66, 46, null, null, null, null, null, null, 1, null, null, null, 10, , 1.000, -100.00, 0.00, 100.00, 0.00, null, 100.00, -100.0, -100.0, null, f, 2021-01-09, 36, 9, null, null, null, null, null, null, null, null, null, t, null, null, null, null, null, null, null, null, t, 4, 2021-01-09 17:33:52.686134, 4, 2021-01-09 17:33:52.686134, null).


This error is in the `http://localhost:8069/payment/process` page.


What record am I missing here? I installed Odoo without demo_data included because I'm trying to configure Multi-Company payment acquirer for my website. It works if I install the website with the demo_data included, but since I want to figure out how to manually set this up for the other websites (company) that's why I did not initialize with demo_data.


For context, these are the records I have made


Chart of Accounts:

Name
Type
Company
Sale Receivable
Receivable
MyCompany
Sale Payable
Payable

MyCompany

Income
Income

MyCompany

Journals:
Name
Type
Company
Default Debit Account
Default Credit Account
Payments
Bank
MyCompany
Set to "Sale Receivable"
Set to "Sale Receivable"
Customer Invoices
Sales
MyCompany
Set to "Income"
Set to "Income"

Aside from these, I also set the Invoicing > Accounting Entries > Accounts Receivable & Accounts Payable of the Partner record of MyCompany.

"Payments (MyCompany)" is set on the Payment Acquirer's journal.

Thank you so much!

Avatar
Discard
Best Answer

This means that there's something wrong or missing in your accounting configuration. Try to install "Generic Accounting" module. This solved my problem.

Avatar
Discard