<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                Qweb是一個client和server的東東,類似jsp 實現: 通過點擊upgrade,彈出一個upgrade的對話框 ![](https://box.kancloud.cn/b7741f983c59cbc02adfdf702c4c3252_961x137.png) ![](https://box.kancloud.cn/3f30de5a904a0819850e9caaaeca4a8f_1008x156.png) * 編寫python ~~~ # 公司看板 class CompanyInDeviceUpgrade(models.Model): _inherit = 'res.company' # 發布 @api.multi def open_device_upgrade_wizard(self): return { 'name': 'Upgrade', # 對話框標題 'target': 'new', 'tag': 'tmp_device_upgrade_wizard_tag', # 對應action 'type': 'ir.actions.client', # 使用client action } ~~~ * 編寫action ~~~ <!-- action for device upgrade wizard --> <record id="tmp_device_upgrade_wizard_client" model="ir.actions.client"> <field name="name">Upgrade</field> <field name="target">new</field> <field name="tag">tmp_device_upgrade_wizard_tag</field> </record> ~~~ * 編寫template(對應html) device_upgrade_wizard_template.xml ~~~ <?xml version='1.0' encoding='utf-8' ?> <template xml:space="preserve"> <t t-name="device_upgrade_wizard_client"> <p>Upgrade</p> </t> </template> ~~~ * 編寫js(對應html) device_upgrade_wizard.js ~~~ odoo.define('tmp_device_upgrade.wizard', function (require) { var core = require('web.core'); var Widget = require('web.Widget'); var QWeb = core.qweb; var monitor_control = Widget.extend({ template: 'device_upgrade_wizard_client', init: function (parent, context) { this._super(parent, context); //this.layer = layer.msg("加載中...",{time:0, shade: 0.3}); }, start: function () { this.load_fn(); }, load_fn: function () { var self = this; /* setTimeout(function () { new dispatch_desktop(self, self.layer).appendTo(self.$el); },1000);*/ self.$el.find('#mytable thead').removeAttr("style"); } }); core.action_registry.add('tmp_device_upgrade_wizard_tag', monitor_control); }) ; ~~~ * 引入js ~~~ <template id="assets_backend" name="tree view menu" inherit_id="web.assets_backend"> <xpath expr="." position="inside"> <script type="text/javascript" src="/tmp_device/static/src/js/device_upgrade_wizard.js"></script> </xpath> </template> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看