Skip to content

Commit

Permalink
Merge f93b654 into 3e20a58
Browse files Browse the repository at this point in the history
  • Loading branch information
fmdl committed Oct 30, 2019
2 parents 3e20a58 + f93b654 commit ca133a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stock_scanner/__manifest__.py
Expand Up @@ -4,7 +4,7 @@
{
'name': 'Stock Scanner',
'summary': 'Allows managing barcode readers with simple scenarios',
'version': '12.0.1.0.0',
'version': '12.0.1.0.1',
'category': 'Generic Modules/Inventory Control',
'website': 'https://github.com/OCA/stock-logistics-barcode',
'author': 'Subteno IT,'
Expand Down
3 changes: 2 additions & 1 deletion stock_scanner/models/scanner_scenario.py
Expand Up @@ -107,7 +107,7 @@ def _check_recursion(self):
)

@api.multi
def copy(self, default):
def copy(self, default=None):
default = default or {}
default['name'] = _('Copy of %s') % self.name

Expand All @@ -120,3 +120,4 @@ def copy(self, default):
[('scenario_id', '=', self.id)]):
trans.copy({'from_id': step_news[trans.from_id.id],
'to_id': step_news[trans.to_id.id]})
return scenario_new

0 comments on commit ca133a0

Please sign in to comment.