Add gitignore swp pyc and pycache and estate property offer models
This commit is contained in:
parent
36b60ac013
commit
25e68ef6a9
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*.swp
|
||||
*.pyc
|
||||
__pycache__/
|
||||
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
from . import estate_property
|
||||
from . import estate_property_type
|
||||
from . import estate_property_tag
|
||||
from . import estate_property_offer
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13
estate/models/estate_property_offer.py
Normal file
13
estate/models/estate_property_offer.py
Normal file
@ -0,0 +1,13 @@
|
||||
from odoo import models, fields
|
||||
|
||||
class EstatePropertyOffer(models.Model):
|
||||
_name = 'estate.property.offer'
|
||||
_description = 'Estate Property Offer'
|
||||
|
||||
price = fields.Float()
|
||||
status = fields.Selection([
|
||||
('accepted', 'Accepted'),
|
||||
('refused', 'Refused'),
|
||||
], copy=False)
|
||||
partner_id = fields.Many2one('res.partner', string="Partner", required=True)
|
||||
property_id = fields.Many2one('estate.property', string="Propety", required=True)
|
||||
Loading…
x
Reference in New Issue
Block a user