Estendere le opzioni di un campo selezione in Odoo 12

odoo personalizzazioni

Sappiamo come definire un campo selezione in Odoo, ad esempio: option = fields.Selection([ (‘day_after_invoice_date’, “day(s) after the invoice date”), (‘after_invoice_month’, “day(s) after the end of the invoice month”), (‘day_following_month’, “of the following month”), (‘day_current_month’, “of the current month”), ], default=’day_after_invoice_date’, required=True, string=’Options’ ) Ma come possiamo fare ad aggiungere un opzione tra quelle disponibili in … Leggi tutto

Accedere ai webservice soap con suds in Python

python programming programmazione da zero python

Accedere ai webservice con suds in Python Installare suds per python 3 Il metodo più semplice è il fidato pip: pip install suds-py3 Elencare i servizi disponibili from suds.client import Client client = Client(“https://www.testfe.com/test_service.asmx?WSDL”) print(client) Impostare lo schema per alcuni tipi di servizio può essere necessario specificare lo schema. from suds.xsd.doctor import Import, ImportDoctor imp=Import(‘http://www.w3.org/2001/XMLSchema’,location=’http://www.w3.org/2001/XMLSchema.xsd’) … Leggi tutto

Django noreverse error app_name namespace

sviluppo applicazioni django

Il web framework Django Con questa breve nota tecnica inauguro il filone di note e tips per il web framework Django. Django è probabilmente il migliore web framework per python. La curva di apprendimento non è rapidissima ma una volta capiti i meccanismi fondamentali si rivela uno strumento davvero eccezionale. Il temutissimo noreverse Durante lo … Leggi tutto