[MIG] stock_picking_deposito: Migration to 16.0
This commit is contained in:
parent
a796e31f22
commit
5cd63e80ac
3 changed files with 3 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
"name": "Stock Picking Depósito",
|
||||
"summary": "Permite la gestión de depósitos en el almacén y su facturación.",
|
||||
"version": "12.0.1.0.1",
|
||||
"version": "16.0.1.0.0",
|
||||
"development_status": "Alpha",
|
||||
"category": "Warehouse Management",
|
||||
"website": "https://criptomart.net",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<odoo>
|
||||
<data noupdate="0">
|
||||
<data>
|
||||
|
||||
<record id="wh_deposits" model="stock.warehouse">
|
||||
<field name="name">Depósito Salidas</field>
|
||||
|
@ -21,7 +21,7 @@
|
|||
</function>
|
||||
|
||||
</data>
|
||||
<data noupdate="0">
|
||||
<data>
|
||||
|
||||
<record id="location_deposit_buy" model="stock.location">
|
||||
<field name="name">Depósitos Entradas</field>
|
||||
|
|
|
@ -55,7 +55,6 @@ class ResPartner(models.Model):
|
|||
}).id
|
||||
return super().create(vals)
|
||||
|
||||
@api.multi
|
||||
def write(self, vals):
|
||||
if ( vals.get('deposit_sale_accept', False) == True ) and not self.deposit_sale_location_id:
|
||||
vals['deposit_sale_location_id'] = self.env['stock.location'].create({
|
||||
|
|
Loading…
Add table
Reference in a new issue