diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-10 16:10:15 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-10 16:10:15 +0700 |
| commit | b61d191e9d5663acb81338de133789fd0c43bdf0 (patch) | |
| tree | f4eb9775d1a2166134bf9742d265d3d5f18a54f9 | |
| parent | 533f32227dd63cfe98903cf93e1a704a5a7ce696 (diff) | |
add payment terms on users
| -rwxr-xr-x | indoteknik_custom/models/res_users.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/res_users.py b/indoteknik_custom/models/res_users.py index 33f64ce3..70a7dc53 100755 --- a/indoteknik_custom/models/res_users.py +++ b/indoteknik_custom/models/res_users.py @@ -11,6 +11,7 @@ class ResUsers(models.Model): activation_token = fields.Char(string="Activation Token") otp_code = fields.Char(string='OTP Code') otp_create_date = fields.Datetime(string='OTP Create Date') + payment_terms_id = fields.Many2one('account.payment.term', related='partner_id.property_payment_term_id', string='Payment Terms') def _generate_otp(self): for user in self: |
