Merge branch 'pawan_branch' into 'development'

Pawan branch

See merge request prakash.jain/cor-odoo!18
This commit is contained in:
pawan.sharma 2020-12-18 04:08:14 -08:00
commit 66cd4ec7b0
5 changed files with 18 additions and 2 deletions

View File

@ -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',

View File

@ -4,4 +4,5 @@ from . import crm_lead
from . import models
from . import project
from . import project_overview
from . import analytic
from . import analytic
from . import product

BIN
cor_custom/models/__pycache__/__init__.cpython-36.pyc Executable file → Normal file

Binary file not shown.

Binary file not shown.

15
cor_custom/models/product.py Executable file
View File

@ -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"