diff options
| -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> |
