Geselle-wunsch/models/models.py

15 lines
405 B
Python
Raw Permalink Normal View History

2017-07-14 15:24:55 +02:00
# -*- coding: utf-8 -*-
from odoo import models, fields, api
# class geselle-wunsch(models.Model):
# _name = 'geselle-wunsch.geselle-wunsch'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# description = fields.Text()
#
# @api.depends('value')
# def _value_pc(self):
# self.value2 = float(self.value) / 100