Giter Site home page Giter Site logo

kasim1011 / odoojsonrpcclient Goto Github PK

View Code? Open in Web Editor NEW
63.0 17.0 37.0 7.31 MB

Odoo Json-rpc Client for Android

License: MIT License

Kotlin 100.00%
odoo10 odoo11 kotlin-android rxjava2-retrofit2 json-rpc odoo-apps odoo-development odoo-android odoo-json-rpc odoo12

odoojsonrpcclient's People

Contributors

fanha99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odoojsonrpcclient's Issues

How to Bind SearchRead result to a view?

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)
}

Display Data

Hi, i new in kotlin and i dont niw how to display the data, i copy Customer by my tha not display, y get the json.
i send you a image.
001

Handshake failed

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?

error

How to call a Detail Activity

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
}
}
}
}
}

How to implement a JsonElement on layout

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.