[IMP] *: Remove unnecessary view_type
closes odoo/odoo#110817 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
@@ -737,7 +737,6 @@ class AccountAccount(models.Model):
|
||||
return {
|
||||
'name': self.display_name,
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'account.account',
|
||||
'res_id': self.id,
|
||||
@@ -757,8 +756,6 @@ class AccountAccount(models.Model):
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': _('Taxes'),
|
||||
'res_model': 'account.tax',
|
||||
'view_type': 'list',
|
||||
'view_mode': 'list',
|
||||
'views': [[False, 'list'], [False, 'form']],
|
||||
'domain': [('id', 'in', related_taxes_ids)],
|
||||
}
|
||||
|
||||
@@ -3523,11 +3523,8 @@ class AccountMove(models.Model):
|
||||
report_action = {
|
||||
'name': _('Send Invoice'),
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'account.invoice.send',
|
||||
'views': [(compose_form.id, 'form')],
|
||||
'view_id': compose_form.id,
|
||||
'target': 'new',
|
||||
'context': ctx,
|
||||
}
|
||||
|
||||
@@ -411,7 +411,6 @@ class AutomaticEntryWizard(models.TransientModel):
|
||||
return {
|
||||
'name': _("Transfer"),
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'account.move',
|
||||
'res_id': new_move.id,
|
||||
|
||||
@@ -119,7 +119,6 @@ class Department(models.Model):
|
||||
res.update({
|
||||
'name': self.name,
|
||||
'res_model': 'hr.employee.public',
|
||||
'view_type': 'kanban',
|
||||
'view_mode': 'kanban',
|
||||
'views': [(False, 'kanban'), (False, 'form')],
|
||||
'context': {'searchpanel_default_department_id': self.id},
|
||||
|
||||
@@ -17,7 +17,6 @@ class AccountMove(models.Model):
|
||||
return {
|
||||
'name': self.expense_sheet_id.name,
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'views': [(False, 'form')],
|
||||
'res_model': 'hr.expense.sheet',
|
||||
|
||||
@@ -1129,7 +1129,6 @@ class HrExpenseSheet(models.Model):
|
||||
return {
|
||||
'name': self.account_move_id.name,
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'views': [[False, "form"]],
|
||||
'res_model': 'account.move',
|
||||
|
||||
@@ -352,7 +352,6 @@ class AccountMove(models.Model):
|
||||
'name': (_("Some invoices could not be printed in the QR format")),
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_model': 'l10n_ch.qr_invoice.wizard',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'target': 'new',
|
||||
'context': {'active_ids': self.ids},
|
||||
|
||||
@@ -517,7 +517,6 @@ class PosConfig(models.Model):
|
||||
return {
|
||||
'name': _("There is no product linked to your PoS"),
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'pos.session.check_product_wizard',
|
||||
'target': 'new',
|
||||
|
||||
@@ -65,7 +65,6 @@ class PortalWizard(models.TransientModel):
|
||||
'name': _('Portal Access Management'),
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_model': 'portal.wizard',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'res_id': self.id,
|
||||
'target': 'new',
|
||||
|
||||
@@ -976,7 +976,6 @@ class StockQuant(models.Model):
|
||||
ctx.pop('group_by', None)
|
||||
action = {
|
||||
'name': _('Locations'),
|
||||
'view_type': 'tree',
|
||||
'view_mode': 'list,form',
|
||||
'res_model': 'stock.quant',
|
||||
'type': 'ir.actions.act_window',
|
||||
|
||||
@@ -2769,8 +2769,6 @@ class Model(models.AbstractModel):
|
||||
return {
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_model': self._name,
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'views': [(view_id, 'form')],
|
||||
'target': 'current',
|
||||
'res_id': self.id,
|
||||
|
||||
Reference in New Issue
Block a user