[FIX] account: remove dead code from Send & Print wizard
In Send & Print refactoring : part 1 (https://github.com/odoo/odoo/commit/33625269062d50e52fe2e0d8cf4a6df788e93062) we changed the wizard back to a transient model, making the special handling of the cancel useless therefore the custom form is now irrelevant. closes odoo/odoo#145717 Signed-off-by: Laurent Smet (las) <las@odoo.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
import { formView } from "@web/views/form/form_view";
|
||||
import { FormController } from "@web/views/form/form_controller";
|
||||
|
||||
export class AccountMoveSendController extends FormController {
|
||||
|
||||
async beforeExecuteActionButton(clickParams) {
|
||||
if (clickParams.name === "action_cancel" && this.model.root.isNew) {
|
||||
clickParams.special = "cancel";
|
||||
}
|
||||
return super.beforeExecuteActionButton(...arguments);
|
||||
}
|
||||
}
|
||||
|
||||
export const AccountMoveSend = {
|
||||
...formView,
|
||||
Controller: AccountMoveSendController,
|
||||
};
|
||||
|
||||
registry.category("views").add("account_move_send_form", AccountMoveSend);
|
||||
@@ -6,7 +6,7 @@
|
||||
<field name="model">account.move.send</field>
|
||||
<field name="groups_id" eval="[Command.link(ref('base.group_user'))]"/>
|
||||
<field name="arch" type="xml">
|
||||
<form js_class="account_move_send_form">
|
||||
<form>
|
||||
<!-- Invisible fields -->
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="move_ids" invisible="1"/>
|
||||
|
||||
Reference in New Issue
Block a user