-
-
Notifications
You must be signed in to change notification settings - Fork 322
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] Add printing_auto_base + stock_picking_auto_print #310
Conversation
0e4357b
to
0202c43
Compare
4f0bba8
to
58bb18d
Compare
@mt-software-de I finished the refactor. Looks better now. |
58bb18d
to
9f047d5
Compare
9f047d5
to
4ba3297
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.
The attachment field must be changed in the view and test to attachment_domain :-)
55daad4
to
9d3afab
Compare
Merged |
629569b
to
fdb2477
Compare
Changes:
|
Could you let me know when your are done with your changes? |
e0be80e
to
c14ee68
Compare
69e710e
to
c9f1e5e
Compare
rebased |
@jbaudoux pls split commits by module 🙏 |
c9f1e5e
to
5265abc
Compare
@simahawk done |
help="Give a domain that must be valid for printing this", | ||
) | ||
record_change = fields.Char( | ||
"Record change", help="Select on which document the report must be executed" |
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.
This help msg must be improved, is not clear what it's used for and how it should be valued.
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.
done
@@ -0,0 +1,3 @@ | |||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
access_manager,stock_picking_auto_print - manager,printing_auto_base.model_printing_auto,stock.group_stock_manager,1,1,1,1 |
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.
Don't we need a record rule so that they can see auto-printing records only for stock models?
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.
Done. I had to add a model field to bound the config to it
|
||
|
||
@mock.patch.object(PrintingPrinter, "print_document", print_document) | ||
@mock.patch.object(logging.Logger, "exception", exception) |
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.
why do you mock the exception? If you expect an exception to be logged it should be tested w/ assertLogs
b63537c
to
b731511
Compare
011c517
to
9cc9676
Compare
This module should maybe depend on OCA/web#2614 |
fd51a2a
to
6b29ae7
Compare
Select on printing.auto to log or raise errors
Fix same record printed multiple times
2b6d127
to
cc45b96
Compare
And add security rule
cc45b96
to
f6623df
Compare
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
When a picking is done, automatically trigger the printing of some documents.
This can be used to print a delivery slip (report) or labels received from the carrier (attachment).
cc @sebalix @mt-software-de