implement event rental request system with public catalog and portal integration

This commit is contained in:
Alaguraj0361 2026-07-20 19:28:32 +05:30
parent f5bee990ff
commit e7e2c90a28
6 changed files with 3 additions and 7 deletions

View File

@ -101,7 +101,7 @@ class EventRentalController(http.Controller):
req_product_id = int(product_id or post.get('product_id') or 0)
quantity = float(post.get('quantity') or 1.0)
doc_type = post.get('doc_type', 'aadhaar')
doc_type = post.get('doc_type', 'driving_license')
id_proof_file = request.httprequest.files.get('id_proof')
# Simple UI checks

View File

@ -321,10 +321,8 @@ class EventDocument(models.Model):
request_id = fields.Many2one('event.rental.request', string='Rental Request', ondelete='cascade', required=True)
partner_id = fields.Many2one('res.partner', string='Customer')
doc_type = fields.Selection([
('aadhaar', 'Aadhaar Card'),
('driving_license', 'Driving License'),
('passport', 'Passport'),
('voter_id', 'Voter ID'),
('other', 'Other ID Proof')
], string='ID Proof Type', required=True)
attachment_id = fields.Many2one('ir.attachment', string='Attachment File', required=True)

View File

@ -181,10 +181,9 @@
<div class="form-group col-md-6">
<label for="doc_type" style="font-weight: 500;">ID Proof Type</label>
<select name="doc_type" id="doc_type" class="form-control" style="border-radius: 6px; border: 1px solid #ddd; padding: 10px;">
<option value="aadhaar">Aadhaar Card</option>
<option value="driving_license">Driving License</option>
<option value="passport">Passport</option>
<option value="voter_id">Voter ID</option>
<option value="other">Other ID Proof</option>
</select>
</div>
<div class="form-group col-md-6">

View File

@ -419,10 +419,9 @@
<div class="form-group col-md-6 mb-3">
<label for="doc_type">Government ID Proof <span class="text-danger">*</span></label>
<select name="doc_type" id="doc_type" class="form-control" required="1">
<option value="aadhaar" t-att-selected="post.get('doc_type') == 'aadhaar'">Aadhaar Card</option>
<option value="driving_license" t-att-selected="post.get('doc_type') == 'driving_license'">Driving License</option>
<option value="passport" t-att-selected="post.get('doc_type') == 'passport'">Passport</option>
<option value="voter_id" t-att-selected="post.get('doc_type') == 'voter_id'">Voter ID</option>
<option value="other" t-att-selected="post.get('doc_type') == 'other'">Other ID Proof</option>
</select>
</div>
<div class="form-group col-md-6 mb-3">