like when i select records only that records data should be present in wizard
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Проекты
- MRP
Этот вопрос был отмечен
i have solved this using below logic
from odoo import fields, models, api
class SalaryUpdateWizard(models.TransientModel):
_name = "salary.update.wizard"
_description = "Salary update wizard"
def compute_employee_id(self):
project = self.env['employee.salary'].browse(self._context.get('active_ids'))
print(project)
return project
employee_id = fields.Many2one(comodel_name="employee.salary", string="Employee Name" , default=compute_employee_id)
salary = fields.Float(string="Salary",)
def update_salary(self):
rtn = self.env['employee.salary'].browse(self._context.get("active_ids")).update({'salary': self.salary})
print(rtn)
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
2
мая 25
|
1928 | ||
|
|
1
нояб. 24
|
2100 | ||
|
|
2
окт. 24
|
2739 | ||
|
|
1
окт. 24
|
12327 | ||
|
|
1
дек. 22
|
4359 |