Files
stock-logistics-warehouse/sale_stock_on_hand_popup/models/product.py
2024-01-26 08:46:40 +01:00

21 lines
474 B
Python

from odoo import _, models
class Product(models.Model):
_inherit = "product.product"
def action_open_quants_show_products(self):
res = self.action_open_quants()
res.update(
{
"name": _("Stock Lines"),
"context": {
**res.get("context", {}),
"single_product": False,
"edit": False,
},
}
)
return res