Skip to content

[master][WIP][BR001026][T23820] suez mobile framework - #1

Open
JoJoJoJoJoJoJo wants to merge 11 commits into
Elico-Corp:masterfrom
JoJoJoJoJoJoJo:suez-framework
Open

[master][WIP][BR001026][T23820] suez mobile framework#1
JoJoJoJoJoJoJo wants to merge 11 commits into
Elico-Corp:masterfrom
JoJoJoJoJoJoJo:suez-framework

Conversation

@JoJoJoJoJoJoJo

Copy link
Copy Markdown

No description provided.

@elicoidal elicoidal left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (short size PR and overall).
Cannot judge the validity of the technical part though
@seb-elico @lonelysun will need to review

@seb-elico seb-elico left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoJoJoJoJoJoJo Good job! Just a few comments

*/
package com.odoo.config;


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line

* OAddon partners = new OAddon(Partners.class).withSequence(2);
*/
OAddon customers = new OAddon(Customers.class).setDefault();
// OAddon customers = new OAddon(Customers.class).setDefault();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove dead code and add comment to explain what is the below line

super.onCreate();
App.APPLICATION_NAME = getPackageManager().getApplicationLabel(getApplicationInfo()).toString();
App.modelRegistryUtils.makeReady(getApplicationContext());
networkState = inNetwork();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment

for (Enumeration<String> item = dexFile.entries(); item.hasMoreElements(); ) {
String element = item.nextElement();
if (element.startsWith(App.class.getPackage().getName())) {
if (element.startsWith(App.class.getPackage().getName()) || element.startsWith(OConstants.SUEZ_APP_PACKAGE)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment

}

public List<ODataRow> searchRecords(OdooFields fields, ODomain domain, int limit) {
public List<ODataRow> searchRecords(OdooFields fields, ODomain domain, int offset, int limit, String sort) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add detailed javadoc

return searchRecords(fields, domain, limit, null);
}


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line

this.relationType = relationType;
}

public OColumn(Context context, int resId, Class<?> type) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Javadoc

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on code, seems like <?> should be replaced with <BaseFragment>

this(OResource.string(context, resId), type);
}

public OColumn(Context context, int resId, Class<?> type, RelationType relationType) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Javadoc

addon = addon_class;
}

public OAddon(String clsName) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Javadoc

addon = cls;
}
} catch (ClassNotFoundException e) {
e.printStackTrace();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log

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

Successfully merging this pull request may close these issues.

3 participants