Odoo 12 Record Change - odoo

I am a starter in odoo.in CRM Module ,manager should be notified 90 days prior to expiry of field (subscription) and automatically
Can anyone help me to achieve this goal. Thanks in advance.

Required basic knowledge of JS.
If you want to send automatic mail on expiration then here is a trick:
Go to your enterprise addons folder then search for a
web_enterprise module.
Their is static folder , in that folder you'll find
home_menu.js.
In this js you'll find method like _enterpriseExpirationCheck.
Go to that method and their is a variable called diffDays (calculated
days of your expiration validity).
Put your condition like : if (diffDays === 30) then make rpc
call to send mail with python.
That's it.
You'll find RPC call example in:
https://www.odoo.com/forum/help-1/question/how-to-do-web-rpc-requests-in-javascript-22835

Related

Wix bookings use getServiceAvailability( ) and exported to JSON

I created a website that accepts appointments online using wix booking. I already managed to export the appointments with all the details to JSON format.
I am trying to do the same to be able to create the appointments from an external app but for this I want to be able to first obtain getServiceAvailability() from wix-bookings API and I can't find a way to do it. I have tried in all the ways that I know and I do not get any results, I am not a programming expert and that is why I ask for help in this way, if someone who knows wix well and how to work with its API that could help me at least have one basis of how to do it. Thank you
If you want to get the availability information from an external service, you can create an HTTP function to expose that information.

Gitlab Project API Inquiry

Is it possible to to filter the gitlab project api by date. An example of this would be to identified all the projects that were modified last week.
I reviewed the documentation but could not see this called out. https://gitlab.com/help/api/projects.md
Does anyone have an idea of a way to accomplish this other than file tracking?
From the document you linked, it looks like you can Get /projects and then add the attribute order_by. So you can add something like:
GET /projects?order_by=last_activity_at

Podio update app field API not listening for hidden_create_view_edit

looking at https://developers.podio.com/doc/applications/update-an-app-field-22356
as the documentation states we cannot pass the new hidden_create_view_edit attribute to the API call. (FYI: I attempted to pass it anyway but the documentation is right, it does not take the hidden_create_view_edit into account).
Can you please listen for this parameter? And in what timeframe would this become available? I need this to clone a ton of app fields with right settings.
Thanks for reporting this. It seems that we haven't included support for this specific method while implementing great new attribute hidden_create_view_edit. This is now fixed and planned for public release some time during next week.

Adding recipient Groups to a CiviCRM Mailing via REST.. how?

I have been able so far to create a new civi Mailing object and populate it, but confusingly I can't see a parameter in that to specify the mail destination group.
For context, I am dealing with Civi using pure REST api from a remote server. I have a solution to getting a custom template onto the server; the new problem is setting a schedule and delivery group, and initiating the send. I am using the python-civicrm library from github as the intermediary on the client.
I presume send happens as a result of setting the schedule -- i.e. I don't need an API call to say 'send mailing'? Is setting 'sheduled date' == 'now' safe or should I set a date of 'now + 1min' or similar?
So that leaves setting the delivery group. We already have groups defined in the DB, and I want to specify the group by name (and preferably be able to verify in advance that a group name is a valid destination, perhaps by doing a group name -> id lookup).
I think there might be a parameter to Mailing create 'groups' which can have keys 'include' and 'exclude'; at least, that's what the web form seems to do. However it's not mentioned in the REST api implementation.
Can anyone offer pointers?
I think you will find all you need in the following link :
Example of api call that is using the group include/exclude : https://gist.github.com/xurizaemon/6775471
Discussion about implementing mailing as an api - http://forum.civicrm.org/index.php?topic=24075.0
Otherwise, if it doesn't work, i suggest that you :
help adding this api in the CiviCRM Core - you could have some help on this on irc #civicrm (and have a look at https://issues.civicrm.org/jira/browse/CRM-11023)
OR create an extension with the api you need. It will be automatically available for REST. If you haven't created an extension yet, i suggest you go to the page http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension. It's quite straightforward with civix installed.
The table you need to check in the database is civicrm_mailing_group
To confirm, the problem was that (a) I needed to use groups[include]=array(ids) as mentioned by samuelsov, but also (b) I needed to use the json={...} form of request through REST, because the HTTP params syntax doesn't support nested data.

AtTask create/update a custom field through API on project creation created through AtTask's web app

I'm looking to use AtTask's API to update or create a custom field (ie. assign a custom ID apart from AtTask's auto-generated id) whenever a project is created through the web app. But I have not found anything about handling events in the API documentation.
I'm able to retrieve/edit project fields when issuing a request by ID or some other search parameter.
But I'm having trouble finding ways to edit project fields on some event like 'project created'.
One way I can think of is to have my script periodically search for new projects based on project metadata and edit projects that way, but there must be a better solution I probably missed.
Thanks in advance!
UPDATE:
It seems 'AtTask event subscriptions' was what I was looking for. At the time of the post below (12/2013), due to scalability issues, AtTask has turned this feature turned off with no ETA on resolving the issue. See here: Does AtTask event subscription work?
Any updates would be appreciated.
You are correct the AtTask API does not currently support events. The easiest thing to do is to just poll the system for updates using the search. You could also monitor an email address for emails that are sent upon project creation. The email will contain the project/task/issue ID that you can use to update events.