I want to connect Node-red to Odoo and get all the entries of my sales orders shown. In Node-red I have created:
timestamp
search filter function
Odoo search and read function
msg.payload
Running the flow a "XML-RPC fault: Traceback" is shown. Do you know how to fix this problem and let node-red provide a overview of the sales orders?
Related
I am using Odoo 15 Community edition.
When I go to Accounting/[Customers|Vendors]/Payments and try to register a new payment, I get this python error:
ValueError: Invalid field 'effective_date' on model 'account.payment'
Only way to get out of that screen is to discard the payment. This only happens there. I create a purchase or sale order and pay it using the Purchase or Sales module all works fine.
I tried to go in to developer mode and search for the account.payment module and indeed it does not have that field.
How can I fix this issue?
Can I add the field in the model?
if yes, which properties will be good?
I am trying to get zoom meeting details report using API. The report should be same as "Active Hosts - Report Type "Meeting List with Details"- which I can get from UI.The sample report is here:
https://docs.google.com/spreadsheets/d/1rDxBuWk9lObZPmmgKrELrQHN5pcqq1L3LiNvg0SZ6kk/edit?usp=sharing
But instead of getting the report from UI manually, I want to get the report using ZOOM API with python script which should run as a job periodically.
SO my query is:
1)how can I get the same report using zoom API?
2) Should I call multiple API? if yes, which are APIs should I call to get the report?
Any kinds of help is greatly appreciated. Thank you.
*************** 2nd Part *******
I have explored a little after this post. I have tried this API endpoint. What I ended up is below:
Please check this document:
https://docs.google.com/spreadsheets/d/1rDxBuWk9lObZPmmgKrELrQHN5pcqq1L3LiNvg0SZ6kk/edit#gid=1137066976
Here I specified all the fields those I need to extract to get the target report which is named as UI report in the spreed sheet. To get this report I tried to call 3 APIs:
Get List meeting: https://api.zoom.us/v2/metrics/meetings
Get Active/Inactive host reports: "https://api.zoom.us/v2/report/users
Get Meeting Participants: https://api.zoom.us/report/meetings/{meetingId}/participants
To my understanding I thought to get all the field of UI report I need to call these 3 APIs. The first 2 API calls are working fine. But when I am in the 3rd call which is “Meeting participants” where I need to provide “meetingid” as a path key. Here in my educational institute (University) we have thousands of meetingid , for example for a single day I found there are 28,800 numbers of unique meeting ids. It might be more than 30,000 if I try with larger date range(for 7 days or 30 days). In this case the Meeting participants call will take each meetingid and execute the API call which will exceed the date limit. How to resolve this issue?
Is there any other better way or any straightforward API out there which can give me the almost the same report as the Target UI report? Please help.
Thank you.
There is always only one pos order displayed at a time in the odoo pos.
How can I get this specific pos order using rpc api ?
The way POS order in Odoo works that it only syncs orders with backend server after the order is confirmed that is after the payment is confirmed. Until then, the orders are stored in the browser localstorage. rpc is used to get data from Odoo backend from an external service, so it is possible to get Pos Orders that are confirmed from current open sessions using rpc via pos.order model but I don't think it is possible to get currently processing POS order. You can get the current POS Order object from browser console by running the following command posmodel.get_order().
How do I get inventory levels when listing catalog items?
I'm using the Square Connect Node SDK https://www.npmjs.com/package/square-connect for an e-commerce project. I'm making requests using Node / Express JS to Square copying (with some small modification) the examples in the SDK documentation. I'm getting data back from Square, but I can't get the inventory levels for any of my products.
The only inventory data I see in the response from Square (when using this example code https://docs.connect.squareup.com/api/connect/v2#endpoint-listcatalog) is:
"location_overrides": [{
"location_id": "my-location-id",
"track_inventory": true,
"inventory_alert_type": "LOW_QUANTITY",
"inventory_alert_threshold": 15 }]
I thought I saw missing something, so I went back to the Square docs https://docs.connect.squareup.com/api/connect/v2 and searched on the page for "inventory," and the values listed above are the only thing that comes up.
Things I've tried on the Square dashboard:
Enabling / disabling inventory tracking
Setting an inventory level for multiple items
Enabling / disabling inventory level alerts
Any help or additional info on this would be greatly appreciated! I've been seeing similar questions where people are using the PHP SDK and getting the stock levels for products, so I know it's a supported feature. I just can't figure out what I'm doing wrong..
Currently the only way to list/adjust inventory in Square's APIs is to use Connect v1 (which the Node SDK supports). Please see our doc site for more information: https://docs.connect.squareup.com/api/connect/v1#navsection-inventory
I have a prestashop website. I am new to Odoo 9. I dont know how to connect the prestashop with Odoo 9. Can anyone please tell me how to connect it. I need step by step procedure. I am awaiting for the reply.
Thanks
You need a module for that , otherwise you should develop it, the module should include order, customer, products, stock, categories synchronization.
To create it, you should read about prestashop action hooks (when a client pass an order, a client creates an account, ...) you can read this or forum post.
To have synchronization work from odoo to prestashop you should use cron jobs to import data(products, clients, orders, categories) daily
to prestashop.