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