Compare commits
No commits in common. "19.0" and "main" have entirely different histories.
22
.gitignore
vendored
22
.gitignore
vendored
@ -1,22 +0,0 @@
|
|||||||
# Python
|
|
||||||
__pycache__/
|
|
||||||
*.py[cod]
|
|
||||||
*$py.class
|
|
||||||
|
|
||||||
# Odoo
|
|
||||||
*.log
|
|
||||||
.env
|
|
||||||
.venv/
|
|
||||||
venv/
|
|
||||||
*.pot
|
|
||||||
*.po~
|
|
||||||
|
|
||||||
# VSCode
|
|
||||||
.vscode/
|
|
||||||
|
|
||||||
# PyCharm
|
|
||||||
.idea/
|
|
||||||
|
|
||||||
# OS
|
|
||||||
.DS_Store
|
|
||||||
Thumbs.db
|
|
||||||
@ -17,6 +17,9 @@
|
|||||||
'views/sign_item_views.xml',
|
'views/sign_item_views.xml',
|
||||||
],
|
],
|
||||||
'assets': {
|
'assets': {
|
||||||
|
'web.assets_frontend': [
|
||||||
|
'sign_sequence_field/static/src/xml/sign_item_sequence.xml',
|
||||||
|
],
|
||||||
'web.assets_backend': [
|
'web.assets_backend': [
|
||||||
'sign_sequence_field/static/src/xml/sign_item_sequence.xml',
|
'sign_sequence_field/static/src/xml/sign_item_sequence.xml',
|
||||||
'sign_sequence_field/static/src/js/sign_item_custom_popover_patch.js',
|
'sign_sequence_field/static/src/js/sign_item_custom_popover_patch.js',
|
||||||
|
|||||||
BIN
__pycache__/__init__.cpython-312.pyc
Normal file
BIN
__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
controllers/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
controllers/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
controllers/__pycache__/main.cpython-312.pyc
Normal file
BIN
controllers/__pycache__/main.cpython-312.pyc
Normal file
Binary file not shown.
@ -93,7 +93,7 @@ class SignController(Sign):
|
|||||||
except Exception:
|
except Exception:
|
||||||
return request.not_found()
|
return request.not_found()
|
||||||
|
|
||||||
@http.route(['/sign/sign/<int:request_id>/<token>'], type='jsonrpc', auth='public')
|
@http.route(['/sign/sign/<int:request_id>/<token>'], type='json', auth='public')
|
||||||
def sign_document(self, request_id, token, signature=None, items=None, **kwargs):
|
def sign_document(self, request_id, token, signature=None, items=None, **kwargs):
|
||||||
# Intercept items to prevent saving the URL as value
|
# Intercept items to prevent saving the URL as value
|
||||||
if items:
|
if items:
|
||||||
|
|||||||
BIN
models/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
models/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
models/__pycache__/sign_item.cpython-312.pyc
Normal file
BIN
models/__pycache__/sign_item.cpython-312.pyc
Normal file
Binary file not shown.
BIN
models/__pycache__/sign_item_type.cpython-312.pyc
Normal file
BIN
models/__pycache__/sign_item_type.cpython-312.pyc
Normal file
Binary file not shown.
BIN
models/__pycache__/sign_request.cpython-312.pyc
Normal file
BIN
models/__pycache__/sign_request.cpython-312.pyc
Normal file
Binary file not shown.
@ -5,9 +5,3 @@ class SignItemType(models.Model):
|
|||||||
_inherit = "sign.item.type"
|
_inherit = "sign.item.type"
|
||||||
|
|
||||||
item_type = fields.Selection(selection_add=[('sequence', "Sequence")], ondelete={'sequence': 'cascade'})
|
item_type = fields.Selection(selection_add=[('sequence', "Sequence")], ondelete={'sequence': 'cascade'})
|
||||||
|
|
||||||
def _compute_dimensions(self):
|
|
||||||
super(SignItemType, self.filtered(lambda r: r.item_type != 'sequence'))._compute_dimensions()
|
|
||||||
for record in self.filtered(lambda r: r.item_type == 'sequence'):
|
|
||||||
record.default_width = 0.15
|
|
||||||
record.default_height = 0.015
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user