forked from Mapan/odoo17e
20 lines
640 B
Python
20 lines
640 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class ProductTemplate(models.Model):
|
|
_inherit = 'product.template'
|
|
|
|
def action_cost_structure(self):
|
|
products = self.product_variant_ids
|
|
return self.env.ref('mrp_account_enterprise.action_cost_struct_product_template').report_action(products, config=False)
|
|
|
|
|
|
class ProductProduct(models.Model):
|
|
_inherit = 'product.product'
|
|
|
|
def action_cost_structure(self):
|
|
return self.env.ref('mrp_account_enterprise.action_cost_struct_product_template').report_action(self, config=False)
|