Buy Car Service
This commit is contained in:
parent
e4f86f2a4c
commit
29f594746c
|
|
@ -686,7 +686,7 @@ class ServiceAttachmentsSettings(models.Model):
|
|||
name = fields.Char(string='name')
|
||||
service_attach = fields.Many2many('ir.attachment','rel_service_attachments', 'service_id', 'attach_id',string="Attachment")
|
||||
service_type = fields.Selection([('rent', 'Rent'),('home_restoration', 'Home Restoration'),('alternative_housing', 'Alternative Housing'),('home_maintenance','Home Maintenance')
|
||||
,('complete_building_house','Complete Building House'),('electrical_devices','Electrical Devices'),('home_furnishing','Home furnishing'),('electricity_bill','Electricity bill')],string='Service Type',related="service_id.service_type")
|
||||
,('complete_building_house','Complete Building House'),('electrical_devices','Electrical Devices'),('home_furnishing','Home furnishing'),('electricity_bill','Electricity bill'),('water_bill','Water bill'),('buy_car','Buy Car')],string='Service Type',related="service_id.service_type")
|
||||
service_id = fields.Many2one('services.settings',string='Service')
|
||||
service_request_id = fields.Many2one('service.request',string='Service Request')
|
||||
notes = fields.Text(string='Notes')
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class ServicesSettings(models.Model):
|
|||
is_this_service_for_student = fields.Boolean(string='Is Service For Student?')
|
||||
service_type = fields.Selection([('rent', 'Rent'),('home_restoration', 'Home Restoration'),('alternative_housing', 'Alternative Housing'),('home_maintenance','Home Maintenance')
|
||||
,('complete_building_house','Complete Building House'),('electrical_devices','Electrical Devices'),('home_furnishing','Home furnishing')
|
||||
,('electricity_bill','Electricity bill'),('water_bill','Water bill')]
|
||||
,('electricity_bill','Electricity bill'),('water_bill','Water bill'),('buy_car','Buy Car')]
|
||||
,string='Service Type')
|
||||
max_amount_for_student = fields.Float(string='Max Amount for Student')
|
||||
raise_amount_for_orphan = fields.Float(string='Raise Amount For Orphan')
|
||||
|
|
@ -40,7 +40,9 @@ class ServicesSettings(models.Model):
|
|||
electricity_bill_lines = fields.One2many('electricity.bill.lines','services_settings_id')
|
||||
# Water Bill
|
||||
water_bill_lines = fields.One2many('water.bill.lines', 'services_settings_id')
|
||||
|
||||
#Buy Car
|
||||
max_buy_car_amount = fields.Float(string='Max Buy Car Amount')
|
||||
min_count_member = fields.Integer(string='Mini Count Member')
|
||||
|
||||
class RentLines(models.Model):
|
||||
_name = 'rent.lines'
|
||||
|
|
|
|||
|
|
@ -127,6 +127,13 @@
|
|||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Buy Car Settings" attrs="{'invisible':[('service_type','!=','buy_car')]}">
|
||||
<group>
|
||||
<field name="benefit_category_ids" widget="many2many_tags"/>
|
||||
<field name="max_buy_car_amount"/>
|
||||
<field name="min_count_member"/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue