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

[15.0][MIG]business_requirement_sale:Migration to 15.0 #379

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
81dfb36
[REF] dotfiles: copier update to 1.20, with ruff and markdown fragments
dreispt Apr 27, 2024
4c61176
[REF] business_requirement: lint
dreispt Apr 27, 2024
01e6acb
[ADD] business_requirement_deliverable
Jun 2, 2016
56abf1b
reduced icon margin
elicoidal Jun 10, 2016
bcd8514
Improved the README
elicoidal Jun 10, 2016
00376e1
improved icon and README
elicoidal Jun 10, 2016
23fe392
add module name in the image route in rst
elicoidal Jun 16, 2016
3be19bb
[FIX] business_requirement_deliverable: Accept GitHub OCA collaborato…
Jun 27, 2016
58851b4
[FIX] business_requirement_deliverable: Runbot issues related with Tr…
Jul 1, 2016
903d20b
[FIX] business_requirement_deliverable: Rename import to avoid deprec…
Jul 1, 2016
35b4f5d
[IMP] business_requirement_deliverable: Increase the coverage percent…
Jul 4, 2016
2a28a6b
[FIX] business_requirement_deliverable: Remove dead code from views.
Jul 5, 2016
4ebbd6c
[FIX] business_requirement_deliverable: Issues when try save BR with …
Aug 18, 2016
3671283
Update README to correct runbot address + figure (#13)
elicoidal Aug 18, 2016
def9505
Improve the README and added functional workflow (#18)
elicoidal Sep 13, 2016
0614b23
[FIX] Saving of Resource lines when type is procurement
astirpe Oct 26, 2016
d98139b
[UPD] fix website url in manifest
sbidoul Mar 12, 2017
ee3f680
[ADD] Added security groups (Issue #91)
sudhir-serpentcs Mar 29, 2017
1ad2fa6
[ADD] Added security xml.
sudhir-serpentcs Mar 29, 2017
357ca53
[REM] Removed invisible attribute from currency field.
sudhir-serpentcs Mar 30, 2017
eae1c77
[FIX] Fixed travis
serpentcs-dev1 Mar 30, 2017
645dea5
[IMP] Changed Workflow.
serpentcs-dev1 Apr 1, 2017
981b025
[8.0][ADD] BI report for the business requirements (#86)
serpentcs-dev1 Apr 14, 2017
5d76538
[IMP][BR_deliverable] Added Smart Buttons and Search views for DL and…
sudhir-serpentcs Apr 19, 2017
cd149e9
[ADD][br_deliverable] move the estimation pricelist from the project …
Apr 27, 2017
d48b4e5
[8.0][IMP] Transfer the Gross Profit fields to the Deliverable lines …
sudhir-serpentcs Apr 28, 2017
a9db10b
[FIX] Fixed deliverable issues (#126)
serpentcs-dev1 May 4, 2017
ab6e93f
[FIX] [business_requirement_deliverable] Price fields naming (#131)
May 9, 2017
0650805
[FIX] business_requirement_deliverable (#135)
May 15, 2017
3fc41e2
[FIX] business_requirement_deliverable (#143)
May 25, 2017
6252ffe
[FIX][business_requirement_deliverable] don't change deliverable desc…
rubencabrera May 25, 2017
f01adb1
[IMP]Improved RL treeview (#159)
serpentcs-dev1 May 27, 2017
c8aa99f
[IMP]Improved currency_id position in BRDR (#168)
serpentcs-dev1 May 31, 2017
d84e572
[WIP] business_requirement_deliverable_report (#139)
Jun 2, 2017
d9fe548
[FIX] business_requirement_deliverable (#172)
Jun 9, 2017
a80c8a0
[IMP]-Improved assignee editable issue. (#173)
serpentcs-dev1 Jul 3, 2017
1865bb1
[FIX] [8.0] [i179] Added BR status in Deliverable and resources lines…
sudhir-serpentcs Jul 10, 2017
b2fe349
[IMP] [8.0-i190-BR001028-T22318] Added sequence field and handler opt…
sudhir-serpentcs Jul 24, 2017
2c9a107
[8.0][I-215][BR1030]-Set Default Values (#219)
YogeshMahera-SerpentCS Jul 24, 2017
917762b
[WIP][8.0][BR001024] - Added demo data for BR modules (#212)
serpentcs-dev1 Jul 27, 2017
b65f52c
init branch 9.0
elicoidal Jul 25, 2017
00d146d
moved to __manifest__.py
elicoidal Jul 25, 2017
956100c
[MIG]-Migrated Business Requirement Deliverable from 8.0 to 10.0. (#224)
sudhir-serpentcs Sep 13, 2017
167513c
[MIG]-Migrated Business requirement deliverable cost module from 8.0 …
YogeshMahera-SerpentCS Sep 30, 2017
29836a2
[PR-REF 225-229]-[IMP]-Improved demo data file and added group in dl …
YogeshMahera-SerpentCS Oct 2, 2017
64b2dfa
[10.0]-[MIG]-Business requirement deliverable crm from v8 to v10 (#229)
YogeshMahera-SerpentCS Oct 2, 2017
00ad701
[IMP] Improved Printouts Headers - #259 (#261)
YogeshMahera-SerpentCS Oct 25, 2017
aec1112
[MIG] migration business_requirement_resource_template categ_id from …
joycehuan Sep 3, 2018
3c05f9d
Added translation using Weblate (French)
Yakulu Dec 22, 2018
859e1d4
Translated using Weblate (French)
Yakulu Dec 22, 2018
efda361
[MIG] business_requirement_deliverable: Migration to 11.0
Jun 6, 2019
2f0421c
[imp] business_requirement_deliverable: Report and Portal
Tardo Jun 8, 2019
a06b0c6
[IMP] business_requirement_deliverable: Add Sections
Tardo Jun 10, 2019
43068df
[IMP] Followers propagation
Jun 10, 2019
2d255b1
[IMP] business_requirement_deliverable: Show dependencies in portal
Tardo Jun 12, 2019
57a1084
[IMP] Trace changes on total revenue
Jun 25, 2019
1932b14
Update translation files
oca-transbot Jun 29, 2019
281a283
[IMP] business_requirement_deliverable: Renaming + name_get:
pedrobaeza Jul 11, 2019
ff9257c
[FIX] business_requirement_deliverable: Fix URL + include Tecnativa a…
pedrobaeza Jul 13, 2019
cf0d413
[IMP] business_requirement_deliverable: Add demo data for BRD sections
pedrobaeza Jul 13, 2019
61aa71c
[MIG] business_requirement_deliverable: Migration to v12
Jul 25, 2019
db226f3
[IMP] business_requirement_deliverable: Portal Website Layout
Aug 16, 2019
7fad20d
[FIX] business_requirement_deliverable: Portal search by stakeholder
Tardo Aug 19, 2019
eb7e6a9
[MIG] business_requirement_sale: Migration to v12
Aug 6, 2019
905e00d
[MIG] business_requirement_sale: Add migration script + default seque…
pedrobaeza Aug 23, 2019
83c76e1
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Sep 10, 2019
a341cdb
[IMP] business_requirement_deliverable: Make tests resilient to compa…
pedrobaeza Sep 11, 2019
43a909e
[FIX] business_requirement_deliverable: Remove track visibility + use…
pedrobaeza Nov 13, 2019
882d8b4
[FIX] business_requirement_deliverable: Don't show prices at all
pedrobaeza Nov 19, 2019
b543a5a
[FIX] business_requirement_deliverable: flake8
pedrobaeza Nov 19, 2019
320984f
[IMP] business_requirement_deliverable: Auto-subscribe to BR followers
pedrobaeza Nov 19, 2019
3a8f7da
Translated using Weblate (Spanish)
chienandalu Nov 28, 2019
71ce158
[FIX] business_requirement_deliverable: Changed form view
Tardo Dec 9, 2019
d26140c
[IMP] business_requirement_deliverable: black, isort, prettier
Tardo Jan 27, 2020
142b7ca
[MIG] business_requirement_deliverable: Migration to 13.0
Tardo Jan 27, 2020
83a018e
[FIX] business_requirement_deliverable: Remove BR in stat buttons
sergio-teruel Mar 7, 2021
f440f10
[IMP] business_requirement: Change to logical style size of report
sergio-teruel Mar 10, 2021
d56910f
[FIX] business_requirement_deliverable: Count unpublished deliverable…
sergio-teruel Mar 7, 2021
5851341
[MIG] business_requirement_deliverable: Migration to 14.0
victoralmau Nov 11, 2021
3bdacf8
[UPD] Update business_requirement_deliverable.pot
oca-travis Dec 29, 2021
76aec80
[UPD] README.rst
OCA-git-bot Dec 29, 2021
06ab9fe
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 30, 2022
a1d86b8
[IMP] business_requirement_deliverable: Use _prepare_home_portal_valu…
victoralmau Sep 2, 2022
49771c1
[UPD] README.rst
OCA-git-bot Sep 5, 2022
b9ab4ba
business_requirement_deliverable 14.0.1.1.0
OCA-git-bot Sep 5, 2022
2de8920
[IMP]business_requirement_deliverable: black, isort, prettier
bizzappdev Mar 7, 2023
c07e0f8
[MIG] business_requirement_deliverable: Migration to 15.0
bizzappdev Mar 7, 2023
2578423
[ADD] business_requirement_deliverable_sale: New module in 11.0
Jun 7, 2019
4ef566d
[IMP] business_requirement_sale: revamp
pedrobaeza Jul 11, 2019
f74b7a8
[IMP] business_requirement:
pedrobaeza Jul 15, 2019
2ce1da8
[IMP] business_requirement_sale_timesheet: Add tests + icon + method …
pedrobaeza Jul 24, 2019
5dbbcf2
[MIG] business_requirement_sale: Migration to v12
Aug 6, 2019
d023430
[MIG] business_requirement_sale: Add migration script + default seque…
pedrobaeza Aug 23, 2019
1ecfd03
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Sep 10, 2019
9540099
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Sep 10, 2019
2cb606c
[MIG] business_requirement_sale: Do migration on post
pedrobaeza Sep 12, 2019
6674481
[IMP] business_requirement_sale: black, isort
Tardo Jan 27, 2020
67feb9a
[MIG] business_requirement_sale: Migration to 13.0
Tardo Jan 27, 2020
07db1f7
[FIX] business_requirement_sale: Proper view groups + fa icon
pedrobaeza Mar 19, 2021
e7534bc
[MIG] business_requirement_sale: Migration to 14.0
victoralmau Nov 12, 2021
6004be5
[UPD] Update business_requirement_sale.pot
oca-travis Dec 31, 2021
5852bfc
[UPD] README.rst
OCA-git-bot Dec 31, 2021
7a6306c
[IMP]business_requirement_sale: black, isort, prettier
bizzappdev Mar 4, 2023
3f5c441
[MIG] business_requirement_sale: Migration to 15.0
bizzappdev Mar 4, 2023
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
10 changes: 6 additions & 4 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.14.2
_commit: v1.20
_src_path: gh:oca/oca-addons-repo-template
additional_ruff_rules: []
ci: GitHub
dependency_installation_mode: PIP
convert_readme_fragments_to_markdown: true
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
Expand All @@ -11,6 +12,7 @@ github_enable_makepot: true
github_enable_stale_action: true
github_enforce_dev_status_compatibility: true
include_wkhtmltopdf: false
odoo_test_flavor: Both
odoo_version: 15.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
Expand All @@ -19,6 +21,6 @@ repo_description: 'TODO: add repo description.'
repo_name: business-requirement
repo_slug: business-requirement
repo_website: https://github.com/OCA/business-requirement
travis_apt_packages: []
travis_apt_sources: []
use_pyproject_toml: false
use_ruff: true

1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ globals:
odoo: readonly
openerp: readonly
owl: readonly
luxon: readonly

# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
Expand Down
12 changes: 0 additions & 12 deletions .flake8

This file was deleted.

13 changes: 12 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
Expand All @@ -25,6 +27,15 @@ jobs:
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always
env:
# Consider valid a PR that changes README fragments but doesn't
# change the README.rst file itself. It's not really a problem
# because the bot will update it anyway after merge. This way, we
# lower the barrier for functional contributors that want to fix the
# readme fragments, while still letting developers get README
# auto-generated (which also helps functionals when using runboat).
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
SKIP: oca-gen-addon-readme
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
for reqfile in requirements.txt test-requirements.txt ; do
if [ -f ${reqfile} ] ; then
Expand All @@ -36,10 +36,10 @@ jobs:
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest
name: test with OCB
makepot: "true"
services:
postgres:
image: postgres:9.6
Expand All @@ -50,7 +50,7 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install addons and dependencies
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
/.venv
/.pytest_cache
/.ruff_cache

# C extensions
*.so
Expand Down
13 changes: 0 additions & 13 deletions .isort.cfg

This file was deleted.

56 changes: 23 additions & 33 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ exclude: |
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# Don't bother non-technical authors with formatting issues in docs
readme/.*\.(rst|md)$|
# Ignore build and dist directories in addons
/build/|/dist/|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
Expand All @@ -33,27 +37,26 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
rev: dfba427ba03900b69e0a7f2c65890dc48921d36a
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website
args: ["https://github.com/OCA/business-requirement"]
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
- id: oca-gen-addon-readme
args:
- --expand-star-imports
- --ignore-init-module-imports
- --in-place
- --remove-all-unused-imports
- --remove-duplicate-keys
- --remove-unused-variables
- repo: https://github.com/psf/black
rev: 22.3.0
- --addons-dir=.
- --branch=15.0
- --org-name=OCA
- --repo-name=business-requirement
- --if-source-changed
- --keep-source-digest
- --convert-fragments-to-markdown
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.25
hooks:
- id: black
- id: oca-checks-odoo-module
- id: oca-checks-po
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.4.1
hooks:
Expand Down Expand Up @@ -95,19 +98,6 @@ repos:
- id: check-xml
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
hooks:
- id: pyupgrade
args: ["--keep-percent-format"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: isort except __init__.py
args:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
rev: 3.1.8
hooks:
Expand All @@ -118,14 +108,14 @@ repos:
- requirements.txt
- --header
- "# generated from manifests external_dependencies"
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: flake8
name: flake8
additional_dependencies: ["flake8-bugbear==21.9.2"]
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/OCA/pylint-odoo
rev: 7.0.2
rev: 7.0.5
hooks:
- id: pylint_odoo
name: pylint with optional checks
Expand Down
30 changes: 30 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

target-version = "py38"
fix = true

[lint]
extend-select = [
"B",
"C90",
"E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
]
exclude = ["setup/*"]

[format]
exclude = ["setup/*"]

[per-file-ignores]
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
"__manifest__.py" = ["B018"] # useless expression

[isort]
section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]

[isort.sections]
"odoo" = ["odoo"]
"odoo-addons" = ["odoo.addons"]

[mccabe]
max-complexity = 16
102 changes: 53 additions & 49 deletions business_requirement/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,42 @@ Business Requirement

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

A **Business requirement** (BR) is the expression of a business need by a customer
or internal project user.

A BR contains multiple different parts to explain the stakeholder need and how to
meet his/her requirements:

* **Customer Story**: this is the requirement as expressed by the customer
* **Scenario**: How/where the current solution can provide a suitable scenario to
answer the customer story
* **Gap**: For the uncovered part of the scenario, elaborate the gap/need for specific
developments/setup
* **Test case**: A set of conditions under which a tester will determine whether the application, software system or
one of its features is working as it was originally established for it to do.
* **Deliverables** to be provided to the customer/user
* **Resources** necessary to achieve the deliverables
* **Additional** information (approval, cost control etc.)

This set of modules was originally designed for the service/IT industry but the
requirement management design has been kept as generic as possible so that it can
apply to many other cases/industries (customer or internal projects):

* Construction
* Trading (New product development)
* Business Consultancy
* Web or IT development
* R&D projects
* etc.
A **Business requirement** (BR) is the expression of a business need by
a customer or internal project user.

A BR contains multiple different parts to explain the stakeholder need
and how to meet his/her requirements:

- **Customer Story**: this is the requirement as expressed by the
customer
- **Scenario**: How/where the current solution can provide a suitable
scenario to answer the customer story
- **Gap**: For the uncovered part of the scenario, elaborate the
gap/need for specific developments/setup
- **Test case**: A set of conditions under which a tester will
determine whether the application, software system or one of its
features is working as it was originally established for it to do.
- **Deliverables** to be provided to the customer/user
- **Resources** necessary to achieve the deliverables
- **Additional** information (approval, cost control etc.)

This set of modules was originally designed for the service/IT industry
but the requirement management design has been kept as generic as
possible so that it can apply to many other cases/industries (customer
or internal projects):

- Construction
- Trading (New product development)
- Business Consultancy
- Web or IT development
- R&D projects
- etc.

More information about business requirements management:

* `Wikipedia <https://en.wikipedia.org/wiki/Business_requirements>`_
* `Six Sigma <https://www.isixsigma.com/implementation/project-selection-tracking/business-requirements-document-high-level-review/>`_
- `Wikipedia <https://en.wikipedia.org/wiki/Business_requirements>`__
- `Six
Sigma <https://www.isixsigma.com/implementation/project-selection-tracking/business-requirements-document-high-level-review/>`__

**Table of contents**

Expand All @@ -80,39 +84,39 @@ Credits
=======

Authors
~~~~~~~
-------

* Elico Corp
* Tecnativa

Contributors
~~~~~~~~~~~~
------------

* Eric Caudal <eric.caudal@elico-corp.com>
* Alex Duan <alex.duan@elico-corp.com>
* Xie XiaoPeng <xie.xiaopeng@elico-corp.com>
* Victor M. Martin <victor.martin@elico-corp.com>
* Evan Li <li.aiwen@elico-corp.com>
* Reinhard Sheng <reinhard.sheng@elico-corp.com>
- Eric Caudal <eric.caudal@elico-corp.com>
- Alex Duan <alex.duan@elico-corp.com>
- Xie XiaoPeng <xie.xiaopeng@elico-corp.com>
- Victor M. Martin <victor.martin@elico-corp.com>
- Evan Li <li.aiwen@elico-corp.com>
- Reinhard Sheng <reinhard.sheng@elico-corp.com>
- `Tecnativa <https://www.tecnativa.com>`__:

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

* Alexandre Diaz
* Pedro M. Baeza
* Victor M.M. Torres
* Víctor Martínez
- Alexandre Diaz
- Pedro M. Baeza
- Victor M.M. Torres
- Víctor Martínez

Other credits
~~~~~~~~~~~~~

-------------

* Images:
- Images:

* `briefcase <https://fontawesome.com/icons/briefcase?style=solid>`__ from `FontAwesome <https://fontawesome.com/license>`__.
* `drafting-compass <https://fontawesome.com/icons/drafting-compass?style=solid>`__ from `FontAwesome <https://fontawesome.com/license>`__.
- `briefcase <https://fontawesome.com/icons/briefcase?style=solid>`__
from `FontAwesome <https://fontawesome.com/license>`__.
- `drafting-compass <https://fontawesome.com/icons/drafting-compass?style=solid>`__
from `FontAwesome <https://fontawesome.com/license>`__.

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand Down
2 changes: 2 additions & 0 deletions business_requirement/controllers/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from odoo.addons.portal.controllers.portal import (
CustomerPortal,
get_records_pager,
)
from odoo.addons.portal.controllers.portal import (
pager as portal_pager,
)

Expand Down
Loading
Loading