change customer tax to client tax
This commit is contained in:
parent
877f768ed6
commit
53f779c865
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue