diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-10-26 15:56:00 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-10-26 15:56:00 +0700 |
| commit | 780b7ce9643644bd3ea020c02d66257d85d53778 (patch) | |
| tree | 36a32ae9a4eb3ccefee25a7f67dcef830a27ccf4 /indoteknik_custom/models | |
| parent | 30b673c510483934e215858dc928097cd20dea21 (diff) | |
Update dunning_run.py, ir.model.access.csv, and dunning_run.xml
Diffstat (limited to 'indoteknik_custom/models')
| -rw-r--r-- | indoteknik_custom/models/dunning_run.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/indoteknik_custom/models/dunning_run.py b/indoteknik_custom/models/dunning_run.py index dc943c23..b6531c5c 100644 --- a/indoteknik_custom/models/dunning_run.py +++ b/indoteknik_custom/models/dunning_run.py @@ -9,12 +9,9 @@ class DunningRun(models.Model): number = fields.Char(string='Document No', index=True, required=True, copy=False, readonly=True) dunning_date = fields.Date(string='Dunning Date') partner_id = fields.Many2one( - 'res.partner', string='Customer', readonly=True, - states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, - required=True, change_default=True, index=True, tracking=1, - domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]", ) - order_line = fields.One2many('dunning.run.line', 'dunning_id', string='Dunning Lines', - auto_join=True) + 'res.partner', string='Customer', + required=True, change_default=True, index=True, tracking=1) + dunning_line = fields.One2many('dunning.run.line', 'dunning_id', string='Dunning Lines', auto_join=True) dunning_level = fields.Integer(string='Dunning Level', default=30, help='30 hari sebelum jatuh tempo invoice') |
