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
- Księgowość
- Zapasy
- PoS
- Projekt
- MRP
To pytanie dostało ostrzeżenie
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)
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
2
maj 25
|
1930 | ||
|
|
1
lis 24
|
2100 | ||
|
|
2
paź 24
|
2740 | ||
|
我使用的是odoo 16 社區版本 進到購物車都會顯示以下,請問是怎麼了?該如何解決呢
Rozwiązane
|
|
1
paź 24
|
12328 | |
|
|
1
gru 22
|
4359 |