mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] Add wizard to import ZPL2
This commit is contained in:
committed by
Nils Hamerlinck
parent
76e719e09b
commit
92511a0533
@@ -272,6 +272,17 @@ class PrintingLabelZpl2(models.Model):
|
||||
def unlink_action(self):
|
||||
self.mapped('action_window_id').unlink()
|
||||
|
||||
def import_zpl2(self):
|
||||
self.ensure_one()
|
||||
return {
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'wizard.import.zpl2',
|
||||
'type': 'ir.actions.act_window',
|
||||
'target': 'new',
|
||||
'context': {'default_label_id': self.id},
|
||||
}
|
||||
|
||||
def _get_record(self):
|
||||
self.ensure_one()
|
||||
Obj = self.env[self.model_id.model]
|
||||
|
||||
Reference in New Issue
Block a user