-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
[14.0] [IMP] sale_input_barcode: scan directly on sale.order #669
Conversation
Hi @bealdav, |
a3fc16d
to
02ddda4
Compare
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.
Hello, thank you for the PR! Looks good overall, just a couple of minor fixes IMO
sale_input_barcode/readme/USAGE.rst
Outdated
If a product is already inside the sale order lines, | ||
the quantity will be updated. |
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.
chore: Update documentation
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 added the documentation.Let me know if it is clear and understandable.
<xpath expr="//div[@id='no_edit_order']" position="inside"> | ||
<div class="o_setting_left_pane"> | ||
<field name="sale_sol_creation_settings" /> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label for="sale_sol_creation_settings" /> | ||
<div class="text-muted"> | ||
Instead of creating a new sale order line it increases the quantity for each barcode scan | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
</xpath> |
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.
chore: could you fix the formatting here, please?
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 have improved the formatting. Let me know.
|
||
_inherit = "res.config.settings" | ||
|
||
sale_sol_creation_settings = fields.Boolean( |
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.
nitpick(non-blocking): the name of this setting does not clearly reflect what the setting does IMO.
what about something like: sale_barcode_update_existing_line
?
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.
ok, I've changed the name of the variable as you suggested.
1cf4e2b
to
d1bef11
Compare
6a04e00
to
b546cda
Compare
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.
Code review, LGTM
@@ -1,2 +1,3 @@ | |||
from . import product_barcode_line_mixin | |||
from . import sale_order | |||
from . import res_config_settings |
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.
nitpick (non-blocking): unless there are reasons to do otherwise, prefer listing the files in alphabetical order.
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 can suggest to add isort (and black) to your environment for that.
Note this is not an OCA requirement.
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 ordered the files in alphabetical order like you suggested.
b546cda
to
b0ed460
Compare
b0ed460
to
a52bc2c
Compare
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.
Functional is ok!
@bealdav @rousseldenis do you think it's good for merge? Thanks!
This PR has the |
@bealdav @OCA/logistics-maintainers when possible, thanks 🙏 |
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.
Can you drop generated files from IMP/FIX commits?
You can use export SKIP=oca-gen-addon-readme
96cb892
to
743b095
Compare
743b095
to
9680ac5
Compare
/ocabot merge minor |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 99d6f5b. Thanks a lot for contributing to OCA. ❤️ |
Superseeds #611