1

I am currently building an app using Odoo mobile framework. When I look for the BaseModels java class under the base.addons in my project structure, I can't find the class just like what the example shown. Do I need to add BaseModels class? Thanks.

plexus
  • 101
  • 1
  • 11

1 Answers1

0

It is available in the framework-master-update-dpr branch.

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;
    }
}
Kenly
  • 24,317
  • 7
  • 44
  • 60
  • You do not need to add that class, if you want to reproduce the same examples just clone the right branch. – Kenly Mar 07 '20 at 08:46
  • can I ask for a help about this https://stackoverflow.com/questions/62830462/ocolumn-with-odoo-functional-in-odoo-mobile-framework – plexus Jul 13 '20 at 04:34