You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							44 lines
						
					
					
						
							2.0 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							44 lines
						
					
					
						
							2.0 KiB
						
					
					
				
								# -*- coding: utf-8 -*-
							 | 
						|
								#############################################################################
							 | 
						|
								#
							 | 
						|
								#    Cybrosys Technologies Pvt. Ltd.
							 | 
						|
								#
							 | 
						|
								#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
							 | 
						|
								#    Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
							 | 
						|
								#
							 | 
						|
								#    You can modify it under the terms of the GNU LESSER
							 | 
						|
								#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
							 | 
						|
								#
							 | 
						|
								#    This program is distributed in the hope that it will be useful,
							 | 
						|
								#    but WITHOUT ANY WARRANTY; without even the implied warranty of
							 | 
						|
								#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
							 | 
						|
								#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
							 | 
						|
								#
							 | 
						|
								#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
							 | 
						|
								#    (LGPL v3) along with this program.
							 | 
						|
								#    If not, see <http://www.gnu.org/licenses/>.
							 | 
						|
								#
							 | 
						|
								#############################################################################
							 | 
						|
								from odoo import fields, models
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								class PropertyAuctionLine(models.Model):
							 | 
						|
								    """A class for the model property.auction.line to represent
							 | 
						|
								    the participants of the auction"""
							 | 
						|
								    _name = 'property.auction.line'
							 | 
						|
								    _description = 'Auction Line'
							 | 
						|
								
							 | 
						|
								    partner_id = fields.Many2one('res.partner', string='Bidder',
							 | 
						|
								                                 help='The person who is bidding for the '
							 | 
						|
								                                      'property')
							 | 
						|
								    bid_time = fields.Datetime(string='Bid Time',
							 | 
						|
								                               help='The date and time when the bid was placed')
							 | 
						|
								    currency_id = fields.Many2one('res.currency', 'Currency',
							 | 
						|
								                                  default=lambda self: self.env.user.company_id
							 | 
						|
								                                  .currency_id,
							 | 
						|
								                                  required=True)
							 | 
						|
								    bid_amount = fields.Monetary(string='bid amount',
							 | 
						|
								                                 help='The amount which is bid')
							 | 
						|
								    auction_id = fields.Many2one('property.auction',
							 | 
						|
								                                 string='Property Auction',
							 | 
						|
								                                 help='The corresponding property auction')
							 | 
						|
								
							 |