合并企业版代码(未测试,先提交到测试分支)

This commit is contained in:
qihao.gong@jikimo.com
2023-04-14 17:42:23 +08:00
parent 7a7b3d7126
commit d28525526a
1300 changed files with 513579 additions and 5426 deletions

View File

@@ -0,0 +1,44 @@
odoo.define('web_studio.bus', function (require) {
"use strict";
var Bus = require('web.Bus');
var bus = new Bus();
/* Events on this bus
* ==================
*
* `studio_toggled`
* Studio has been toggled
* @param mode: ['app_creator', 'main']
*
* `studio_main`
* Studio main has been opened
* @param action: the edited action
*
* `action_changed`
* the action used by Studio has been changed (updated server side).
* @param action: the updated action
*
* `edition_mode_entered`
* the view has entered in edition mode.
* @param view_type
*
* `toggle_snack_bar`
* a temporary message needs to be displayed.
* @param type either 'saved' or 'saving'
*
* `(un,re)do_clicked`
* during the view edition, the button (un,re)do has been clicked.
*
* `(un,re)do_available`
* during the view edition, the button (un,re)do has become available.
*
* `(un,re)do_not_available`
* during the view edition, the button (un,re)do has become unavailable.
*
*/
return bus;
});