Openbravo:无法<从数据库创建列>

时间:2019-10-10 06:29:55

标签: openbravo

(我正在遵循指南<How_To_Create_a_Table>。)

在<表和列>中,我创建了一条新记录,但<从数据库创建列>的内容如下:

Error:
The following mandatory columns are missing for this table:
-primary key column named: HR_SALARY_ID
-common column: UpdatedBy
-common column: Updated
-common column: IsActive
-common column: CreatedBy
-common column: Created
-common column: AD_Org_ID
-common column: AD_Client_ID
Created = 0

该操作应该创建列,那么“缺少列”是什么意思?

是什么导致错误?


可以在底部窗格中手动创建列。 在底部窗格中手动创建名为CreatedBy,然后重新运行,得到:

Error:
The following mandatory columns are missing for this table:
-primary key column named: HR_SALARY_ID
-common column: UpdatedBy
-common column: Updated
-common column: IsActive
-common column: Created
-common column: AD_Org_ID
-common column: AD_Client_ID
Created = 0


创建表HR_SALARY的SQL代码来自#1


psql

openbravo=# select*from hr_salary;
 hr_salary_id | ad_client_id | ad_org_id | isactive | created | createdby | updated | updatedby | c_bpartner_id | amount | c_currency_id | validfrom
--------------+--------------+-----------+----------+---------+-----------+---------+-----------+---------------+--------+---------------+-----------
(0 rows)


openbravo=#

1 个答案:

答案 0 :(得分:1)

您的问题不清楚,我是openbravo开发人员,我很乐意提供帮助。在openbravo hr_salary_id | ad_client_id | ad_org_id | isactive | created | createdby | updated | updatedby中,上述所有字段都是创建自定义表所必需的。首先应在数据库中创建一个表,然后再创建一个表表名称应作为数据库表名称,表名称给出,然后按逻辑单击“从数据库创建列”即可。希望有帮助