跳至內容
選單
此問題已被標幟
2 回覆
3262 瀏覽次數

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.

頭像
捨棄
最佳答案

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.

頭像
捨棄

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>

作者 最佳答案

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

頭像
捨棄

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>

相關帖文 回覆 瀏覽次數 活動
2
2月 24
1384
7
10月 24
12890
1
5月 20
11881
2
1月 25
4772
1
5月 23
2635