diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-06-07 15:55:40 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-06-07 15:55:40 +0700 |
| commit | 9200e74126c99410b79ef2c344915251bef6af19 (patch) | |
| tree | 4c3f168424e270b1087fd83f682943c11baed92a | |
| parent | 984e128294f4c3d9d3d8eab8dacf03846f8336b2 (diff) | |
(andri) edit penamaan field Reklas
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/models/invoice_reklas.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/account_move.xml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 73dbefd6..3333af8f 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -67,7 +67,7 @@ class AccountMove(models.Model): is_hr = fields.Boolean(string="Is HR?", default=False) purchase_order_id = fields.Many2one('purchase.order', string='Purchase Order') length_of_payment = fields.Integer(string="Length of Payment", compute='compute_length_of_payment') - reklas_misc_id = fields.Many2one('account.move', string='No Jurnal Reklas (MISC)') + reklas_misc_id = fields.Many2one('account.move', string='Journal Entries Reklas') def name_get(self): result = [] diff --git a/indoteknik_custom/models/invoice_reklas.py b/indoteknik_custom/models/invoice_reklas.py index 59c78ce6..5e21a787 100644 --- a/indoteknik_custom/models/invoice_reklas.py +++ b/indoteknik_custom/models/invoice_reklas.py @@ -11,7 +11,7 @@ _logger = logging.getLogger(__name__) class InvoiceReklas(models.TransientModel): _name = 'invoice.reklas' _description = "digunakan untuk reklas Uang Muka Penjualan" - reklas_id = fields.Many2one('account.move', string='Nomor CAB') + reklas_id = fields.Many2one('account.move', string='Nomor CAB', domain="[('move_type','=','entry')]") pay_amt = fields.Float(string='Yang dibayarkan') reklas_type = fields.Selection([ ('penjualan', 'Penjualan'), diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml index dda7f272..07efc077 100644 --- a/indoteknik_custom/views/account_move.xml +++ b/indoteknik_custom/views/account_move.xml @@ -8,7 +8,7 @@ <field name="arch" type="xml"> <xpath expr="//div[@name='journal_div']" position="after"> <field name="reklas_misc_id" - string="No Jurnal Reklas (MISC)" + string="Journal Entries Reklas" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}" readonly="1"/> </xpath> |
