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

[17.0] [MIG] product_configurator_sale: Migration to 17.0 #142

Merged
Merged
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
74775b5
seperate sale order form wizard module added new sale module for same…
May 20, 2017
a175ba8
added condition for the model checking
May 20, 2017
26f68cf
remove _wizard module and added defualt wizard to base module, creati…
May 22, 2017
6269e65
[FIX] Small fixes & flake8
May 24, 2017
840ba70
General fixes and flake8
PCatinean May 25, 2017
9818352
Overriding product search to prevent configurable products usage in s…
PCatinean May 25, 2017
1eb486f
Moved extra_lines_values to so wizard
PCatinean May 26, 2017
ce2a4e1
Added subconfigurable products to configuration wizard
PCatinean Jun 11, 2017
2a4f36f
General fixes and improvements
PCatinean Jun 26, 2017
a1c49c2
Removed console.log, renamed __openerp__.py files to __manifest__.py
PCatinean Feb 20, 2018
0b1a9dd
Bumped version to 11.0 and removed all traces of coding: utf-8 from p…
PCatinean May 14, 2018
7bb0064
[MIG] Kept application only for base and website + fixed _get_price_e…
PCatinean May 14, 2018
e93bd74
[FIX] Using no-save deepcopy of event to replicate same functionality…
PCatinean May 15, 2018
3236307
[FIX][T1902]product_configurator_sale, product_configurator_purchase …
bizzappdev Sep 11, 2018
dfc691a
Revert "[FIX][T1902]product_configurator_sale, product_configurator_p…
bizzappdev Sep 11, 2018
703c929
[FIX][T1902]product_configurator_sale, product_configurator_purchase …
bizzappdev Sep 11, 2018
b7ee5ee
[FIX] fix flake8 error
bizzappdev Sep 11, 2018
6b811a7
[IMP][T1902]product_configurator_sale, product_configurator_purchase …
bizzappdev Sep 24, 2018
582f679
[FIX][T1902][new(039)]product_configurator,product_configurator_purch…
bizzappdev Sep 25, 2018
5bb1ff8
[FIX][T1902]product_configurator,product_configurator_purchase,produc…
bizzappdev Sep 25, 2018
f0c153a
[FIX][T1902]product_configurator,product_configurator_sale,product_co…
bizzappdev Sep 25, 2018
54a6a01
[FIX][T1902] : fix flake8 error
bizzappdev Sep 25, 2018
492816d
[FIX][T1902]product_configurator : fix typing error, change method na…
bizzappdev Sep 25, 2018
31cab4c
[WIP] Working version of sales_mrp glue module, no tests
PCatinean Sep 26, 2018
0ea3fa0
Added context values to reconfigure method to fix reset missing values
PCatinean Sep 27, 2018
7b6b446
[FIX][T1902]product_configurator_sale : remove extra view
bizzappdev Sep 27, 2018
38bd1d3
[FIX][T1902]product_configurator_sale : add space
bizzappdev Sep 28, 2018
538e083
Added module description & removing invisible attribute of attr val l…
PCatinean Oct 19, 2018
66cbcb4
Using onchange to get values for new/edited sale order lines
PCatinean Feb 1, 2019
4e0986c
[FIX] Updating initial line vals with missing fields dicts
PCatinean Feb 4, 2019
c69d028
[FIX][T-00508]product_configurator_sale: call onchange after creating…
bizzappdev Apr 9, 2019
21c3cd4
[FIX]use onchange() instead of calling all onchane methods explicitly
bizzappdev Apr 9, 2019
a14b361
[ADD][#T00494]website_product_configurator:solved flake8 and pylints
May 27, 2019
49be47a
[ADD][#IMP]product_configurator:improve the code and write test case …
Jun 6, 2019
9934591
[ADD][#IMP]product_configurator:improve the code and write test case …
Jun 6, 2019
f482013
[FIX]fix action_config_done in other modules, now check for incomplet…
bizzappdev Jun 6, 2019
71afd45
[ADD][#T00513] product_configurator_sale, product_configurator, produ…
Jun 7, 2019
669d439
[FIX][T-00513] product_configurator: add new changes and fix some issue
bizzappdev Jun 19, 2019
09cf6fe
[IMP][T-00513] product_configurator: add changes for test-case
bizzappdev Jun 24, 2019
584fb8b
[IMP][T-00513] product_configurator: add changes for test-case
bizzappdev Jun 24, 2019
4b0ac59
[FIX][T-00517]fix default filter,add desciption, allow to keep value_…
bizzappdev Jun 26, 2019
7b553f9
[FIX]add onchange and remove related
bizzappdev Jun 26, 2019
42791d6
[FIX]remove onchange and add readonly in config_ok on sol/pol/ml
bizzappdev Jun 27, 2019
f015914
[WIP][00513]product_configurator : write testcase
Jun 28, 2019
1bc5f47
[FIX][T-00513] fix issue test-case issue in product_configurator_sale…
bizzappdev Jun 29, 2019
4a38bad
[IMP][T-00513] demo file remove dealer and land field
bizzappdev Jun 29, 2019
ad8edb2
[FIX]fix pylint error
bizzappdev Jul 2, 2019
39f6b66
[FIX]change version in manifest file
bizzappdev Jul 26, 2019
5f3b4c1
[IMP]Add installable False to module from version 12
bizzappdev Dec 26, 2019
531a5af
[IMP][T3199]migrate product_configurator_sale to v13 from v12
bizzappdev Jan 2, 2020
e77bf97
[IMP][T3199]set sol name from meko template
bizzappdev Jan 2, 2020
ed6292f
[IMP][T3199]use helper methods to call onchage
bizzappdev Jan 4, 2020
6ff6c1e
[IMP][T3199] make custom_value_ids related to config session instead …
bizzappdev Jan 4, 2020
f10a5c4
[FIX][3199]fix field name custom_value_ids
bizzappdev Jan 6, 2020
1eb9ade
[FIX][3199]fix comodel_name in name custom_value_ids
bizzappdev Jan 6, 2020
33f546c
[FIX]fix flake8
bizzappdev Jan 28, 2020
27e1cfe
[FIX]fix custom value ids
bizzappdev Nov 4, 2020
341f14a
[IMP] pre-commit
Chandresh-SerpentCS Apr 1, 2021
fc220d1
[MIG] Modified the code as per v14.
Chandresh-OSI Apr 7, 2021
845ea03
[IMP] product_configurator_sale: add OCA readme
dreispt Apr 27, 2021
f9917ef
[FIX] product_configurator_sale: fix log warnings on install
dreispt May 4, 2021
2849721
Add pcatinean as maintainer for all modules
PCatinean Jun 15, 2021
605f89d
[FIX] product_configurator_sale: avoid other module inheritance issues
dreispt Sep 23, 2021
263c2f5
[IMP] product_configurator_sale (Add customer lead)
patrickrwilson Oct 19, 2021
77b76f7
[WIP][T-01839]product_configurator: remove price calculation from ses…
pledrateam Oct 25, 2021
2043268
[REF] *: fix PCatinean maintainer
dreispt Dec 10, 2021
c521d06
[14.0][FIX] product_configurator_sale (Custom Values on Reconfigure)
patrickrwilson Feb 8, 2022
5c497f7
[14.0] [FIX] Fix context erasement
BenjaHe Apr 25, 2023
9ccc464
[MIG] product_configurator_sale: Migration to 16.0
dannyadair Jun 11, 2023
8be89c2
[FIX] product_configurator_sale: Compute price of all lines
SirAionTech Jan 11, 2024
061486e
[REF] product_configurator_sale: Version
SirAionTech Jan 11, 2024
6e30827
[FIX] product_configurator_sale: Missing dependency
SirAionTech Jan 11, 2024
9b467c6
[IMP] product_configurator_sale: Show custom values in sale line
SirAionTech Jan 18, 2024
0be65df
[UPD] Update product_configurator_sale.pot
Feb 22, 2024
623344e
[BOT] post-merge updates
OCA-git-bot Feb 22, 2024
5f9e242
Added translation using Weblate (Italian)
mymage Mar 12, 2024
c784a50
Translated using Weblate (Italian)
mymage Mar 12, 2024
234dc12
Translated using Weblate (Italian)
mymage May 15, 2024
7e0afad
Added translation using Weblate (Portuguese)
peterromao Sep 15, 2024
8c865d1
Translated using Weblate (Portuguese)
peterromao Sep 15, 2024
3c52ef4
[FIX] product_configurator_sale: Price unit comes from the session
SirAionTech Mar 11, 2024
fa981e2
[BOT] post-merge updates
OCA-git-bot Oct 23, 2024
6e3c825
Translated using Weblate (Italian)
mymage Oct 26, 2024
e1a1381
[IMP] product_configurator_sale: pre-commit auto fixes
bizzappdev Nov 8, 2024
b7b22e6
[MIG][17.0] product_configurator_sale:Migration to 17.0
bizzappdev Nov 10, 2024
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
Prev Previous commit
Next Next commit
[FIX] Small fixes & flake8
  • Loading branch information
rsh-pledra authored and bizzappdev committed Nov 27, 2024
commit 6269e6559be09d1a1e61bde1edb4846ca236a779
3 changes: 2 additions & 1 deletion product_configurator_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-

from . import models
from . import wizard
from . import wizard
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7 changes: 3 additions & 4 deletions product_configurator_sale/wizard/product_configurator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-
from openerp.osv import orm
from openerp.addons.base.ir.ir_model import _get_fields_type

from openerp import models, fields, api, _
from openerp.exceptions import Warning, ValidationError
from openerp.exceptions import ValidationError


class FreeSelection(fields.Selection):
@@ -23,7 +21,8 @@ class ProductConfigurator(models.TransientModel):
@api.multi
def action_config_done(self):
"""Parse values and execute final code before closing the wizard"""
if self._context.get('active_model', '') not in ('sale.order', 'sale.order.line'):
if self._context.get('active_model', '') not in (
'sale.order', 'sale.order.line'):
return super(ProductConfigurator, self).action_config_done()
custom_vals = {
l.attribute_id.id: