Skip to content

Commit

Permalink
Retoques
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopsanz committed Jun 11, 2024
1 parent 2b23468 commit 23faeca
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions mis_report_por_grupo/models/account_move_line_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ class AccountMoveLineGroup(models.Model):
readonly=True,
index=True,
)
partner_id = fields.Many2one('res.partner', string='Partner')
partner_id = fields.Many2one(
comodel_name='res.partner',
string='Partner')
move_line_id = fields.Many2one(
'account.move.line',
string='Move Line')
move_id = fields.Many2one(
comodel_name='account.move',
string='Move')

def init(self):
tools.drop_view_if_exists(self._cr, self._table)
Expand All @@ -42,15 +50,16 @@ def init(self):
acc2.name AS acc2_name,
acc.code AS original_code,
acc.name AS original_name,
aml.id AS id,
aml.id AS move_line_id,
aml.date AS date,
aml.debit AS debit,
aml.credit AS credit,
aml.company_id AS company_id,
acc.user_type_id AS user_type_id,
aml.reconciled AS reconciled,
aml.full_reconcile_id AS full_reconcile_id,
aml.partner_id AS partner_id
aml.partner_id AS partner_id,
aml.move_id AS move_id
FROM account_move_line aml
JOIN account_account acc ON aml.account_id = acc.id
LEFT JOIN (
Expand Down

0 comments on commit 23faeca

Please sign in to comment.