Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'modifications' #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion estate-property/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name': "estate-property",

'summary': """
超级好用的地产管理软件
超级好用的地产管理软件xiahui
""",

'description': """
Expand Down
18 changes: 18 additions & 0 deletions estate-property/models/models - 副本.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-

# from odoo import models, fields, api


# class estate-property(models.Model):
# _name = 'estate-property.estate-property'
# _description = 'estate-property.estate-property'

# 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
29 changes: 16 additions & 13 deletions estate-property/models/models.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# -*- coding: utf-8 -*-

# from odoo import models, fields, api
from odoo import models, fields, api


# class estate-property(models.Model):
# _name = 'estate-property.estate-property'
# _description = 'estate-property.estate-property'
class estateproperty(models.Model):
_name = 'estateproperty.ep'
# _description = 'estate-property.estate-property'

# 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
name = fields.Char()
date = fields.Date()
description = fields.Text()

# 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