Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
3270 Visninger

Hi guys, I'm using the flutter webview to display the odoo system inside the app. I want to use notifications so that if a message comes, I want to show it as a notification, even if the application is closed, i.e. like the basic Odoo application, how is this done? , and thanks for your suggestions.

Avatar
Kassér
Bedste svar

Like other applications on iOS and Android, you can use Firebase to send notifications to your app. The configuration for receiving notifications is described in detail in the Firebase documentation. After configuring the notification reception, you need to override the notification sending event in Odoo, following the instructions provided by Firebase. I hope this is helpful.

Avatar
Kassér

The components in Odoo can indeed be inherited or replaced. You can refer to the inheritance documentation `https://www.odoo.com/documentation/16.0/developer/tutorials/getting_started/13_inheritance.html ` for detailed instructions. As an example of overriding a confirm button

<xpath expr="//button[@id='draft_confirm']" position="replace">
<button name="button_confirm" type="object" states="draft" string="confirm button" id="draft_confirm"
groups="purchase.group_purchase_manager" />

</xpath>

Forfatter Bedste svar

Thanks for your answer, but how can to override the notification sending event in Odoo?
can you gev me example please

Avatar
Kassér

The components in Odoo can indeed be inherited or replaced. You can refer to the inheritance documentation `https://www.odoo.com/documentation/16.0/developer/tutorials/getting_started/13_inheritance.html ` for detailed instructions. As an example of overriding a confirm button

<xpath expr="//button[@id='draft_confirm']" position="replace">
<button name="button_confirm" type="object" states="draft" string="confirm button" id="draft_confirm"
groups="purchase.group_purchase_manager" />

</xpath>

Related Posts Besvarelser Visninger Aktivitet
2
feb. 24
1385
7
okt. 24
12893
1
maj 20
11881
2
jan. 25
4775
1
maj 23
2638