Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Sales Quotation: Disable "auto" in signature module?

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
signatureQuotationCustomerPortal
3 Besvarelser
3287 Visninger
Avatar
Daniel Kapovic

Hello!

Is it somehow possible in the quotes customer-view (in the customer-portal) to disable the option "auto" in the signature module?

In my opinion, the process should start directly with the option "draft". I don't think that a signature with auto mode is legally binding.

I don't think it's user friendly if the customer has to click on "draft" first to place his real signature.

I really would love to use the signature module if it is possible to disable this auto-option.

Thanks for your support
Daniel


PS: I would have posted a screenshot but am not yet allowed to post images.


0
Avatar
Kassér
Sergio Hernández López

Any update?

We think the same, this is not legal in spain.

Did you find a solution?

Daniel Kapovic
Forfatter

@Sergio: Sorry, I didn't find any solution until now.

Avatar
Sreenivas
Bedste svar

You can Simply use this xml snippet for this to disable auto option

<?xml version="1.0" encoding="UTF-8"?>

<templates xml:space="preserve">

    <!-- Inherit the existing template for NameAndSignature -->

    <t t-inherit="web.NameAndSignature" t-inherit-mode="extension">

        <xpath expr="//div[@t-if='state.showSignatureArea']" position="attributes">

            <attribute name="t-if">true</attribute>

        </xpath>

        <xpath expr="//canvas[@t-if='state.showSignatureArea']" position="attributes">

            <attribute name="t-if">true</attribute>

        </xpath>

        <!-- If wanted to hide Auto button -->

        <xpath expr="//a[@t-on-click.prevent='onClickSignAuto']" position="replace"/>

    </t>

</templates>



and add this xml file web.assets_frontend. along with this js file in static


/** @odoo-module **/


import { NameAndSignature } from "@web/core/signature/name_and_signature";


NameAndSignature.prototype.onInputSignName = function (ev) {

    // Always force name to a string

    this.props.signature.name = ev.target.value || "";

    // DO NOT change showSignatureArea state here, so area stays as you want

    // DO NOT auto redraw signature

};


NameAndSignature.prototype.getCleanedName = function () {

    const text = this.props.signature.name || "";

    if (this.props.signatureType === "initial" && text.length > 0) {

        return (

            text

                .split(" ")

                .map(w => w[0])

                .join(".") + "."

        );

    }

    return text;

};



0
Avatar
Kassér
Avatar
Christian Werner
Bedste svar

I've found a better solution which works generally and not just for the portal:


odoo.define('your_module.name_and_signature_extension', function (require) {
"use strict";

var NameAndSignature = require('web.name_and_signature').NameAndSignature;

NameAndSignature.include({
init: function (parent, options) {
// Ensure options is an object to avoid errors
options = options || {};
// Set default mode to 'draw' if not provided
options.mode = options.mode || 'draw';
// Call the original init function with the modified options
this._super(parent, options);
},
});

});

put this snippet in a seperate modul at static/src/js 

and load file in web.assets_frontend section in manifest

"assets": {
​"web.assets_frontend": [
​"/your_module/static/src/js/name_and_signature.js",
​],
}


with this code the default_mode is set to 'draw'


0
Avatar
Kassér
Avatar
Jaime Sánchez
Bedste svar

I found a solution:

Edit this file

portal/static/src/js/portal_signature.js

change in line 161:

'mode': this.$el.data('mode'),

by

'mode': 'draw',

and add this later to the same file:

var style = jQuery('');
jQuery('html > head').append(style);
0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
Send template Sign email via xmlrpc PHP
signature
Avatar
Avatar
Avatar
2
aug. 25
2260
Odoo Sign = Customise Template (Add Company info) before sending
signature
Avatar
0
jul. 25
1216
Cant find nor install the sign module in Odoo 17
signature
Avatar
Avatar
1
okt. 24
2295
signature
signature
Avatar
Avatar
1
aug. 23
9335
signature
signature
Avatar
0
jun. 23
2483
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now