Simpler way to call wizard or form from button in Odoo (No action in xml)
Simpler way to call wizard or form from button in Odoo (No action in xml) Define the wizard in py: class ProductWizard(models.TransientModel): _name = ‘product.wizard’ range_start = fields.Integer(‘range_start’) range_end = fields.Integer(‘range_end’) range_dist = fields.Char(‘range_dist’) @api.multi def create_set(self): context = dict(self._context or {}) raise UserError(_(“TEST REPORT”)) and in xml: <record id=”view_test_report_wizard” model=”ir.ui.view”> <field name=”name”>Product Wizard</field> <field … Leggi tutto