mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] crm_claim_rma: Remove stock.picking create function. OCA/rma#61
This commit is contained in:
committed by
Cyril Gaudin
parent
a49ad0a201
commit
88aa0548ba
@@ -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)",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user