[16.0][IMP] sign_oca: enable signing from portal#86
Conversation
|
Hi @etobella, |
f189ce0 to
42ada70
Compare
|
dnplkndll |
flotho
left a comment
There was a problem hiding this comment.
thanks
tested on runboat,
LGTM
xaviedoanhduy
left a comment
There was a problem hiding this comment.
LGTM about functionality and code review
|
This PR has the |
932a4d7 to
ee91ea1
Compare
victoralmau
left a comment
There was a problem hiding this comment.
My other comments are pending: #86 (comment) + #86 (comment) + #86 (comment) + #86 (comment)
There are mock tests and tour tests already there, you can review! Any other ones that could be related to new work will be handled according to what we decide whether remving or keeping to resume work. I expect to stop at this point as the commit is getting large and review will never stop, so I tend to remove the lement for upcomming contribution. Thanks ;) could you guide me if I add my tour how can user open a page and return back to open another one like mine. |
Please comment on each thing in the corresponding conversation, if you want to. You can also skip my review comments, of course. |
ee91ea1 to
065f4e5
Compare
|
@victoralmau which is the other default one? as in the method I set the value by the way https://github.com/odoo/odoo/blob/18.0/addons/portal/controllers/portal.py#L133 For tests we have tour test and methods tests, including mocking if you don't like mock then it is a solution better than none. We do mocking in avatax not just here. I see the PR is very ready now |
|
@etobella You have made entire change on the module by deleting many files and a dir, it is ok to remove vunrable code but now I have conflict and I have to rebuld my work from zero as long as WE want it to be merged into OCA. So, can we have a serious look into the open PRs and prepare for merging, I am ready for it and waiting. Then, I can fix the scroll PR with the conflict. |
|
It's true that #105 removes code, but it reduces a lot of duplicated code, don't you think? I recommend you also to subscribe to the repository to be aware of the current pull requests, for commenting about before merging, so the rest can be aware. |
all right, I would like to know how to subscribe to a repository in OCA? |
065f4e5 to
bb2a0ae
Compare
|
I really need to have this module merged as long as there is no more issues to solve. between time to time I find conflicts with the base branch and I have to fix the conflict, we still have a migration to 18.0 of this feature and the PR is closed although it is a concerning feature, right? |
ed9442b to
463204a
Compare
|
Are we ready now? |
|
@etobella you tell us |
| attachment = ( | ||
| request.env["ir.attachment"] | ||
| .sudo() | ||
| .search( | ||
| [ | ||
| ("res_model", "=", "sign.oca.request"), | ||
| ("res_id", "=", sign_request.id), | ||
| ("res_field", "=", "data"), | ||
| ], | ||
| limit=1, | ||
| ) | ||
| ) |
There was a problem hiding this comment.
IMO, I think an attachment_id store=False field should be created with this domain in sign.oca.request.signer to simplify the code https://github.com/OCA/sign/blob/16.0/sign_oca/models/sign_oca_request.py#L289
Furthermore, I believe that the portal_download_signed() method is unnecessary because it could be used for the download /web/content/{attachment_id} url (something that the web allows: https://github.com/odoo/odoo/blob/215ad0e1c7d74f919c646e40ed23c0bb12cee034/addons/web/controllers/binary.py#L65).
There was a problem hiding this comment.
I did not understand what do you mean in the first sentence, can you explain more the difference and the requested change, please?
463204a to
8169f94
Compare
|
return request.redirect( using this line is very nice but the module was not compatable with it, if I use it I need access_token value for the attachment or for the sign.oca.request.signer or sign.oca.request but sign.oca.request has no field access_token but has attachment and sign.oca.request.signer has access_token but does not have attachment |
hi @kobros-tech, you can get |
8169f94 to
2fef0d7
Compare
|
@xaviedoanhduy now the suggestions are added and no issue with access, thanks xaviedoanhduy |
|
hello? |
1af21a1 to
32214d3
Compare
32214d3 to
ed03056
Compare
|
I am waiting for celebrating the merge! |
|
/ocabot merge minor |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at e9cf05c. Thanks a lot for contributing to OCA. ❤️ |



adding a new feature by enabling portal users from signing their documents from portal in addition to signing it from emails too.
same as #78 but for version 16.0