mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 05:12:04 +02:00
13 lines
385 B
Python
13 lines
385 B
Python
from odoo import models
|
|
|
|
|
|
class PosSession(models.Model):
|
|
_inherit = "pos.session"
|
|
|
|
def _loader_params_product_product(self):
|
|
"""
|
|
Load all deposit products and add deposit related fields
|
|
"""
|
|
result = super()._loader_params_product_product()
|
|
result["search_params"]["fields"] += ["deposit_product_id", "is_deposit"]
|
|
return result
|