Skip to Content
Menú
This question has been flagged

I developed a custom module with computed fields. When I load the module to production database, nothing happens and I am getting this warning and the bottom line of the log file is: 

Storing computed field 'product_total_cost '

Storing computed field 'product_unit_cost_store '

WARNING : Skipping database because of modules to install/upgrade/remove.

The computed fields in the model is as follows:

 

class MrpBomLine(models.Model):

    _inherit = 'mrp.bom.line'

    product_unit_cost = fields.Float(

        related='product_id.standard_price',

        string='Maliyet', digits=dp.get_precision('Product Price'),

        help="Bom yapısındaki seçili ürünün otomatik hesaplanacak olan birim maliyeti")

    product_total_cost = fields.Monetary(

        string="Toplam Maliyet", compute='_compute_total_price', store=True, readonly=True,

        help="Toplam Ürün Maliyeti")

    product_unit_cost_store = fields.Float(

     string='Maliyet', digits=dp.get_precision('Product Price'),

     compute='_compute_total_price', store=True, readonly=True,

    help="Bom yapısındaki seçili ürünün otomatik hesaplanacak olan birim maliyeti")

   

    @api.one

    @api.depends('product_id', 'product_qty', 'product_unit_cost')

    def _compute_total_price(self):

        if self.product_id and self.product_qty and self.product_unit_cost:

            self.product_total_cost = self.product_qty * self.product_unit_cost

            self.product_unit_cost_store = self.product_unit_cost


My Pivot View:

        <record id="bom_line_customization_inherited_pivot_table" model="ir.ui.view">

            <field name="name">bom.line.inherited.pivot.table</field>

            <field name="model">mrp.bom.line</field>

            <field name="arch" type="xml">

                <pivot string="Bom Components">

                    <field name="bom_id" type="row"/>

                    <field name="product_qty" type="measure"/>

                    <field name="product_unit_cost" type="measure"/>

                    <field name="product_total_cost" type="measure"/>

                </pivot>

            </field>

        </record>



Does anyone solve this problem?

Avatar
Descartar
Best Answer

I'm not sure but you can try to set none limitations parameters like that;

limit_memory_hard = None

limit_memory_soft = None

limit_request = None

limit_time_cpu = None

limit_time_real = None

limit_time_real_cron = None


and then 


longpolling_port = 8072

max_cron_threads = 10

...

workers = none


good luck!

Avatar
Descartar
Autor Best Answer

Hello, 

Limit time informations is that in the config file   (According to cpu capacity) : 

limit_memory_hard = 20132659200

limit_memory_soft = 1677721600 

limit_request = 8192

limit_time_cpu = 3600

limt_time_real = 7200

limit_time_real_cron = -1

....

longpolling_port = 8072

max_cron_threads = 1

...

workers = 25


How should I update these values?


Avatar
Descartar
Best Answer

I think you have to increase time in config file

cpu time limt,...etc

Avatar
Descartar

Hello ,

I have query related to your answer.

1. First Question is how to increase cpu time limit ?

2. Second one is what is effect in odoo ?

Related Posts Respostes Vistes Activitat
14
de nov. 17
8444
1
de gen. 20
2908
0
de gen. 20
3091
1
de des. 19
4136
0
d’ag. 19
5357