[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:
Dave Lasley
2016-07-05 17:12:08 -07:00
parent 4b080d7a63
commit 8e896af6a9
9 changed files with 359 additions and 8 deletions

View File

@@ -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']