first push message
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# from odoo import models, fields, api
|
||||
|
||||
|
||||
# class custom_style_form(models.Model):
|
||||
# _name = 'custom_style_form.custom_style_form'
|
||||
# _description = 'custom_style_form.custom_style_form'
|
||||
|
||||
# name = fields.Char()
|
||||
# value = fields.Integer()
|
||||
# value2 = fields.Float(compute="_value_pc", store=True)
|
||||
# description = fields.Text()
|
||||
#
|
||||
# @api.depends('value')
|
||||
# def _value_pc(self):
|
||||
# for record in self:
|
||||
# record.value2 = float(record.value) / 100
|
||||
|
||||
Reference in New Issue
Block a user