Compare commits
No commits in common. "19.0" and "main" have entirely different histories.
15
.gitignore
vendored
15
.gitignore
vendored
@ -1,15 +0,0 @@
|
|||||||
# Python
|
|
||||||
*.py[cod]
|
|
||||||
__pycache__/
|
|
||||||
*.so
|
|
||||||
|
|
||||||
# Odoo
|
|
||||||
*.po~
|
|
||||||
*.pot~
|
|
||||||
|
|
||||||
# Editor / System
|
|
||||||
.DS_Store
|
|
||||||
.vscode/
|
|
||||||
*.swp
|
|
||||||
*.swo
|
|
||||||
*~
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
'name': 'Web Direct Print',
|
'name': 'Web Direct Print',
|
||||||
'version': '19.0.1.0.0',
|
'version': '18.0.1.0.0',
|
||||||
'category': 'Extra Tools',
|
'category': 'Extra Tools',
|
||||||
'summary': 'Enable direct printing from web browser to local printers',
|
'summary': 'Enable direct printing from web browser to local printers',
|
||||||
'description': """
|
'description': """
|
||||||
@ -36,7 +36,6 @@
|
|||||||
'stock',
|
'stock',
|
||||||
],
|
],
|
||||||
'data': [
|
'data': [
|
||||||
'security/ir.model.access.csv',
|
|
||||||
'data/ir_actions_server.xml',
|
'data/ir_actions_server.xml',
|
||||||
'views/direct_print_templates.xml',
|
'views/direct_print_templates.xml',
|
||||||
'views/sale_order_views.xml',
|
'views/sale_order_views.xml',
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import base64
|
|||||||
|
|
||||||
class DirectPrintController(http.Controller):
|
class DirectPrintController(http.Controller):
|
||||||
|
|
||||||
@http.route('/web/direct_print', type='jsonrpc', auth='user')
|
@http.route('/web/direct_print', type='json', auth='user')
|
||||||
def direct_print(self, report_name, docids, data=None):
|
def direct_print(self, report_name, docids, data=None):
|
||||||
"""
|
"""
|
||||||
Controller method to handle direct print requests
|
Controller method to handle direct print requests
|
||||||
@ -53,7 +53,7 @@ class DirectPrintController(http.Controller):
|
|||||||
'error': str(e)
|
'error': str(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
@http.route('/web/direct_print/get_reports', type='jsonrpc', auth='user')
|
@http.route('/web/direct_print/get_reports', type='json', auth='user')
|
||||||
def get_available_reports(self):
|
def get_available_reports(self):
|
||||||
"""
|
"""
|
||||||
Controller method to get available reports for direct printing
|
Controller method to get available reports for direct printing
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
|
||||||
access_web_direct_print,web.direct.print,model_web_direct_print,base.group_user,1,1,1,1
|
|
||||||
|
@ -140,8 +140,8 @@ if records:
|
|||||||
<!-- Package/Lot Tracking Direct Print -->
|
<!-- Package/Lot Tracking Direct Print -->
|
||||||
<record id="action_direct_print_package_content" model="ir.actions.server">
|
<record id="action_direct_print_package_content" model="ir.actions.server">
|
||||||
<field name="name">Direct Print Package Content</field>
|
<field name="name">Direct Print Package Content</field>
|
||||||
<field name="model_id" ref="stock.model_stock_package"/>
|
<field name="model_id" ref="stock.model_stock_quant_package"/>
|
||||||
<field name="binding_model_id" ref="stock.model_stock_package"/>
|
<field name="binding_model_id" ref="stock.model_stock_quant_package"/>
|
||||||
<field name="binding_view_types">list,form</field>
|
<field name="binding_view_types">list,form</field>
|
||||||
<field name="state">code</field>
|
<field name="state">code</field>
|
||||||
<field name="code">
|
<field name="code">
|
||||||
@ -149,7 +149,7 @@ if records:
|
|||||||
action = {
|
action = {
|
||||||
'type': 'ir.actions.client',
|
'type': 'ir.actions.client',
|
||||||
'tag': 'direct_print',
|
'tag': 'direct_print',
|
||||||
'report_name': 'stock.action_report_package_barcode',
|
'report_name': 'stock.action_report_quant_package_barcode',
|
||||||
'docids': records.ids,
|
'docids': records.ids,
|
||||||
'context': env.context,
|
'context': env.context,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user