Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3261 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć

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>

Autor Najlepsza odpowiedź

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

Awatar
Odrzuć

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>

Powiązane posty Odpowiedzi Widoki Czynność
2
lut 24
1383
7
paź 24
12890
1
maj 20
11879
2
sty 25
4771
1
maj 23
2632