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

8.0 remove Purchase Requisition creation wizard #73

Merged
merged 9 commits into from
Dec 2, 2014

Conversation

yvaucher
Copy link
Member

  • Remove Button on Logistics Requisition Source to let those 2 options to create a Purchase Requisition:
    1. Standard way:
      view: Logistics Requisition Line Form
      action: Button Create Purchase Requisition on Form
      Aim: Create a Single Purchase requisition for all Sources in Tender
    2. Advanced way:
      view: LR Source List
      action: More -> Create Purchase Requisition on Form
      Aim: Select precisely which Source you want in same Purchase Requisition
  • Remove completely the code of the former Purchase Requisition Wizard

@yvaucher yvaucher changed the title 8.0 remove po req create wiz 8.0 remove Purchase Requisition creation wizard Nov 26, 2014
@yvaucher yvaucher force-pushed the 8.0-remove-po-req-create-wiz branch 4 times, most recently from e684a12 to f249c3d Compare November 26, 2014 16:04
@coveralls
Copy link

Coverage Status

Coverage increased (+11.8%) when pulling f249c3d on yvaucher:8.0-remove-po-req-create-wiz into 0335685 on OCA:8.0.

@coveralls
Copy link

Coverage Status

Coverage increased (+11.8%) when pulling 0cefea3 on yvaucher:8.0-remove-po-req-create-wiz into 0335685 on OCA:8.0.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.14%) when pulling f1ab38e on yvaucher:8.0-remove-po-req-create-wiz into 0335685 on OCA:8.0.

@foutoucour
Copy link

👍

procurement_method = 'procurement' contained
in the Line
"""
source_lines = self.source_ids
if not source_lines:
sources = self.mapped('source_ids')
Copy link
Member

Choose a reason for hiding this comment

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

why do you use self.mapped('source_ids') instead of self.source_ids? I would understand if self could be a recordset with many records but here it is decorated with @api.one.

Copy link
Member Author

Choose a reason for hiding this comment

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

In fact it should be a @api.multi as we want only one po_requisition at the end.

@yvaucher
Copy link
Member Author

@guewen Thanks for the review. Fixed.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.16%) when pulling 01c984e on yvaucher:8.0-remove-po-req-create-wiz into 0335685 on OCA:8.0.

'please create one.'))
pricelist = self.requisition_id.pricelist_id or None
source_lines._action_create_po_requisition(pricelist=pricelist)
_('No sourcing line with a Tender procurement '
Copy link
Member

Choose a reason for hiding this comment

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

Still a Tender?

Copy link
Member Author

Choose a reason for hiding this comment

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

Still as it is the term in procurement_method Selection field

Copy link
Member

Choose a reason for hiding this comment

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

Weird but okay!

@guewen
Copy link
Member

guewen commented Nov 27, 2014

👍

1 similar comment
@jgrandguillaume
Copy link
Member

👍

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.16%) when pulling 6033124 on yvaucher:8.0-remove-po-req-create-wiz into 721b681 on OCA:8.0.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.18%) when pulling e658bc2 on yvaucher:8.0-remove-po-req-create-wiz into 48a7b12 on OCA:8.0.

@nbessi
Copy link

nbessi commented Dec 2, 2014

👍

nbessi added a commit that referenced this pull request Dec 2, 2014
8.0 remove Purchase Requisition creation wizard
@nbessi nbessi merged commit 4f30b81 into OCA:8.0 Dec 2, 2014
@yvaucher yvaucher deleted the 8.0-remove-po-req-create-wiz branch December 2, 2014 08:51
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

6 participants