diff --git a/cor_custom/__manifest__.py b/cor_custom/__manifest__.py index 40f44c6..f071be5 100755 --- a/cor_custom/__manifest__.py +++ b/cor_custom/__manifest__.py @@ -29,7 +29,7 @@ 'views/sale_views.xml', 'views/project_view.xml', 'views/hr_timesheet_templates.xml', - #'views/analytic_view.xml', + # 'views/analytic_view.xml', 'report/project_profitability_report_analysis_views.xml', 'views/views.xml', 'views/templates.xml', diff --git a/cor_custom/models/__init__.py b/cor_custom/models/__init__.py index 8e0c0a0..e6f2e93 100755 --- a/cor_custom/models/__init__.py +++ b/cor_custom/models/__init__.py @@ -4,4 +4,5 @@ from . import crm_lead from . import models from . import project from . import project_overview -from . import analytic \ No newline at end of file +from . import analytic +from . import product \ No newline at end of file diff --git a/cor_custom/models/__pycache__/__init__.cpython-36.pyc b/cor_custom/models/__pycache__/__init__.cpython-36.pyc old mode 100755 new mode 100644 index 87a3f96..b5c4e70 Binary files a/cor_custom/models/__pycache__/__init__.cpython-36.pyc and b/cor_custom/models/__pycache__/__init__.cpython-36.pyc differ diff --git a/cor_custom/models/__pycache__/product.cpython-36.pyc b/cor_custom/models/__pycache__/product.cpython-36.pyc new file mode 100644 index 0000000..01e1117 Binary files /dev/null and b/cor_custom/models/__pycache__/product.cpython-36.pyc differ diff --git a/cor_custom/models/product.py b/cor_custom/models/product.py new file mode 100755 index 0000000..db51af5 --- /dev/null +++ b/cor_custom/models/product.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +from odoo import api, fields, models, _ + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + taxes_id = fields.Many2many('account.tax', 'product_taxes_rel', 'prod_id', 'tax_id', help="Default taxes used when selling the product.", string='Client Taxes', + domain=[('type_tax_use', '=', 'sale')], default=lambda self: self.env.company.account_sale_tax_id) + + +class ProductProduct(models.Model): + _inherit = "product.product" +