How to calculate expiry date in odoo 10 and how to notify to customers from email/sms before 10 days?
for example:-
If expiry date is near, the customer gets notification through mail or sms.
Can anyone suggest any solution?
You need to create a scheduler it should run everyday. It should calculate the expiry dates which are ending in next 10 days. For those records you have to trigger the mail.
Create a scheduler
Find the expiry dates
Create email template
Trigger Email
Please refer sale subscription it has subscription expiry reminder
Related
I have script which pulls all campaigns from Facebook marketing API and then respective ads from it.
I have 200 campaigns. I need campaigns which were active on some past date say 12 Nov 2020. The campaign in inactive now, but was active on particular date. So when I query (using REST) for that particular date filtering by start and end date as 12 Nov 2020. It doesn't send me that campaign in results since campaign is not really active NOW.
Is there a way where I could get active campaigns on a particular date? or other way get only campaigns which really have some data on a given date?
Problem with loading all campaigns and then subsequent ads to check for data is huge problem due to throttling when we have good no of campaigns.
Thanks
You need to query with all the effective statuses in the filter object for the campaign. That will provide you with all the data you are after and not just the currently active.
Append the following filter to your graph api call for campaigns:
&filtering[]={"field":"effective_status","operator":"IN","value":["ACTIVE","PAUSED","DELETED","ARCHIVED","IN_PROCESS","WITH_ISSUES"]}
We have been trying to integrate authorize.net payment gateway in one of our clients project based on Asp.net web API. We have few queries that we came across while implementing Recurring Planning scenarios.
Query 1
We checked the API’s for Creating Subscription, Getting Subscription, Updating Subscription. However once we have created subscription, is there any way we can update the amount in the subscription.
Let’s say for example.
We have a created a subscription for our user for 50$ amount on 01st Jan 2021 with 30 days interval.
And on 15th Jan 2021, our user wishes to purchase 1 more license which will cost him 10$ more.
Hence can we increase his billing cycle of subscription by updating the subscription?
We checked in Update Subscription API, & it is only allowing to update credit card info hence is there any way to update amount.
Query 2
Is there any way to implement Autorenewal, hence when a user wishes he/she can set auto renewal on/off for recurring billing.
Query 3
If there is any way to switch off auto renewal of recurring billing, then is there any link that we can generate & send them through which they can pay there next due.
Query 1: You cannot update a subscription amount. If the amount needs to change you either need to cancel the current subscription and create a new one for the new amount (being sure to prorate credit from the previous subscription payment) or use CIM to manage your subscription service which allows you to charge against their card at your discretion but requires you to also manage the subscription yourself.
Query 2: Not through Authorize.Net. If you want a subscription to start or end you need to explicitly do so through their API.
Query 3: Not through Authorize.Net. That application logic and, once again, you would be responsible for managing.
I'm assuming you are using or are aware of the API provided for Authorize.net here: https://github.com/AuthorizeNet/sdk-dotnet/tree/master/Authorize.NET/Api/Controllers
Query 1: As of now, there is a way to update the amount for a given subscription. You can use ARBSubscriptionType class. There is an amount property there you can set. Then you can create the request ARBUpdateSubscriptionRequest, passing in the ARBSubscriptionType class and the subscription Id.
Note: You might have to handle pro-rating.
Query 2: There isn't a built in renewal feature in Authorize.Net as far as I know. It seems like you could potentially update the totalOccurrences by some amount to act as a "renewal", when technically its an extension of the subscription. The method in which you check when to update, either a Modulo operation or a date check is up to you. You can use paymentScheduleType class to update totalOccurrences, passing it along to a ARBUpdateSubscriptionRequest.
Query 3: Authorize.Net does not have any in house link generation.
I have received Google Cloud redeem code which would give me $200 a month for next year. Is there a way to check its expiration day? Can I wait and redeem it eg. in a year or do I have to redeem it right away?
If you haven't upgraded your account yet (i.e. you're still in trial mode, and not paying mode) then you should be able to just enter the code to redeem, and you'll get a popup asking you to upgrade your account before you can redeem the credits. On that page where it tells you to upgrade, there will be a line that tells you when the credits expire.
I haven't done this myself, but found this:
https://itnext.io/redeem-and-use-google-cloud-platform-credit-before-it-expires-f1c0151b5016
In case of credit codes received in developer community program, they have to be redeemed in 60 days after receiving them. Expiration date of the credit itself is one year from the moment of applying them to the account. Expiration date can be checked on https://console.cloud.google.com/billing/redeem
but it will always show a date in exactly one year, which can be a little misleading - this date doesn’t show the date until when you have time to redeem the code.
Source: https://developers.google.com/actions/community/faq#google_cloud_credit
Google can also cancel your credit if you won’t use 50% of it within 3 months - see terms and conditions here: https://console.cloud.google.com/billing/redeem/terms
How do i configure the system to email me when an employees contract is going to expire? For example I need to get an email 30 days before the expiration. i tried to create an automated action following some tutorial but i don't find the filed Timer Trigger Date and Delay After Trigger Date in odoo 8 any help please ?
hr_contract model have end date_end based on that write corn job or what ever you want
We are using Google Calendar API v2 for syncing the Google calendar events to our desktop application. The application retrieves all calendar events and keeps it locally for future reference.
I have sync issues with my "Remember the Milk" calendar, which I subscribed to using my Google calendar.
Here is my application flow:
Initially fetch calendar list by using the following HTTP request:
https://www.google.com/calendar/feeds/default/allcalendars/full
Fetch all events from calendar with the Calendar ID obtained in the previous request: http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true
Process each calendar one by one and save the calendar updated-min tag value as last calendar sync, in the next sync use this updated min value for retrieving updated events.
The documentation says it should give only updated events, but my "Remember the Milk" calendar, always gives all events as updated events (on every 20 to 30 minutes).
What am I doing wrong here?
Look at your query string. You are missing the updated-min value. The query string should read.
http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true&updated-min=2005-08-09T10:57:00-