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
5월 25
|
1969 | ||
|
|
1
11월 24
|
2152 | ||
|
|
2
10월 24
|
2788 | ||
|
|
1
10월 24
|
12356 | ||
|
|
1
12월 22
|
4397 |