Add track_visibility='onchange' on available_in_pos

This commit is contained in:
Alexis de Lattre
2017-11-22 09:52:51 +01:00
parent ac05ca27a4
commit a11f9574ee
2 changed files with 13 additions and 0 deletions

View File

@@ -1 +1,3 @@
# -*- coding: utf-8 -*-
from . import product

11
pos_usability/product.py Normal file
View File

@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = 'product.template'
available_in_pos = fields.Boolean(track_visibility='onchange')