Hi -
I'm new to Odoo and I'm using Odoo version 12.0 installed in Ubuntu 18.04. I'm trying to setup POS in multiple company (ex. Main Company, Company A & Company B). The POS is working perfectly in the Main Company. However, when I tried to setup POS in Company A/B, I'm getting a pop-dialog error when clicking 'New Session" button. I've configured Journals, Chart of Accounts, Warehouses, etc., for each company.
Error in dialog box:
Odoo Server Error - Validation Error
×
The operation cannot be completed:
- Create/update: a mandatory field is not set.
- Delete: another model requires the record being deleted. If possible, archive it instead.
Model: Point of Sale Session (pos.session), Field: Session ID (name)
------------------
Here is what I got from the logs:
2019-10-11 21:41:41,019 23642 ERROR CompanyA odoo.sql_db: bad query: b'INSERT INTO "pos_session" ("id", "create_uid", "create_date", "write_uid", "write_date", "config_id", "login_number", "name", "rescue", "sequence_number", "state", "user_id") VALUES (nextval(\'pos_session_id_seq\'), 1, (now() at time zone \'UTC\'), 1, (now() at time zone \'UTC\'), 2, 0, NULL, false, 1, \'opening_control\', 2) RETURNING id'
ERROR: null value in column "name" violates not-null constraint
DETAIL: Failing row contains (16, 2, null, 2, null, null, opening_control, 1, 0, null, null, f, 1, 2019-10-11 21:41:40.963799, 1, 2019-10-11 21:41:40.963799).
I hope someone can help me with this problem. Thanks in advance!