Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update state #372

Open
aymen6 opened this issue May 9, 2018 · 1 comment
Open

update state #372

aymen6 opened this issue May 9, 2018 · 1 comment

Comments

@aymen6
Copy link

aymen6 commented May 9, 2018

how to change state from sent to read when click item !
update

this is my fragment
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
ODataRow row = OCursorUtils.toDatarow((Cursor) mAdapter.getItem(position));

Sanction sanction = new Sanction(context, null);

OValues values = new OValues();
values.put("state", "read");
sanction.update(row.getInt(OColumn.ROW_ID), values);
my model
public class Sanction extends OModel {

OColumn state = new OColumn("State", OSelection.class)
.addSelection("draft","Draft")
.addSelection("confirm","Confirmed")
.addSelection("close","Canceled")
.addSelection("done","Done");
}

I need to update state of sales when I click in item list view but i can't

@aymen6
Copy link
Author

aymen6 commented May 9, 2018

@dpr-odoo

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

No branches or pull requests

1 participant