backend.API.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "DTD/xhtml1-strict.dtd">
  4. <html>
  5. <head>
  6. <title>backend.API : API documentation</title>
  7. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  8. <link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
  9. <link rel="stylesheet" type="text/css" href="apidocs.css" />
  10. </head>
  11. <body>
  12. <nav class="navbar navbar-default">
  13. <div class="container">
  14. <div class="navbar-header">
  15. <a class="navbar-brand" href="index.html">
  16. backend API Documentation
  17. </a>
  18. </div>
  19. </div>
  20. </nav>
  21. <div id="showPrivate">
  22. <button class="btn btn-link" onclick="togglePrivate()">Toggle Private API</button>
  23. </div>
  24. <div class="container">
  25. <div class="page-header">
  26. <h1 class="class"><code>backend.API</code> <small>class documentation</small></h1>
  27. <span id="partOf">
  28. Part of <code><a href="backend.html" class="code" data-type="Module">backend</a></code>
  29. <a href="classIndex.html#backend.API">(View In Hierarchy)</a>
  30. </span>
  31. </div>
  32. <div class="extrasDocstring">
  33. </div>
  34. <div class="moduleDocstring">
  35. <div><p>This interacts with the external odoo 13 API with XMLrpc</p><p>The API Class is intended to be used a black box implentation which is imported by another Class or Python Scipt</p></div>
  36. </div>
  37. <div id="splitTables">
  38. <table class="children sortable" id="id6">
  39. <tr class="classvariable">
  40. <td>Class Variable</td>
  41. <td><a href="backend.API.html#url" class="code" data-type="Class Variable">url</a></td>
  42. <td><span class="undocumented">Undocumented</span></td>
  43. </tr><tr class="classvariable">
  44. <td>Class Variable</td>
  45. <td><a href="backend.API.html#db" class="code" data-type="Class Variable">db</a></td>
  46. <td><span class="undocumented">Undocumented</span></td>
  47. </tr><tr class="classvariable">
  48. <td>Class Variable</td>
  49. <td><a href="backend.API.html#username" class="code" data-type="Class Variable">username</a></td>
  50. <td><span class="undocumented">Undocumented</span></td>
  51. </tr><tr class="classvariable">
  52. <td>Class Variable</td>
  53. <td><a href="backend.API.html#password" class="code" data-type="Class Variable">password</a></td>
  54. <td><span class="undocumented">Undocumented</span></td>
  55. </tr><tr class="classvariable">
  56. <td>Class Variable</td>
  57. <td><a href="backend.API.html#common" class="code" data-type="Class Variable">common</a></td>
  58. <td><span class="undocumented">Undocumented</span></td>
  59. </tr><tr class="classvariable">
  60. <td>Class Variable</td>
  61. <td><a href="backend.API.html#models" class="code" data-type="Class Variable">models</a></td>
  62. <td><span class="undocumented">Undocumented</span></td>
  63. </tr><tr class="classvariable">
  64. <td>Class Variable</td>
  65. <td><a href="backend.API.html#uid" class="code" data-type="Class Variable">uid</a></td>
  66. <td><span class="undocumented">Undocumented</span></td>
  67. </tr><tr class="method">
  68. <td>Method</td>
  69. <td><a href="backend.API.html#__init__" class="code" data-type="Method">__init__</a></td>
  70. <td><span>Reads the values from its parameters and uses them to build the API</span></td>
  71. </tr><tr class="instancevariable">
  72. <td>Instance Variable</td>
  73. <td><a href="backend.API.html#printed" class="code" data-type="Instance Variable">printed</a></td>
  74. <td><span class="undocumented">Undocumented</span></td>
  75. </tr><tr class="instancevariable">
  76. <td>Instance Variable</td>
  77. <td><a href="backend.API.html#id" class="code" data-type="Instance Variable">id</a></td>
  78. <td><span class="undocumented">Undocumented</span></td>
  79. </tr><tr class="instancevariable">
  80. <td>Instance Variable</td>
  81. <td><a href="backend.API.html#name" class="code" data-type="Instance Variable">name</a></td>
  82. <td><span class="undocumented">Undocumented</span></td>
  83. </tr><tr class="instancevariable">
  84. <td>Instance Variable</td>
  85. <td><a href="backend.API.html#number" class="code" data-type="Instance Variable">number</a></td>
  86. <td><span class="undocumented">Undocumented</span></td>
  87. </tr><tr class="instancevariable">
  88. <td>Instance Variable</td>
  89. <td><a href="backend.API.html#addres" class="code" data-type="Instance Variable">addres</a></td>
  90. <td><span class="undocumented">Undocumented</span></td>
  91. </tr><tr class="instancevariable">
  92. <td>Instance Variable</td>
  93. <td><a href="backend.API.html#description" class="code" data-type="Instance Variable">description</a></td>
  94. <td><span class="undocumented">Undocumented</span></td>
  95. </tr><tr class="instancevariable">
  96. <td>Instance Variable</td>
  97. <td><a href="backend.API.html#menge" class="code" data-type="Instance Variable">menge</a></td>
  98. <td><span class="undocumented">Undocumented</span></td>
  99. </tr><tr class="instancevariable">
  100. <td>Instance Variable</td>
  101. <td><a href="backend.API.html#preis" class="code" data-type="Instance Variable">preis</a></td>
  102. <td><span class="undocumented">Undocumented</span></td>
  103. </tr><tr class="instancevariable">
  104. <td>Instance Variable</td>
  105. <td><a href="backend.API.html#sum_order" class="code" data-type="Instance Variable">sum_order</a></td>
  106. <td><span class="undocumented">Undocumented</span></td>
  107. </tr><tr class="instancevariable">
  108. <td>Instance Variable</td>
  109. <td><a href="backend.API.html#comment" class="code" data-type="Instance Variable">comment</a></td>
  110. <td><span class="undocumented">Undocumented</span></td>
  111. </tr><tr class="method">
  112. <td>Method</td>
  113. <td><a href="backend.API.html#login" class="code" data-type="Method">login</a></td>
  114. <td><span>Login into the Server return the reading rights of stock.picking</span></td>
  115. </tr><tr class="method">
  116. <td>Method</td>
  117. <td><a href="backend.API.html#get_fields" class="code" data-type="Method">get_fields</a></td>
  118. <td><span>What Fields does the our Odoo Model have of of this data Field</span></td>
  119. </tr><tr class="method">
  120. <td>Method</td>
  121. <td><a href="backend.API.html#get_partner_address" class="code" data-type="Method">get_partner_address</a></td>
  122. <td><span>Returns the adress and geolocation of all ids as a AdressSchema</span></td>
  123. </tr><tr class="method">
  124. <td>Method</td>
  125. <td><a href="backend.API.html#get_not_printed_pickings" class="code" data-type="Method">get_not_printed_pickings</a></td>
  126. <td><span>Returns all Pickings which have not been not been printed or processed The xml Response of the Server is parsed to a python Data Picking Class</span></td>
  127. </tr><tr class="method">
  128. <td>Method</td>
  129. <td><a href="backend.API.html#get_product" class="code" data-type="Method">get_product</a></td>
  130. <td><span>Returns all orders Lines of a Product</span></td>
  131. </tr><tr class="method">
  132. <td>Method</td>
  133. <td><a href="backend.API.html#post_printed_picking" class="code" data-type="Method">post_printed_picking</a></td>
  134. <td><span>Post the new value of printed for picking_id</span></td>
  135. </tr><tr class="method private">
  136. <td>Method</td>
  137. <td><a href="backend.API.html#__load_picking" class="code" data-type="Method">__load_picking</a></td>
  138. <td><span>Loads the Picking Schema from a String. Usefull for testing</span></td>
  139. </tr>
  140. </table>
  141. </div>
  142. <div id="childList">
  143. <div class="baseclassvariable">
  144. <a name="backend.API.url">
  145. </a>
  146. <a name="url">
  147. </a>
  148. <div class="functionHeader">
  149. url =
  150. </div>
  151. <div class="functionBody">
  152. <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  153. </div>
  154. </div><div class="baseclassvariable">
  155. <a name="backend.API.db">
  156. </a>
  157. <a name="db">
  158. </a>
  159. <div class="functionHeader">
  160. db =
  161. </div>
  162. <div class="functionBody">
  163. <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  164. </div>
  165. </div><div class="baseclassvariable">
  166. <a name="backend.API.username">
  167. </a>
  168. <a name="username">
  169. </a>
  170. <div class="functionHeader">
  171. username =
  172. </div>
  173. <div class="functionBody">
  174. <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  175. </div>
  176. </div><div class="baseclassvariable">
  177. <a name="backend.API.password">
  178. </a>
  179. <a name="password">
  180. </a>
  181. <div class="functionHeader">
  182. password =
  183. </div>
  184. <div class="functionBody">
  185. <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  186. </div>
  187. </div><div class="baseclassvariable">
  188. <a name="backend.API.common">
  189. </a>
  190. <a name="common">
  191. </a>
  192. <div class="functionHeader">
  193. common =
  194. </div>
  195. <div class="functionBody">
  196. <div class="undocumented">Undocumented</div>
  197. </div>
  198. </div><div class="baseclassvariable">
  199. <a name="backend.API.models">
  200. </a>
  201. <a name="models">
  202. </a>
  203. <div class="functionHeader">
  204. models =
  205. </div>
  206. <div class="functionBody">
  207. <div class="undocumented">Undocumented</div>
  208. </div>
  209. </div><div class="baseclassvariable">
  210. <a name="backend.API.uid">
  211. </a>
  212. <a name="uid">
  213. </a>
  214. <div class="functionHeader">
  215. uid =
  216. </div>
  217. <div class="functionBody">
  218. <div class="undocumented">Undocumented</div>
  219. </div>
  220. </div><div class="basemethod">
  221. <a name="backend.API.__init__">
  222. </a>
  223. <a name="__init__">
  224. </a>
  225. <div class="functionHeader">
  226. def
  227. __init__(self, id, name, number, addres, description, menge, preis, sum_order, comment):
  228. </div>
  229. <div class="docstring functionBody">
  230. <div><p>Reads the values from its parameters and uses them to build the API</p></div>
  231. </div>
  232. </div><div class="baseinstancevariable">
  233. <a name="backend.API.printed">
  234. </a>
  235. <a name="printed">
  236. </a>
  237. <div class="functionHeader">
  238. printed =
  239. </div>
  240. <div class="functionBody">
  241. <div class="undocumented">Undocumented</div> (type: <code>bool</code>)
  242. </div>
  243. </div><div class="baseinstancevariable">
  244. <a name="backend.API.id">
  245. </a>
  246. <a name="id">
  247. </a>
  248. <div class="functionHeader">
  249. id =
  250. </div>
  251. <div class="functionBody">
  252. <div class="undocumented">Undocumented</div>
  253. </div>
  254. </div><div class="baseinstancevariable">
  255. <a name="backend.API.name">
  256. </a>
  257. <a name="name">
  258. </a>
  259. <div class="functionHeader">
  260. name =
  261. </div>
  262. <div class="functionBody">
  263. <div class="undocumented">Undocumented</div>
  264. </div>
  265. </div><div class="baseinstancevariable">
  266. <a name="backend.API.number">
  267. </a>
  268. <a name="number">
  269. </a>
  270. <div class="functionHeader">
  271. number =
  272. </div>
  273. <div class="functionBody">
  274. <div class="undocumented">Undocumented</div>
  275. </div>
  276. </div><div class="baseinstancevariable">
  277. <a name="backend.API.addres">
  278. </a>
  279. <a name="addres">
  280. </a>
  281. <div class="functionHeader">
  282. addres =
  283. </div>
  284. <div class="functionBody">
  285. <div class="undocumented">Undocumented</div>
  286. </div>
  287. </div><div class="baseinstancevariable">
  288. <a name="backend.API.description">
  289. </a>
  290. <a name="description">
  291. </a>
  292. <div class="functionHeader">
  293. description =
  294. </div>
  295. <div class="functionBody">
  296. <div class="undocumented">Undocumented</div>
  297. </div>
  298. </div><div class="baseinstancevariable">
  299. <a name="backend.API.menge">
  300. </a>
  301. <a name="menge">
  302. </a>
  303. <div class="functionHeader">
  304. menge =
  305. </div>
  306. <div class="functionBody">
  307. <div class="undocumented">Undocumented</div>
  308. </div>
  309. </div><div class="baseinstancevariable">
  310. <a name="backend.API.preis">
  311. </a>
  312. <a name="preis">
  313. </a>
  314. <div class="functionHeader">
  315. preis =
  316. </div>
  317. <div class="functionBody">
  318. <div class="undocumented">Undocumented</div>
  319. </div>
  320. </div><div class="baseinstancevariable">
  321. <a name="backend.API.sum_order">
  322. </a>
  323. <a name="sum_order">
  324. </a>
  325. <div class="functionHeader">
  326. sum_order =
  327. </div>
  328. <div class="functionBody">
  329. <div class="undocumented">Undocumented</div>
  330. </div>
  331. </div><div class="baseinstancevariable">
  332. <a name="backend.API.comment">
  333. </a>
  334. <a name="comment">
  335. </a>
  336. <div class="functionHeader">
  337. comment =
  338. </div>
  339. <div class="functionBody">
  340. <div class="undocumented">Undocumented</div>
  341. </div>
  342. </div><div class="basemethod">
  343. <a name="backend.API.login">
  344. </a>
  345. <a name="login">
  346. </a>
  347. <div class="functionHeader">
  348. def
  349. login():
  350. </div>
  351. <div class="docstring functionBody">
  352. <div><p>Login into the Server return the reading rights of stock.picking</p></div>
  353. </div>
  354. </div><div class="basemethod">
  355. <a name="backend.API.get_fields">
  356. </a>
  357. <a name="get_fields">
  358. </a>
  359. <div class="functionHeader">
  360. def
  361. get_fields(field_name):
  362. </div>
  363. <div class="docstring functionBody">
  364. <div><p>What Fields does the our Odoo Model have of of this data Field</p></div>
  365. </div>
  366. </div><div class="basemethod">
  367. <a name="backend.API.get_partner_address">
  368. </a>
  369. <a name="get_partner_address">
  370. </a>
  371. <div class="functionHeader">
  372. def
  373. get_partner_address(ids):
  374. </div>
  375. <div class="docstring functionBody">
  376. <div><p>Returns the adress and geolocation of all ids as a AdressSchema</p></div>
  377. </div>
  378. </div><div class="basemethod">
  379. <a name="backend.API.get_not_printed_pickings">
  380. </a>
  381. <a name="get_not_printed_pickings">
  382. </a>
  383. <div class="functionHeader">
  384. def
  385. get_not_printed_pickings():
  386. </div>
  387. <div class="docstring functionBody">
  388. <div><p>Returns all Pickings which have not been not been printed or processed The xml Response of the Server is parsed to a python Data Picking Class</p></div>
  389. </div>
  390. </div><div class="basemethod private">
  391. <a name="backend.API.__load_picking">
  392. </a>
  393. <a name="__load_picking">
  394. </a>
  395. <div class="functionHeader">
  396. def
  397. __load_picking(p_picking):
  398. </div>
  399. <div class="docstring functionBody">
  400. <div><p>Loads the Picking Schema from a String. Usefull for testing</p></div>
  401. </div>
  402. </div><div class="basemethod">
  403. <a name="backend.API.get_product">
  404. </a>
  405. <a name="get_product">
  406. </a>
  407. <div class="functionHeader">
  408. def
  409. get_product(ids):
  410. </div>
  411. <div class="docstring functionBody">
  412. <div><p>Returns all orders Lines of a Product</p></div>
  413. </div>
  414. </div><div class="basemethod">
  415. <a name="backend.API.post_printed_picking">
  416. </a>
  417. <a name="post_printed_picking">
  418. </a>
  419. <div class="functionHeader">
  420. def
  421. post_printed_picking(printed, picking_id):
  422. </div>
  423. <div class="docstring functionBody">
  424. <div><p>Post the new value of printed for picking_id</p></div>
  425. </div>
  426. </div>
  427. </div>
  428. <address>
  429. <a href="index.html">API Documentation</a> for backend, generated by <a href="https://github.com/twisted/pydoctor/">pydoctor</a> at 2020-09-10 02:53:19.
  430. </address>
  431. </div>
  432. <script src="pydoctor.js" type="text/javascript"></script>
  433. </body>
  434. </html>