Skip to content

Commit

Permalink
Merge PR #1205 into 11.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 7, 2020
2 parents 14abc6e + 47c31f3 commit 8fbcfab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
4 changes: 3 additions & 1 deletion l10n_es_aeat_mod347/models/mod347.py
Expand Up @@ -6,6 +6,7 @@
# Copyright 2016 Tecnativa - Angel Moya <odoo@tecnativa.com>
# Copyright 2014-2019 Tecnativa - Pedro M. Baeza
# Copyright 2018 PESOL - Angel Moya <info@pesol.es>
# Copyright 2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models, api, exceptions, _
Expand Down Expand Up @@ -287,7 +288,8 @@ def _create_cash_moves(self):
move_lines = move_line_obj.search(cash_group['__domain'])
partner_record = partner_record_obj.search([
('partner_id', '=', partner.id),
('operation_key', '=', 'B')
('operation_key', '=', 'B'),
('report_id', '=', self.id),
])
if partner_record:
partner_record.write({
Expand Down
1 change: 1 addition & 0 deletions l10n_es_aeat_mod347/readme/CONTRIBUTORS.rst
Expand Up @@ -10,3 +10,4 @@
* Antonio Espinosa
* Pedro M. Baeza
* Cristina Martín
* Carlos Dauden
16 changes: 0 additions & 16 deletions l10n_es_aeat_mod347/views/report_347_partner.xml
Expand Up @@ -81,22 +81,6 @@
<strong class="text-right">Amount:</strong>
<p class="text-right" t-field="o.cash_amount"/>
</div>
<div class="col-xs-2">
<strong class="text-right">Amount 1Q:</strong>
<p class="text-right" t-field="o.first_quarter_cash_amount"/>
</div>
<div class="col-xs-2">
<strong class="text-right">Amount 2Q:</strong>
<p class="text-right" t-field="o.second_quarter_cash_amount"/>
</div>
<div class="col-xs-2">
<strong class="text-right">Amount 3Q:</strong>
<p class="text-right" t-field="o.third_quarter_cash_amount"/>
</div>
<div class="col-xs-2">
<strong class="text-right">Amount 4Q:</strong>
<p class="text-right" t-field="o.fourth_quarter_cash_amount"/>
</div>
</div>

<t t-if="o.cash_record_ids">
Expand Down

0 comments on commit 8fbcfab

Please sign in to comment.