Skip to content

Commit

Permalink
Merge PR #325 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 24, 2019
2 parents 1837351 + d0f2336 commit ae1c1b8
Show file tree
Hide file tree
Showing 32 changed files with 1,607 additions and 5 deletions.
2 changes: 1 addition & 1 deletion business_requirement/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"category": "Business Requirements Management",
"summary": "Manage the Business Requirements (stories, scenarios, gaps\
and test cases) for your customers",
"version": "12.0.1.0.0",
"version": "12.0.1.1.0",
"website": "https://github.com/OCA/business-requirement",
"author": "Elico Corp, "
"Tecnativa, "
Expand Down
6 changes: 6 additions & 0 deletions business_requirement/data/business_requirement_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

<record id="business_requirement_1" model="business.requirement">
<field name="description">Corporate Website</field>
<field name="name">BRDEMO01</field>
<field name="responsible_user_id" ref="base.user_admin"/>
<field name="user_id" ref="base.user_demo"/>
<field name="priority">2</field>
Expand Down Expand Up @@ -126,6 +127,7 @@ pulvinar et, cursus sed purus.
</record>
<record id="business_requirement_2_1" model="business.requirement">
<field name="description">ERP Implementation</field>
<field name="name">BRDEMO02</field>
<field name="responsible_user_id" ref="base.user_demo"/>
<field name="user_id" ref="base.user_admin"/>
<field name="priority">1</field>
Expand All @@ -139,6 +141,7 @@ pulvinar et, cursus sed purus.
</record>
<record id="business_requirement_2_2" model="business.requirement">
<field name="description">ERP Setup</field>
<field name="name">BRDEMO03</field>
<field name="responsible_user_id" ref="base.user_demo"/>
<field name="priority">1</field>
<field name="category_ids"
Expand Down Expand Up @@ -242,6 +245,7 @@ pulvinar et, cursus sed purus.
</record>
<record id="business_requirement_3" model="business.requirement">
<field name="description">Server Set up</field>
<field name="name">BRDEMO04</field>
<field name="responsible_user_id" ref="base.user_demo"/>
<field name="priority">2</field>
<field name="category_ids"
Expand Down Expand Up @@ -332,6 +336,7 @@ pulvinar et, cursus sed purus.
</record>
<record id="business_requirement_4" model="business.requirement">
<field name="description">Business Analysis</field>
<field name="name">BRDEMO05</field>
<field name="responsible_user_id" ref="base.user_demo"/>
<field name="priority">1</field>
<field name="category_ids"
Expand Down Expand Up @@ -422,6 +427,7 @@ pulvinar et, cursus sed purus.
</record>
<record id="business_requirement_5" model="business.requirement">
<field name="description">Gap Analysis</field>
<field name="name">BRDEMO06</field>
<field name="responsible_user_id" ref="base.user_demo"/>
<field name="priority">1</field>
<field name="category_ids"
Expand Down
6 changes: 3 additions & 3 deletions business_requirement/security/security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id"
ref="business_requirement.module_category_business_requirement"/>
<field name="users" eval="[(4, ref('base.user_admin'))]"/>
<field name="users" eval="[(4, ref('base.user_admin')), (4, ref('base.user_root'))]"/>
</record>

<record id="group_business_requirement_manager" model="res.groups">
Expand All @@ -15,7 +15,7 @@
eval="[(4, ref('business_requirement.group_business_requirement_user'))]"/>
<field name="category_id"
ref="business_requirement.module_category_business_requirement"/>
<field name="users" eval="[(4, ref('base.user_admin'))]"/>
<field name="users" eval="[(4, ref('base.user_admin')), (4, ref('base.user_root'))]"/>
</record>

<record id="rule_business_requirement" model="ir.rule">
Expand All @@ -26,7 +26,7 @@
['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]
</field>
</record>

<!-- Portal -->
<record id="br_rule_portal" model="ir.rule">
<field name="name">BR: portal users: portal and following</field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ msgstr ""

#. module: business_requirement_deliverable
#: model:ir.model.fields,field_description:business_requirement_deliverable.field_business_requirement_deliverable__sequence
#: model:ir.model.fields,field_description:business_requirement_deliverable.field_business_requirement_deliverable_section__sequence
msgid "Sequence"
msgstr ""

Expand Down
2 changes: 2 additions & 0 deletions business_requirement_deliverable/models/brd_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
class BusinessRequirementDeliverableSection(models.Model):
_name = "business.requirement.deliverable.section"
_description = "Deliverable Section"
_order = "sequence, id"

name = fields.Char('Name', required=True)
sequence = fields.Integer(string='Sequence', default=10)
109 changes: 109 additions & 0 deletions business_requirement_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
=========================
Business Requirement Sale
=========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbusiness--requirement-lightgray.png?logo=github
:target: https://github.com/OCA/business-requirement/tree/12.0/business_requirement_sale
:alt: OCA/business-requirement
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/business-requirement-12-0/business-requirement-12-0-business_requirement_sale
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/222/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of Business Requirement to allow you to
create from them Sales Orders, taking deliverables as sales order lines.

**Table of contents**

.. contents::
:local:

Usage
=====

#. Go to *Business Requirement > Business Requirement*.
#. Open the business requirement you want to quote.
#. Click on "Create Quotation" button.
#. On the wizard popup, mark the sections you want to quote, and the
deliverables belonging to that section will be marked, or directly mark
individual ones.
#. There will be a special "Undefined section" checkbox at the end of the
"Sections" group for marking/unmarking deliverables without section.
#. Click on "Create" for generating the quotation.
#. You will be redirected to the newly created draft sales order (quotation).

You can navigate since this moment to all the created quotations:

#. Go to *Business Requirement > Business Requirement*.
#. Open the business requirement that has been quoted.
#. Look for the smart-button "Sales" on the upper-right part of the form.
#. Click on it for going to the quotation/sales order list.

Known issues / Roadmap
======================

* The widget many2many_checkboxes has a bug that avoids to refresh contents
when checkboxes are unmarked programatically, so when you remove some
sections on the sales order creation wizard, they won't be reflected in
screen.
* Include an event when checking/unchecking deliverable for updating sections
accordingly.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/business-requirement/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/business-requirement/issues/new?body=module:%20business_requirement_sale%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

* Alexandre Diaz
* Pedro M. Baeza
* Victor M.M. Torres

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/business-requirement <https://github.com/OCA/business-requirement/tree/12.0/business_requirement_sale>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions business_requirement_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2019 Tecnativa Victor M.M. Torres>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
22 changes: 22 additions & 0 deletions business_requirement_sale/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2019 Tecnativa - Victor M.M. Torres
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Business Requirement Sale",
'category': 'Business Requirements Management',
'summary': 'Convert Business Requirement into Sales Orders',
"version": "12.0.1.0.0",
"website": "https://github.com/OCA/business-requirement",
"author": "Tecnativa, "
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": [
"business_requirement_deliverable",
"sale_management",
],
"data": [
'wizard/business_requirement_create_sale_views.xml',
'views/sale_order_views.xml',
'views/business_requirement_views.xml',
],
}

0 comments on commit ae1c1b8

Please sign in to comment.