bemade-addons/bemade_sethy_configuration/wizard/create_property_wizard.py
Benoît Vézina cc8677c8f9 more function
2023-12-31 15:32:54 -05:00

10 lines
423 B
Python

from odoo import models, fields, api
class CreatePropertyWizard(models.TransientModel):
_name = 'create.property.wizard'
property_id = fields.Many2one('res.partner', string='Property', domain=[('is_property', '=', True)])
def action_done(self):
# Here process your data, for example:
self.env['res.partner'].browse(self._context.get('active_ids')).write({'property_id': self.property_id.id})