Odoo fields definition Quick Guide

odoo personalizzazioni

Odoo fields definition Quick Guide Directly from site getodootraining: fields.Char (string=“DISPLAY NAME”) fields.Text (string=“DISPLAY NAME”) fields.Integer (string=“DISPLAY NAME”) fields.Float (string=“DISPLAY NAME”) fields.Boolean (string=“DISPLAY NAME”) fields.Binary (string=“DISPLAY NAME”) fields.Date (string=“DISPLAY NAME”) fields.Datetime (string=“DISPLAY NAME”) fields.Selection (string=“DISPLAY NAME”, selection=[(‘key_one’, ‘value_string_to_be_display’), (‘key_two’, ‘value_string_to_be_display’)]) More on Odoo Documentation  

Wizard from button in odoo

odoo personalizzazioni

Creating and opening a wizard from button in odoo Define wizard in .py: class ProductWizard(models.TransientModel): _name = ‘product.wizard’ date_from = fields.Date(string=’From’) date_to = fields.Date(string=’To’) @api.multi def test_report(self): context = dict(self._context or {}) raise UserError(_(“TEST REPORT”)) Define action e view in .xml: <record id=”action_open_wizard” model=”ir.actions.act_window”> <field name=”name”>View Product Wizard</field> <field name=”res_model”>product.wizard</field> <field name=”view_type”>form</field> <field name=”view_mode”>tree,form</field> <field … Leggi tutto

Date in Python

python programming programmazione da zero python

Semplice esempio di trattamento date in Python: # Data e ora di oggi order_date = datetime.now() # Aggiungiamo 10 giorni order_due = order_date + timedelta(days=15) # Formattiamo in formato stringa all’occorrenza order_due_date = order_due.strftime(“%Y-%m-%d”) # Inviamo l’output a schermo print(order_due_date) # Output 2019-07-19

Programmatori che fuggono dai recruiters!

work from home remote job python

Il fatto è che è necessario un cambiamento: Ricevo ogni giorno richieste da recruiters che chiedono skills e valutazioni di test, pretest, live coding etc… Ne ho fatta anche una di queste ‘valutazioni’ e conclusa con successo, per poi scoprire che in realtà, in molti casi, il boss del reparto sviluppo faceva ostruzionismo per affermare … Leggi tutto

Install Odoo 11 and Odoo 12 on the same windows machine

odoo personalizzazioni

Install Odoo 11 and Odoo 12 on the same windows machine — You can simply install both version this way: Install Odoo 11 and PostgreSQL server via installer (exe) from nightly build :https://nightly.odoo.com Choose a folder for installation (e.g.: C:\Odoo11) Install Odoo 12 only (no PostgreSQL server) via installer (exe) from nightly build and choose … Leggi tutto