How to create customized activity like mentioned in the image?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hello
Odoo web architecture has written to display systray activites dynamically. please have a look following method and base javascript.
No need to create customized activity to display it on systray dropdown. you just need to create activity for your new model(object) and system will automatically fetch and display icon of that purticular app's icon where that obejct or model defined. you can see in below screenshot if we create activity for pos order it's automatically display pos main menu icon with activity details.
just create your activity for your custom model and have a look.
@api.model
def systray_get_activities(self):
javascript method to fetch data from python systray_get_activities method.
_getActivityData: function () {
var self = this;
return self._rpc({
model: 'res.users',
method: 'systray_get_activities',
args: [],
kwargs: {context: session.user_context},
}).then(function (data) {
self._activities = data;
self.activityCounter = _.reduce(data, function (total_count, p_data) { return total_count + p_data.total_count || 0; }, 0);
self.$('.o_notification_counter').text(self.activityCounter);
self.$el.toggleClass('o_no_notification', !self.activityCounter);
});
},
Thanks & Regards,
CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
7
jun. 20
|
11311 | ||
|
0
sep. 18
|
4616 | ||
|
1
jun. 18
|
3569 | ||
|
0
mrt. 23
|
1478 | ||
|
2
jan. 23
|
4290 |
Hello,
I would like to assist you with your requirement.
Please reach me over Skype : Vanessa_12766.
Best Regards,
Vanessa J