diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-06-11 09:14:42 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-06-11 09:14:42 +0700 |
| commit | a6629db53b6080bd2217e426b434c2ecc72588ab (patch) | |
| tree | 75c27a31f9932834911d8d84b2b0c00a822e792b /indoteknik_custom/models | |
| parent | 503fb1e0adb8eca300133bde10a4bbd8e16d2cb5 (diff) | |
(andri) add button INFORMATION DETAIL pada popup detail contact & addresses
Diffstat (limited to 'indoteknik_custom/models')
| -rw-r--r-- | indoteknik_custom/models/res_partner.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py index fee0e73b..b8bdfe22 100644 --- a/indoteknik_custom/models/res_partner.py +++ b/indoteknik_custom/models/res_partner.py @@ -525,6 +525,16 @@ class ResPartner(models.Model): if self.company_type == 'person': self.nama_wajib_pajak = self.name + def action_open_full_form(self): + return { + 'type': 'ir.actions.act_window', + 'name': 'Partner', + 'res_model': 'res.partner', + 'res_id': self.id, + 'view_mode': 'form', + 'target': 'current', + } + def geocode_address(self): for rec in self: # Ambil nama dari relasi (Many2one) atau gunakan nilai default |
