2024-06-11 21:26:26 -04:00
|
|
|
from odoo import fields, models
|
2023-06-09 10:24:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class ProductTemplate(models.Model):
|
2024-06-11 21:26:26 -04:00
|
|
|
_inherit = "product.template"
|
2023-06-09 10:24:06 -04:00
|
|
|
|
2023-11-16 09:01:22 -05:00
|
|
|
task_template_id = fields.Many2one(
|
|
|
|
|
comodel_name="project.task.template",
|
|
|
|
|
string="Task Template",
|
2024-06-11 21:26:26 -04:00
|
|
|
ondelete="restrict",
|
2023-11-16 09:01:22 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
is_field_service = fields.Boolean(
|
|
|
|
|
string="Plan as field service",
|
2024-06-11 21:26:26 -04:00
|
|
|
help=(
|
|
|
|
|
"Products planned as field service will have travel time considered in"
|
|
|
|
|
" planning."
|
|
|
|
|
),
|
2023-11-16 09:01:22 -05:00
|
|
|
)
|