mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] agreement_serviceprofile
This commit is contained in:
committed by
Patrick Wilson
parent
58048a73cc
commit
f9e22e386e
@@ -1 +1,4 @@
|
||||
# Copyright (C) 2018 Pavlov Media
|
||||
# Copyright (C) 2019 Open Source Integrators
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from . import models
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright (C) 2018 - TODAY, Pavlov Media
|
||||
# Copyright (C) 2018 Pavlov Media
|
||||
# Copyright (C) 2019 Open Source Integrators
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
'name': 'Agreement Service Profile',
|
||||
'summary': "Adds an Agreement Service Profile object",
|
||||
'version': '12.0.1.0.0',
|
||||
'version': '12.0.1.1.0',
|
||||
'category': 'Contract',
|
||||
'author': 'Pavlov Media, '
|
||||
'Open Source Integrators, '
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- # Copyright (C) 2018 Pavlov Media
|
||||
# Copyright (C) 2019 Open Source Integrators
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="servpro_stage_draft" model="agreement.stage">
|
||||
|
||||
@@ -26,7 +26,10 @@ class AgreementServiceProfile(models.Model):
|
||||
|
||||
notes = fields.Text(string="Notes")
|
||||
product_id = fields.Many2one('product.template', 'Service',
|
||||
domain="[('type', '=', 'service')]")
|
||||
domain="[('type', '=', 'service')]",
|
||||
required=True)
|
||||
partner_id = fields.Many2one(related='agreement_id.partner_id',
|
||||
string='Partner')
|
||||
|
||||
# Used for Kanban grouped_by view
|
||||
@api.model
|
||||
|
||||
@@ -1,7 +1,18 @@
|
||||
* `Pavlov Media <https://www.pavlovmedia.com>`_:
|
||||
|
||||
* Patrick Wilson <pwilson@pavlovmedia.com>
|
||||
|
||||
* `Open Source Integrators <https://www.opensourceintegrators.com>`_:
|
||||
|
||||
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
||||
* Wolfgang Hall <whall@opensourceintegrators.com>
|
||||
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
|
||||
* Sandip Mangukiya <smangukiya@opensourceintegrators.com>
|
||||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
|
||||
|
||||
* `Serpent Consulting Services Pvt. Ltd. <https://www.serpentcs.com>`_:
|
||||
|
||||
* Murtuza Saleh <murtuzasaleh@serpentcs.com>
|
||||
|
||||
* `Mc Master Lawn and Pest Services <https://www.mcmpest.com>`_:
|
||||
|
||||
* Brian McMaster <brian@mcmpest.com>
|
||||
|
||||
@@ -11,10 +11,21 @@
|
||||
<field name="serviceprofile_ids">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
<field name="product_id"/>
|
||||
</tree>
|
||||
<form>
|
||||
<group>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="notes" placeholder="Add Notes Here..."/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="product_id"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Notes">
|
||||
<field name="notes" nolabel="1"
|
||||
placeholder="Add notes here..."/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<tree string="Service Profiles" default_order='agreement_id'>
|
||||
<field name="name"/>
|
||||
<field name="agreement_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="product_id"/>
|
||||
<field name="active" invisible="1"/>
|
||||
</tree>
|
||||
@@ -88,6 +89,9 @@
|
||||
<filter string="Agreement" name="group_agreement"
|
||||
icon="terp-partner"
|
||||
context="{'group_by': 'agreement_id'}"/>
|
||||
<filter string="Product" name="group_product"
|
||||
icon="terp-product"
|
||||
context="{'group_by': 'product_id'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user