The three following fields have been added to fleet.vehicle: - frame_type (Selection) - frame_size (Float) - electric_assistance (Boolean) These fields are specific to bikes and are only displayed in form view when vehicle_type = bike Number of doors is now set to 0 instead of 5 when the vehicle is a bike. "plan_to_change_bike" boolean field has been added to the res.partner model and has also been added as related field in fleet.vehicle model. Task ID: 2238055 closes odoo/odoo#50064 Related: odoo/upgrade#1718 Related: odoo/enterprise#10152 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
12 lines
352 B
Python
12 lines
352 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
plan_to_change_car = fields.Boolean('Plan To Change Car', default=False)
|
|
plan_to_change_bike = fields.Boolean('Plan To Change Bike', default=False)
|