[FIX] crm_claim_rma: Remove stock.picking create function. OCA/rma#61

This commit is contained in:
jesusVMayor
2015-11-12 10:29:03 -04:30
committed by Cyril Gaudin
parent a49ad0a201
commit 88aa0548ba
2 changed files with 1 additions and 7 deletions

View File

@@ -26,7 +26,7 @@
{
'name': 'RMA Claim (Product Return Management)',
'version': '8.0.1.1.0',
'version': '8.0.1.1.1',
'category': 'Generic Modules/CRM & SRM',
'author': "Akretion, Camptocamp, Eezee-it, MONK Software, Vauxoo, "
"Odoo Community Association (OCA)",

View File

@@ -30,9 +30,3 @@ class StockPicking(models.Model):
_inherit = "stock.picking"
claim_id = fields.Many2one('crm.claim', 'Claim')
@api.model
def create(self, vals):
if ('name' not in vals) or (vals.get('name') == '/'):
vals['name'] = self.env['ir.sequence'].get(self._name)
return super(StockPicking, self).create(vals)