$ 52.78
Lines of code | 775 |
Technical Name |
adocs |
License | OPL-1 |
Website | https://appstg.com |
Also available in version | v 13.0 v 10.0 v 11.0 |
Lines of code | 775 |
Technical Name |
adocs |
License | OPL-1 |
Website | https://appstg.com |
Also available in version | v 13.0 v 10.0 v 11.0 |
This module was tested for Odoo Community Edition
Generate documents from template and print to PDF
Create documents from templates for any records, approve documents and print to PDF
DEMO: http://demo.appstg.com, LOGIN demo PASSWORD demo
You must first create a document template. Only an employee with the right to approve documents can create templates. Specify the object to which it will be applied, whether document approval is required, text (you can specify fields from the form), and so on.

Settings: if you check the box, you can create only one document for one record by one template.

You can now create a document from this template in all Sales Orders.

Select template and press button "Create doc"

A template document was generated. The document has three statuses: Draft, Approve, Ready. If the "Need Approve" checkbox is not specified in the document template, the document is created in the Ready status and can be printed immediately. If you need to approve the document, the corresponding buttons appear. In order for an employee to approve documents, they need the appropriate right, which can be set in the user settings. The document can only be printed in the Ready status.

The created document is attached to the record. It can also be viewed in the Docs menu in the section corresponding to the status




Need help or development?
Contact us: info@appstg.com
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Hello,
We have made corrections related to text encoding, download the updated module and test it
Cannot Print Generated Reports
Hi,
We are unable to print the generated reports. We get an error " internal server error". Kindly find logs:
Traceback (most recent call last):
File "/odoo/odoo-server/addons/website/models/ir_http.py", line 274, in _handle_exception
response = super(Http, cls)._handle_exception(exception)
File "/odoo/odoo-server/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 775, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/odoo/odoo-server/odoo/http.py", line 834, in dispatch
r = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 334, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 327, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 942, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/odoo/custom/addons/adocs/controllers/main.py", line 17, in report_routes
pdf = doc.print_pdf()
File "/odoo/custom/addons/adocs/models/adocs_document.py", line 252, in print_pdf
'''.format(self.header or '', self.body or '', self.footer or '')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 532-538: ordinal not in range(128)
2022-01-28 07:14:19,576 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:19] "GET /adocsreport/1 HTTP/1.1" 500 -
2022-01-28 07:14:20,274 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:20] "POST /web/menu/load_needaction HTTP/1.1" 200 -
2022-01-28 07:14:21,115 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:21] "POST /web/dataset/search_read HTTP/1.1" 200 -
2022-01-28 07:14:21,123 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:21] "POST /web/dataset/search_read HTTP/1.1" 200 -
2022-01-28 07:14:21,133 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:21] "POST /mail/read_followers HTTP/1.1" 200 -
2022-01-28 07:14:21,140 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:21] "GET /web/image/res.partner/3/image_small HTTP/1.1" 200 -
2022-01-28 07:14:21,578 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:21] "POST /web/webclient/bootstrap_translations HTTP/1.1" 200 -
2022-01-28 07:14:21,623 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:21] "GET /web/webclient/qweb?mods= HTTP/1.1" 200 -
2022-01-28 07:14:22,883 13365 INFO CentrifRent werkzeug: 10.8.5.13 - - [28/Jan/2022 07:14:22] "POST /website/translations HTTP/1.1" 200 -
Regards,
Austin
There is a bug/flaw in the code of adocs_document.py line 255 contains a .format(....) funtion on a html field. format deals only with ascii code, but your html may contain other characters too (on a easter european system there are the special chracters in text for example ăîâțș). Simply concatenating the html variable does the trick - the code may be uglier, but it works on a wider range of systems and wont give the 500: Internal Server Error message that I got when trying the module.
Re:
Hello! Thank you for your comment, we will make changes to the module in the near future