[IMP] docuseal_signing: add README and drop unused signature helper
Add the module README documenting purpose, features (template registry, field mapping, contextual server action, settings) and installation requirements. Remove ``res.partner#request_docuseal_signature``, which was introduced as a public entry point for other code but was never called: the generated server action calls ``docuseal.template._create_submissions`` directly. The template method is now the single entry point for signature requests. Assisted-By: GLM-5.3-Flash
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from . import docuseal_template
|
||||
from . import docuseal_template_field
|
||||
from . import res_config_settings
|
||||
from . import res_partner
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
import logging
|
||||
|
||||
from odoo import models
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
def request_docuseal_signature(self, docuseal_template_id):
|
||||
template = self.env["docuseal.template"].search(
|
||||
[("template_id", "=", docuseal_template_id)], limit=1
|
||||
)
|
||||
if not template:
|
||||
_logger.warning(
|
||||
"Docuseal: no template configured in Odoo for template ID %s",
|
||||
docuseal_template_id,
|
||||
)
|
||||
return
|
||||
template._create_submissions(self)
|
||||
Reference in New Issue
Block a user