mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] base_report_to_printer: Add test coverage
* Add test coverage * Minor touch ups in wizard * Prefer UserError to Warning
This commit is contained in:
@@ -20,8 +20,12 @@ class ResUsers(models.Model):
|
||||
printing_printer_id = fields.Many2one(comodel_name='printing.printer',
|
||||
string='Default Printer')
|
||||
|
||||
@api.model
|
||||
def _available_action_types(self):
|
||||
return _available_action_types(self)
|
||||
|
||||
@api.model
|
||||
def _user_available_action_types(self):
|
||||
return [(code, string) for code, string
|
||||
in _available_action_types(self)
|
||||
in self._available_action_types()
|
||||
if code != 'user_default']
|
||||
|
||||
Reference in New Issue
Block a user