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

[ADD] business_requirement #2

Merged
merged 16 commits into from Jun 22, 2016

Conversation

victormmtorres
Copy link
Collaborator

@victormmtorres victormmtorres commented Jun 2, 2016

new file: business_requirement/README.rst
new file: business_requirement/init.py
new file: business_requirement/openerp.py
new file: business_requirement/data/business_data.xml
new file: business_requirement/models/init.py
new file: business_requirement/models/business.py
new file: business_requirement/security/ir.model.access.csv
new file: business_requirement/security/security.xml
new file: business_requirement/static/description/icon.png
new file: business_requirement/static/img/bus_req.png
new file: business_requirement/static/img/bus_req_alias.png
new file: business_requirement/static/img/bus_req_approved.png
new file: business_requirement/static/img/bus_req_cancel.png
new file: business_requirement/static/img/bus_req_confirmed.png
new file: business_requirement/static/img/bus_req_cust_story.png
new file: business_requirement/static/img/bus_req_done.png
new file: business_requirement/static/img/bus_req_drop.png
new file: business_requirement/static/img/bus_req_module_diag.png
new file: business_requirement/static/img/bus_req_tags.png
new file: business_requirement/static/img/bus_req_tags2.png
new file: business_requirement/static/img/bus_req_tree.png
new file: business_requirement/static/img/module_diag.graphml
new file: business_requirement/tests/init.py
new file: business_requirement/tests/test_br.py
new file: business_requirement/views/business_view.xml
new file: business_requirement/wizards/init.py
new file: business_requirement/wizards/mail_compose_message.py

def default_get(self, cr, uid, fields, context=None):
res = super(MailComposeMessage, self).default_get(cr, uid,
fields, context=context)
if context.get('default_model') == 'business.requirement' and \
context.get('default_res_id'):
br_rec = self.pool.get(
context.get('default_model')
).browse(cr, uid, context['default_res_id'])
res['subject'] = 'Re: %s-%s' % (br_rec.name, br_rec.description)
return res

   

@victormmtorres
Copy link
Collaborator Author

This is the new PR which replaces the old one: OCA/project#127

@elicoidal
Copy link
Contributor

👍
@pedrobaeza I cannot add the labels in repo: any idea?

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 2, 2016

@victormartinelicocorp We should merge #1 and then rebase this. Can you have a look there?

Also, no need to provide a list of the changed files, thatis the diff already.
Instead, provide some insight on what changed. In this case, your second comment is the relevant one.

@victormmtorres
Copy link
Collaborator Author

@dreispt Understood that. I will do the same for the other PR #3 and wait for the next ones.
Thanks!

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 2, 2016

#1 merged, @victormartinelicocorp you can fetch and rebase now.

@elicoidal
Copy link
Contributor

Thanks!

	new file:   business_requirement/README.rst
	new file:   business_requirement/__init__.py
	new file:   business_requirement/__openerp__.py
	new file:   business_requirement/data/business_data.xml
	new file:   business_requirement/models/__init__.py
	new file:   business_requirement/models/business.py
	new file:   business_requirement/security/ir.model.access.csv
	new file:   business_requirement/security/security.xml
	new file:   business_requirement/static/description/icon.png
	new file:   business_requirement/static/img/bus_req.png
	new file:   business_requirement/static/img/bus_req_alias.png
	new file:   business_requirement/static/img/bus_req_approved.png
	new file:   business_requirement/static/img/bus_req_cancel.png
	new file:   business_requirement/static/img/bus_req_confirmed.png
	new file:   business_requirement/static/img/bus_req_cust_story.png
	new file:   business_requirement/static/img/bus_req_done.png
	new file:   business_requirement/static/img/bus_req_drop.png
	new file:   business_requirement/static/img/bus_req_module_diag.png
	new file:   business_requirement/static/img/bus_req_tags.png
	new file:   business_requirement/static/img/bus_req_tags2.png
	new file:   business_requirement/static/img/bus_req_tree.png
	new file:   business_requirement/static/img/module_diag.graphml
	new file:   business_requirement/tests/__init__.py
	new file:   business_requirement/tests/test_br.py
	new file:   business_requirement/views/business_view.xml
	new file:   business_requirement/wizards/__init__.py
	new file:   business_requirement/wizards/mail_compose_message.py
@victormmtorres
Copy link
Collaborator Author

@elicoidal @dreispt Done. Thanks!

@coveralls
Copy link

coveralls commented Jun 3, 2016

Coverage Status

Coverage remained the same at 60.104% when pulling da0ea5b on victormartinelicocorp:0_business_requirement_base into af25af1 on OCA:8.0.

If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
project/issues/new?body=module:%20
business_requirement%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be the line generating the rst error. Remove the line break.
See http://www.silas.net.br/tech/devel/rst.html

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

	modified:   business_requirement/README.rst
	modified:   business_requirement/models/business.py
@coveralls
Copy link

coveralls commented Jun 7, 2016

Coverage Status

Coverage remained the same at 60.104% when pulling 96e15f9 on victormartinelicocorp:0_business_requirement_base into af25af1 on OCA:8.0.

@elicoidal
Copy link
Contributor

@dreispt Thanks! Travis is green :)
@pedrobaeza @jbeficent Could we get a review and work on merging this PR.
It has been a long time now and we are eager to propose a first stable version.


The set comprises of multiple modules that can be used independently or not:

=========================================== ====================================
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this a description for the README.md of the repository, not this module, and it's even automatically done by the module listing bot.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review :)
I will move that part to the README.md

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pedrobaeza
Copy link
Member

Crop the icon to get the full size instead of keeping a transparent border.

result = super(MailComposeMessage, self).default_get(
cr, uid, fields, context=context)

# v6.1 compatibility mode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't go here in this module. If you have found a problem in the composition wizard, put a PR/issue against Odoo/OCB or make a specific patch module that deals with it, but don't insert this in a module about "Business requirements"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pedrobaeza Thanks for the advice: we will recheck the methods about message (@duanyp1991 @seb-elico)

@JordiBForgeFlow
Copy link
Sponsor Member

@victormartinelicocorp @elicoidal When using the module I find it missing a field 'Requested by'.
As I'm conducting interviews in gap analysis sessions with end users during this days, I am the one capturing the requirements, and hence I am the one logged as 'created_by'. But I want to reflect that I am creating a requirement that has been requested by another user.

IMHO the system should default me as 'Requested by', but I should have the possibility to change it to someone else. Also, the requested by should become a follower of the business requirement when he's assigned, so that he's on the loop of the updates.

@JordiBForgeFlow
Copy link
Sponsor Member

I'm playing with the BI views in v9 right now. Also added a couple of
modules in a separate repo to make use of requirements pivot analysis by
area and artifact https://github.com/Eficent/service_management

On Fri, Jun 17, 2016 at 3:22 AM, Eric Caudal notifications@github.com
wrote:

That is the main problem with m2m tags: reporting is cumbersome. One way
we use is to create a text field out of it ("tag1, tag2, tag3") which
allows display and filtering.
BTW: we plan a BI report specific for the BR (BR=>BRD=>BRL with several
dimensions and measures)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHU_ViuJ8KcBYj0fMNqG1jgVEeJdRxVEks5qMfbkgaJpZM4IsVG0
.

Jordi Ballester Alomar
CEO & Founder | Eficent
(+34) 629530707 | jordi.ballester@eficent.com | http://www.eficent.com
Twitter: https://twitter.com/jbeficent_erp | Linkedin:
https://www.linkedin.com/in/jordiballesteralomar

If confirmed the user can't modify the first tab (story/scenario/gap)
but can still change the second one (Other information).
If approved, the user can't change the first and second tab.
	modified:   business_requirement/models/business.py
@coveralls
Copy link

coveralls commented Jun 20, 2016

Coverage Status

Coverage remained the same at 87.097% when pulling 8c858ee on victormartinelicocorp:0_business_requirement_base into af25af1 on OCA:8.0.

to be simplify the name to "Categories".
Change business requirement "description" to full screen wide.
	modified:   business_requirement/models/business.py
	modified:   business_requirement/views/business_view.xml
@victormmtorres
Copy link
Collaborator Author

@elicoidal

@coveralls
Copy link

coveralls commented Jun 20, 2016

Coverage Status

Coverage remained the same at 87.097% when pulling 4bfb8ab on victormartinelicocorp:0_business_requirement_base into af25af1 on OCA:8.0.

added the module in the image path in README for business_requirement base module.
@coveralls
Copy link

coveralls commented Jun 21, 2016

Coverage Status

Coverage remained the same at 87.097% when pulling cda7844 on victormartinelicocorp:0_business_requirement_base into af25af1 on OCA:8.0.

…ml widget on the view.

Remove sequence field on the Tree view. Next version will use sequence for the Kanban view.
	modified:   business_requirement/models/business.py
	modified:   business_requirement/views/business_view.xml
@victormmtorres
Copy link
Collaborator Author

@elicoidal I modified the comments left. Could you have a check?

@coveralls
Copy link

coveralls commented Jun 21, 2016

Coverage Status

Coverage remained the same at 87.097% when pulling fb120a1 on victormartinelicocorp:0_business_requirement_base into af25af1 on OCA:8.0.

@elicoidal
Copy link
Contributor

👍
@pedrobaeza @dreispt would you be so kind to help us get an extra +1 and merge this PR?

states={'draft': [('readonly', False)]}
)
state = fields.Selection(
selection="_get_states",
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future work: use Stages instead of states. The base_stage_state (still a WIP) could be a quick and easy way to do that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will change it now (s/state/stage) in order to avoid migration later.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elicoidal @victormartinelicocorp we can keep it like this since the module is still in WIP. The migration is still needed even if we change the name now. :)

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 21, 2016

👍 I pointed out some nitpicks, but nothing worth blocking a merge.

PS: As an experiment, I enabled CodeReviewHub for this repo. Sorry for any noise.

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 21, 2016

:shipit:

@elicoidal
Copy link
Contributor

@dreispt Thanks for the time to review and your advices! This is really appreciated.
We will fix simple details and merge the PR.

…w guideline

and remove not necessary isolated functions.
	modified:   business_requirement/models/business.py
@victormmtorres
Copy link
Collaborator Author

@elicoidal @dreispt

@coveralls
Copy link

coveralls commented Jun 22, 2016

Coverage Status

Coverage remained the same at 86.813% when pulling ba7a4f4 on victormartinelicocorp:0_business_requirement_base into af25af1 on OCA:8.0.

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 22, 2016

👍

@elicoidal elicoidal merged commit 42a9397 into OCA:8.0 Jun 22, 2016
@elicoidal
Copy link
Contributor

@dreispt @jbeficent @pedrobaeza Thanks for your help and review!
We will focus now on the deliverable part :)

@JordiBForgeFlow
Copy link
Sponsor Member

@elicoidal Thanks to you and @victormartinelicocorp! It is a great contribution.

yvaucher pushed a commit that referenced this pull request Jul 5, 2016
elicoidal added a commit that referenced this pull request Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants