[FIX] account: remove isVirtual
Since [1] we removed the isVirtual function from the record, to use the
equivalent isNew, this was made to avoid having two functions with
equivalent behavior. This one was forgotten.
[1] : a73390a42a
closes odoo/odoo#114639
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
@@ -7,7 +7,7 @@ import { FormController } from "@web/views/form/form_controller";
|
||||
export class AccountMoveSendController extends FormController {
|
||||
|
||||
async beforeExecuteActionButton(clickParams) {
|
||||
if (clickParams.name === "action_cancel" && this.model.root.isVirtual) {
|
||||
if (clickParams.name === "action_cancel" && this.model.root.isNew) {
|
||||
clickParams.special = "cancel";
|
||||
}
|
||||
return super.beforeExecuteActionButton(...arguments);
|
||||
|
||||
Reference in New Issue
Block a user