-
-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 profile
- Loading branch information
1 parent
a0071c0
commit 1238619
Showing
12 changed files
with
135 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from . import agreement_serviceprofile | ||
from . import agreement | ||
from . import agreement_stage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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')] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters