Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG]Migrated Business Requirement Deliverable Resource Template Categ from 8.0 to 10.0. #237

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Business Requirement
Introduction
============

This module is part of a set of modules (`Business Requirements <https://github.com/OCA/business-requirement/blob/8.0/README.md>`_)
This module is part of a set of modules (`Business Requirements <https://github.com/OCA/business-requirement/blob/10.0/README.md>`_)

This module adds the following features particularly useful for sales package with standard resources:

Expand Down Expand Up @@ -55,7 +55,7 @@ Usage

.. figure:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/222/8.0
:target: https://runbot.odoo-community.org/runbot/222/10.0


Bug Tracker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'category': 'Business Requirements Management',
'summary': """Manage default resource lines categories in your
deliverable templates""",
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'website': 'https://www.elico-corp.com/',
"author": "Elico Corp, Odoo Community Association (OCA)",
'depends': [
Expand All @@ -26,5 +26,5 @@
"business_requirement_deliverable_resource_template_categ_demo.xml",
],
'license': 'AGPL-3',
'installable': False,
'installable': True,
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data noupdate="1">

<record id="business_requirement_deliverable_resource_template.resource_template_06"
Expand All @@ -24,4 +24,4 @@
</record>

</data>
</openerp>
</odoo>
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
# © 2017 Elico Corp (https://www.elico-corp.com).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models
from odoo import fields, models


class BusinessRequirementResourceTemplate(models.Model):
_inherit = "business.requirement.resource.template"

categ_id = fields.Many2one(
'project.category.main',
'project.tags',
string="Task Category"
)
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">product.template.form</field>
<field name="model">product.template</field>
<field name="inherit_id"
ref="business_requirement_deliverable_resource_template.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='resource_lines']/tree[@editable='top']/field[@name='name']"
position="after">
<field name="categ_id"/>
</xpath>
</field>
</record>
</data>
</openerp>
<odoo>

<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">product.template.form</field>
<field name="model">product.template</field>
<field name="inherit_id"
ref="business_requirement_deliverable_resource_template.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='resource_lines']/tree[@editable='top']/field[@name='name']"
position="after">
<field name="categ_id"/>
</xpath>
</field>
</record>

</odoo>