I have made a new field here in stock.pack.operation model:
Now how can I give the value to the field of model stock.quant? =
Here I have the field test. like this in my code:
How can I give the value to this field in quants??
no ideas?
# -*- coding: utf-8 -*-
from openerp import models, fields, api
class gio_stock_pack_picking(models.Model):
_inherit = ["stock.pack.operation"]
field1 = fields.Float('Stückpreis')
class gio_stock_quant(models.Model):
_inherit = ["stock.quant"]
field2 = fields.Float(string='Stückpreis')