20 lines
511 B
Plaintext
20 lines
511 B
Plaintext
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# from odoo import models, fields, api
|
||
|
|
||
|
|
||
|
# class {{ name|snake }}(models.Model):
|
||
|
# _name = '{{ name|snake }}.{{ name|snake }}'
|
||
|
# _description = '{{ name|snake }}.{{ name|snake }}'
|
||
|
|
||
|
# 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
|
||
|
|