-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Migration of sale_line_quantity_properties_based #146
Migration of sale_line_quantity_properties_based #146
Conversation
0769b16
to
20f31ca
Compare
} | ||
try: | ||
exec self.product_id.quantity_formula_id.\ | ||
formula_text in localdict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use safe_eval
(from openerp.tools.safe_eval
) in exec
mode. Not perfect, but limits the code injection risks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gurneyalex, done at tafaRU@bfe4905
Sorry to bother you but #167 needs to be merged asap so that I can unblock this one, #147 and #145
Thanks!
33724ef
to
c45977b
Compare
cb30149
to
d8ca31c
Compare
d8ca31c
to
742e860
Compare
742e860
to
2495847
Compare
10 [pcs of] (4 m x 0.5 m) shelves = 20 m² of wood | ||
|
||
In order to have this function working, it is necessary to have the user | ||
proceeding as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think s/proceeding/proceed/
(but I'm French...)
@gurneyalex, I addressed your last remarks and the PR now should be ready to be merged. |
@@ -35,6 +35,8 @@ env: | |||
- TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="sale_sourced_by_line_sale_transport_multi_address" LINT_CHECK="0" | |||
- TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="sale_properties_dynamic_fields" LINT_CHECK="0" | |||
- TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="sale_properties_dynamic_fields" LINT_CHECK="0" | |||
- TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="sale__line_quantity_properties_based" LINT_CHECK="0" | |||
- TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="sale__line_quantity_properties_based" LINT_CHECK="0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many underscores
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think sale_properties_dynamic_fields
and sale_line_quantity_properties_based
can be tested together if possible
9efef72
to
212a23e
Compare
@eLBati, done, thanks! |
212a23e
to
2f93741
Compare
2f93741
to
411769c
Compare
@tafaRU please check tests |
Maybe a rebase can help, after #266 |
411769c
to
e9c50fa
Compare
@eLBati, just rebased, let's see. |
@eLBati travis is still red, further investigation is needed then. |
@tafaRU In .travis.yml, why do we still test with INCLUDE/EXCLUDE? @pedrobaeza suggested on removing INCLUDE/EXCLUDE as it was designed for older testing versions in OCA and to adapt our travis for new version test. |
@atchuthan, thanks for your help Could you please give me some reference about this?
|
…ame way done for v7.0
To do this I apply the following changes: - depends from sale_properties_dynamic_fields instead of sale_properties_easy_creation - onchange (v8) only depends by property_ids - get empty properties and get empty properties dynamic fields in on_change (v7)
…me feedback, rather than silently doing nothing.
6f7e19f
to
dcab80a
Compare
👍 |
You finally made it! I will prefer as you know some commit squashing and module renaming, but after all the work, I approve this. |
This PR depends on #147 which also depends on #167 (both merged)