Add tracking on important product fields
This commit is contained in:
@@ -1,2 +1,4 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
from . import purchase
|
from . import purchase
|
||||||
|
from . import product
|
||||||
|
|||||||
11
purchase_usability/product.py
Normal file
11
purchase_usability/product.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from odoo import models, fields
|
||||||
|
|
||||||
|
|
||||||
|
class ProductTemplate(models.Model):
|
||||||
|
_inherit = 'product.template'
|
||||||
|
|
||||||
|
purchase_method = fields.Selection(track_visibility='onchange')
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from . import sale
|
from . import sale
|
||||||
|
from . import product
|
||||||
|
|||||||
13
sale_usability/product.py
Normal file
13
sale_usability/product.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from odoo import models, fields
|
||||||
|
|
||||||
|
|
||||||
|
class ProductTemplate(models.Model):
|
||||||
|
_inherit = 'product.template'
|
||||||
|
|
||||||
|
track_service = fields.Selection(track_visibility='onchange')
|
||||||
|
expense_policy = fields.Selection(track_visibility='onchange')
|
||||||
|
invoice_policy = fields.Selection(track_visibility='onchange')
|
||||||
@@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
from . import stock
|
from . import stock
|
||||||
from . import procurement
|
from . import procurement
|
||||||
|
from . import product
|
||||||
|
|||||||
12
stock_usability/product.py
Normal file
12
stock_usability/product.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from odoo import models, fields
|
||||||
|
|
||||||
|
|
||||||
|
class ProductTemplate(models.Model):
|
||||||
|
_inherit = 'product.template'
|
||||||
|
|
||||||
|
tracking = fields.Selection(track_visibility='onchange')
|
||||||
|
sale_delay = fields.Float(track_visibility='onchange')
|
||||||
Reference in New Issue
Block a user