mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-26 08:02:00 +02:00
18 lines
577 B
Python
18 lines
577 B
Python
from odoo import api, models
|
|
|
|
|
|
class ProductProduct(models.Model):
|
|
_inherit = 'product.product'
|
|
|
|
@api.model
|
|
def _load_pos_data_fields(self, config):
|
|
params = super()._load_pos_data_fields(config)
|
|
params += ['all_product_tag_ids']
|
|
|
|
# add missing product fields used in the reward_product_domain
|
|
missing_fields = self.env['loyalty.reward']._get_reward_product_domain_fields(config) - set(params)
|
|
|
|
if missing_fields:
|
|
params.extend([field for field in missing_fields if field in self._fields])
|
|
|
|
return params
|