mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
21 lines
474 B
Python
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
|