kasim1011 / odoojsonrpcclient Goto Github PK
View Code? Open in Web Editor NEWOdoo Json-rpc Client for Android
License: MIT License
Odoo Json-rpc Client for Android
License: MIT License
Hi, I reuse the "item_view_customer" layout to create a view. but not know how to bind it with the result of SearchRead()
if (searchRead.isSuccessful) {
val items: ArrayList<Customer> = gson.fromJson(searchRead.result.records, customerListType)
val view = LayoutInflater.from(context).inflate(R.layout.item_view_customer, null)
// I want to get data of the 1st item in "items", and bind it to "view"
windowManager = context.getSystemService(Activity.WINDOW_SERVICE) as WindowManager
val params = windowParams
windowManager!!.addView(callerView, params)
}
on Entities:
@Expose
@SerializedName("afiliado_id")
val afiliadoid: JsonElement,
How to impement on Layout
android:text="@{UtilsKt.trimFalse(prestamos.afiliadoid)}"
Error:
msg:cannot find method trimFalse(com.google.gson.JsonElement) in class io.gripxtech.odoojsonrpcclient.UtilsKt
in "item_view_customer.xml"
there is a "companyName" which is never show up.
I'm using odoo 11.
hi
I tested on my xiaomi Mi 6 which is installed the chinese version of rom.
when I try to connect to testing server (odoo 11) on Lan. I got error on the app: "Handshake failed".
the debug info of app:
D/OkHttp: --> POST https://192.168.5.120:8079/web/webclient/version_info
Content-Type: application/json; charset=UTF-8
Content-Length: 54
User-Agent: MI 6
D/OkHttp: {"id":"1","jsonrpc":"2.0","method":"call","params":{}}
--> END POST (54-byte body)
D/OkHttp: <-- HTTP FAILED: javax.net.ssl.SSLHandshakeException: Handshake failed
on the odoo server I got this message:
code 400, message Bad request version ('\x00\x02\x01\x00\x00')
� ��������������� � �� � � �hhttp/1.1 � �� " HTTPStatus.BAD_REQUEST
what can I do?
hi,
I want to search a partner:
"phone" ilike "A" OR "mobile" ilike "A"?
How to Call a CustumerDetail, for update and delete?
override fun onBindViewHolder(baseHolder: RecyclerView.ViewHolder, basePosition: Int) {
super.onBindViewHolder(baseHolder, basePosition)
val position = baseHolder.adapterPosition
when (getItemViewType(basePosition)) {
VIEW_TYPE_ITEM -> {
val holder = baseHolder as CustomerViewHolder
val item = items[position] as Customer
val binding = holder.binding
binding.customer = item
if (!binding.root.hasOnClickListeners()) {
binding.root.setOnClickListener {
// val clickedPosition = holder.adapterPosition
// val clickedItem = items[clickedPosition] as Customer
}
}
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.