Browse Source
[IMP] agreement_serviceprofile: add stage
[IMP] agreement_serviceprofile: add stage
- Add stage_type to agreement.stage - Track stage of service profile - Add Kanban view for service profiles to the dashboard - Add product_id field to service profilepull/368/head
brian10048
6 years ago
committed by
OCA-git-bot
12 changed files with 135 additions and 5 deletions
-
9agreement_legal/data/agreement_stage.xml
-
3agreement_legal/models/agreement.py
-
5agreement_legal/models/agreement_stage.py
-
2agreement_legal/views/agreement.xml
-
2agreement_legal/views/agreement_stages.xml
-
1agreement_serviceprofile/__manifest__.py
-
41agreement_serviceprofile/data/serviceprofile_stage.xml
-
1agreement_serviceprofile/models/__init__.py
-
17agreement_serviceprofile/models/agreement_serviceprofile.py
-
12agreement_serviceprofile/models/agreement_stage.py
-
1agreement_serviceprofile/readme/CONTRIBUTORS.rst
-
46agreement_serviceprofile/views/agreement_serviceprofile.xml
@ -0,0 +1,41 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo noupdate="1"> |
|||
|
|||
<record id="servpro_stage_draft" model="agreement.stage"> |
|||
<field name="name">Draft</field> |
|||
<field name="sequence">10</field> |
|||
<field name="stage_type">serviceprofile</field> |
|||
</record> |
|||
|
|||
<record id="servpro_stage_progress" model="agreement.stage"> |
|||
<field name="name">In Progress</field> |
|||
<field name="sequence">20</field> |
|||
<field name="stage_type">serviceprofile</field> |
|||
</record> |
|||
|
|||
<record id="servpro_stage_suspend" model="agreement.stage"> |
|||
<field name="name">Suspended</field> |
|||
<field name="sequence">30</field> |
|||
<field name="stage_type">serviceprofile</field> |
|||
</record> |
|||
|
|||
<record id="servpro_stage_renew" model="agreement.stage"> |
|||
<field name="name">To Renew</field> |
|||
<field name="sequence">40</field> |
|||
<field name="stage_type">serviceprofile</field> |
|||
</record> |
|||
|
|||
<record id="servpro_stage_close" model="agreement.stage"> |
|||
<field name="name">Closed</field> |
|||
<field name="sequence">50</field> |
|||
<field name="stage_type">serviceprofile</field> |
|||
</record> |
|||
|
|||
<record id="servpro_stage_cancel" model="agreement.stage"> |
|||
<field name="name">Cancelled</field> |
|||
<field name="sequence">60</field> |
|||
<field name="fold">True</field> |
|||
<field name="stage_type">serviceprofile</field> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,2 +1,3 @@ |
|||
from . import agreement_serviceprofile |
|||
from . import agreement |
|||
from . import agreement_stage |
@ -0,0 +1,12 @@ |
|||
# Copyright (C) 2019 - TODAY, Brian McMaster |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import fields, models |
|||
|
|||
|
|||
class AgreementStage(models.Model): |
|||
_inherit = 'agreement.stage' |
|||
|
|||
stage_type = fields.Selection( |
|||
selection_add=[('serviceprofile', 'Service Profile')] |
|||
) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue