OCA-git-bot
5 years ago
16 changed files with 175 additions and 8 deletions
-
9agreement_legal/data/agreement_stage.xml
-
17agreement_legal/i18n/agreement_legal.pot
-
3agreement_legal/models/agreement.py
-
5agreement_legal/models/agreement_stage.py
-
2agreement_legal/views/agreement.xml
-
2agreement_legal/views/agreement_stages.xml
-
1agreement_serviceprofile/README.rst
-
1agreement_serviceprofile/__manifest__.py
-
41agreement_serviceprofile/data/serviceprofile_stage.xml
-
24agreement_serviceprofile/i18n/agreement_serviceprofile.pot
-
1agreement_serviceprofile/models/__init__.py
-
17agreement_serviceprofile/models/agreement_serviceprofile.py
-
12agreement_serviceprofile/models/agreement_stage.py
-
1agreement_serviceprofile/readme/CONTRIBUTORS.rst
-
1agreement_serviceprofile/static/description/index.html
-
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_serviceprofile |
||||
from . import agreement |
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