[wip] stock_picking_deposit para gestión de albaranes en depósito.
De momento sólo tiene un campo nuevo para marcar que ese albarán es un depósito.
This commit is contained in:
parent
9d4020cbb9
commit
16a72610f2
7 changed files with 155 additions and 1 deletions
1
stock_picking_deposito/models/__init__.py
Normal file
1
stock_picking_deposito/models/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
from . import stock_picking
|
21
stock_picking_deposito/models/stock_picking.py
Normal file
21
stock_picking_deposito/models/stock_picking.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Copyright 2021 Criptomart SLL
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
||||
|
||||
from odoo import api, models, fields
|
||||
|
||||
"""
|
||||
class PickingType(models.Model):
|
||||
|
||||
_inherit = 'stock.picking.type'
|
||||
|
||||
"""
|
||||
|
||||
class StockPicking(models.Model):
|
||||
|
||||
_inherit = 'stock.picking'
|
||||
|
||||
is_deposit = fields.Boolean(
|
||||
string='Es un Depósito',
|
||||
help='Éste albarán es un depósito, no una compra final',
|
||||
)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue