Code for custom module for product.template:
# -*- coding: utf-8 -*-
from openerp import models, fields, api
class myfieldinproduct(models.Model):
_inherit = 'product.template'
#Add custom field "reg_model"
reg_model = fields.Char('Model', default='NL-XXXX-XXX')
....
My code for custom module for sale.order:
# -*- coding: utf-8 -*-
from openerp import models, fields, api
class myfieldinsaleorder(models.Model):
_inherit = 'sale.order'
#Add custom field "reg_model"
reg_modelinsaleorder = fields.Char('Model', default='NL-XXXX-XXX')
In this point how i can get the value of "reg_model" from product.template custom module (myfieldinproduct) and assing to reg_modelinsaleorder
....
Example:
in produc.template have a custom field "mycolor"
in sale.order have a custom field "hiscolor"
hiscolor = mycolor some thing like that.
Thank you.