[ADD] stock_picking_batch_custom: columnas opcionales partner y categoría
This commit is contained in:
parent
97dc41d212
commit
ced21cc489
7 changed files with 61 additions and 0 deletions
17
stock_picking_batch_custom/models/stock_move_line.py
Normal file
17
stock_picking_batch_custom/models/stock_move_line.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2026 Criptomart
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields
|
||||
from odoo import models
|
||||
|
||||
|
||||
class StockMoveLine(models.Model):
|
||||
_inherit = "stock.move.line"
|
||||
|
||||
product_categ_id = fields.Many2one(
|
||||
comodel_name="product.category",
|
||||
string="Product Category",
|
||||
related="product_id.categ_id",
|
||||
store=True,
|
||||
readonly=True,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue