implement event rental request system with public catalog and portal integration
This commit is contained in:
parent
f5bee990ff
commit
e7e2c90a28
Binary file not shown.
@ -101,7 +101,7 @@ class EventRentalController(http.Controller):
|
|||||||
|
|
||||||
req_product_id = int(product_id or post.get('product_id') or 0)
|
req_product_id = int(product_id or post.get('product_id') or 0)
|
||||||
quantity = float(post.get('quantity') or 1.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')
|
id_proof_file = request.httprequest.files.get('id_proof')
|
||||||
|
|
||||||
# Simple UI checks
|
# Simple UI checks
|
||||||
|
|||||||
Binary file not shown.
@ -321,10 +321,8 @@ class EventDocument(models.Model):
|
|||||||
request_id = fields.Many2one('event.rental.request', string='Rental Request', ondelete='cascade', required=True)
|
request_id = fields.Many2one('event.rental.request', string='Rental Request', ondelete='cascade', required=True)
|
||||||
partner_id = fields.Many2one('res.partner', string='Customer')
|
partner_id = fields.Many2one('res.partner', string='Customer')
|
||||||
doc_type = fields.Selection([
|
doc_type = fields.Selection([
|
||||||
('aadhaar', 'Aadhaar Card'),
|
|
||||||
('driving_license', 'Driving License'),
|
('driving_license', 'Driving License'),
|
||||||
('passport', 'Passport'),
|
('passport', 'Passport'),
|
||||||
('voter_id', 'Voter ID'),
|
|
||||||
('other', 'Other ID Proof')
|
('other', 'Other ID Proof')
|
||||||
], string='ID Proof Type', required=True)
|
], string='ID Proof Type', required=True)
|
||||||
attachment_id = fields.Many2one('ir.attachment', string='Attachment File', required=True)
|
attachment_id = fields.Many2one('ir.attachment', string='Attachment File', required=True)
|
||||||
|
|||||||
@ -181,10 +181,9 @@
|
|||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="doc_type" style="font-weight: 500;">ID Proof Type</label>
|
<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;">
|
<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="driving_license">Driving License</option>
|
||||||
<option value="passport">Passport</option>
|
<option value="passport">Passport</option>
|
||||||
<option value="voter_id">Voter ID</option>
|
<option value="other">Other ID Proof</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
|
|||||||
@ -419,10 +419,9 @@
|
|||||||
<div class="form-group col-md-6 mb-3">
|
<div class="form-group col-md-6 mb-3">
|
||||||
<label for="doc_type">Government ID Proof <span class="text-danger">*</span></label>
|
<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">
|
<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="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="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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-6 mb-3">
|
<div class="form-group col-md-6 mb-3">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user