Odoo 移动框架 - BaseModel
Odoo mobile framework - BaseModel
我目前正在使用 Odoo 移动框架构建应用程序。当我在 project structure, I can't find the class just like what the example 的 base.addons 下寻找 BaseModels java class
显示。我需要添加 BaseModels class 吗?谢谢
它在 framework-master-update-dpr 分支中可用。
public class BaseModels {
public static final String TAG = BaseModels.class.getSimpleName();
public static List<OModel> baseModels(Context context, OUser user) {
List<OModel> models = new ArrayList<>();
models.add(new OdooNews(context, user));
models.add(new IrModel(context, user));
models.add(new ResPartner(context, user));
models.add(new ResUsers(context, user));
models.add(new ResCompany(context, user));
models.add(new IrAttachment(context, user));
models.add(new MailMessage(context, user));
return models;
}
}
我目前正在使用 Odoo 移动框架构建应用程序。当我在 project structure, I can't find the class just like what the example 的 base.addons 下寻找 BaseModels java class 显示。我需要添加 BaseModels class 吗?谢谢
它在 framework-master-update-dpr 分支中可用。
public class BaseModels {
public static final String TAG = BaseModels.class.getSimpleName();
public static List<OModel> baseModels(Context context, OUser user) {
List<OModel> models = new ArrayList<>();
models.add(new OdooNews(context, user));
models.add(new IrModel(context, user));
models.add(new ResPartner(context, user));
models.add(new ResUsers(context, user));
models.add(new ResCompany(context, user));
models.add(new IrAttachment(context, user));
models.add(new MailMessage(context, user));
return models;
}
}