Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found multiple matches for field 'Invoice Lines' (2 matches) - odoo 11 #31

Open
m-abdalrahman opened this issue Apr 7, 2021 · 0 comments

Comments

@m-abdalrahman
Copy link

I try to import invoices to odoo
by using this command
odoo_import_thread.py --o2m -c ./connection.conf --file=in.csv --model='account.invoice'

and I get this error

{'rows': {'from': 0, 'to': 1}, 'type': 'warning', 'record': 0, 'field': 'invoice_line_ids', 'message': "Found multiple matches for field 'Invoice Lines' (2 matches)"}
['inv_o2m.test10', '1', 'Customer', 'Pro - A', '10', '20', '0']
batch [0], 0
{'rows': {'from': 0, 'to': 1}, 'record': 0, 'type': 'error', 'message': 'null value in column "name" violates not-null constraint\nDETAIL:  Failing row contains (46, null, null, 10, 51, null, 1, null, 20.00, null, null, null, 10.000, 0.00, null, null, null, null, f, 1, 2021-04-07 15:53:12.852083, 1, 2021-04-07 15:53:12.852083, 0, null, null).\n'}
['inv_o2m.test10', '1', 'Customer', 'Pro - A', '10', '20', '0']

my csv file

id;number;partner_id;invoice_line_ids/product_id;invoice_line_ids/quantity;invoice_line_ids/price_unit;invoice_line_ids/value_difference
inv_o2m.test10;1;Customer;Pro - A;10;20;0
;;;Pro – B;5;10;0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant