Skip to content
Permalink
Browse files

[FIX] l10n_be_intrastat: example change inventory report

opw-1943323
closes #31360
  • Loading branch information...
nle-odoo committed Feb 22, 2019
1 parent bed3b4a commit 51474fb12bff9323882c34365529b2b4e706631b
Showing with 14 additions and 0 deletions.
  1. +1 −0 addons/l10n_be_intrastat/models/__init__.py
  2. +13 −0 addons/l10n_be_intrastat/models/report_intrastat.py
@@ -2,3 +2,4 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.

import l10n_be_intrastat
import report_intrastat
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import fields, models

class ReportIntrastat(models.Model):
_inherit = "report.intrastat"

intrastat_id = fields.Many2one(compute='_compute_intrastat_id')

def _compute_intrastat_id(self):
for record in self:
record.intrastat_id = self.env['account.invoice.line'].browse(record.id).product_id.get_intrastat_recursively()

0 comments on commit 51474fb

Please sign in to comment.
You can’t perform that action at this time.