addons/point_of_sale/models/product_category.py
raw| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | from odoo import api, models |
| 3 | |
| 4 | |
| 5 | class ProductCategory(models.Model): |
| 6 | _name = 'product.category' |
| 7 | _inherit = ['product.category', 'pos.load.mixin'] |
| 8 | |
| 9 | @api.model |
| 10 | def _load_pos_data_fields(self, config): |
| 11 | return ['id', 'name', 'parent_id'] |