Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

10.0 add product configurator to purchase order #42

Open
wants to merge 8 commits into
base: 10.0
Choose a base branch
from

Conversation

elemire
Copy link

@elemire elemire commented Mar 23, 2017

Add the same functions as Sale Order to Purchase Order.
Add new option to use a product variant if exist rather than creating a new variant each time.

matt454357 and others added 8 commits April 21, 2017 13:58
Adding configured sales order lines fails when sale_margin module is installed.
The sale_margin module requires the sales order line to include product_uom:
odoo/addons/sale_margin/models/sale_order.py
Adding configured sales order lines fails when sale_margin module is installed.
The sale_margin module requires the sales order line to include product_uom:
odoo/addons/sale_margin/models/sale_order.py
@elemire elemire force-pushed the 10.0-add-product-configurator-purchase branch from 9e11791 to 5d81995 Compare April 21, 2017 18:08
@codecov-io
Copy link

codecov-io commented Apr 21, 2017

Codecov Report

Merging #42 into 10.0 will decrease coverage by 0.81%.
The diff coverage is 22.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##             10.0      #42      +/-   ##
==========================================
- Coverage   59.13%   58.31%   -0.82%     
==========================================
  Files          14       15       +1     
  Lines        1358     1377      +19     
==========================================
  Hits          803      803              
- Misses        555      574      +19
Impacted Files Coverage Δ
product_configurator/models/product.py 74.7% <100%> (+0.07%) ⬆️
product_configurator_purchase/models/purchase.py 58.33% <58.33%> (ø)
...configurator_wizard/wizard/product_configurator.py 25.48% <6.45%> (-0.93%) ⬇️
website_product_configurator/controllers/main.py 73.82% <0%> (+0.17%) ⬆️
product_configurator/models/product_config.py 77.17% <0%> (+0.85%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3901781...5d81995. Read the comment docs.

@PCatinean
Copy link
Contributor

@elemire I know it's been ages since you submitted this and I just kept postponing the reply.

Thanks for submitting the PR it's really good to extend the configuration functionality to other modules. With this submitted I realized making the default wizard bound to the sale module was a mistake.

I have a refactoring in progress that abstracts this and if you are still interested in rebasing your code then I will gladly review the PR.

Sorry for the late reply once more and thanks for the contribution!

@elemire
Copy link
Author

elemire commented May 31, 2017 via email

@richard-willdooit
Copy link
Contributor

@elemire @PCatinean
I was, likewise, going to give this a review after we got a few of the other bits and pieces sorted.

@PCatinean
Copy link
Contributor

@elemire @richard-willdooit please wait for the refactored version before extending the configurator to other modules. I've managed to separate the logic completely and have a new model inherit the base one so custom fields and logic can be applied to each particular case. Also base logic to be applied to all configurators can be done with just _inherit. I think it's much cleaner this way and a better approach

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants