Skip to content

Instantly share code, notes, and snippets.

View rvalyi's full-sized avatar

Raphaël Valyi rvalyi

View GitHub Profile
import os
import math
import git
from pathlib import Path
from datetime import datetime
from git.objects import base
from slugify import slugify
from typing import List
import subprocess
# Copyright 2022 Akretion - Raphaël Valyi <raphael.valyi@akretion.com>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
# Generated by https://github.com/akretion/xsdata-odoo
#
import textwrap
from odoo import fields, models
__NAMESPACE__ = "http://www.sat.gob.mx/cfd/4"
from dataclasses import dataclass, field
from decimal import Decimal
from typing import List, Optional
__NAMESPACE__ = "http://www.sat.gob.mx/cfd/4"
@dataclass
class Comprobante:
"""
2022-06-10 15:44:51,938 53547 WARNING db-14 odoo.fields: res.partner.nfe40_indIEDest: selection attribute will be ignored as the field is related
2022-06-10 15:44:51,956 53547 WARNING db-14 odoo.fields: res.company.nfe40_CRT: selection attribute will be ignored as the field is related
2022-06-10 15:44:52,049 53547 WARNING db-14 odoo.fields: l10n_br_fiscal.document.nfe40_finNFe: selection attribute will be ignored as the field is related
2022-06-10 15:44:52,050 53547 WARNING db-14 odoo.fields: l10n_br_fiscal.document.nfe40_indFinal: selection attribute will be ignored as the field is related
2022-06-10 15:44:52,051 53547 WARNING db-14 odoo.fields: l10n_br_fiscal.document.nfe40_indPres: selection attribute will be ignored as the field is related
2022-06-10 15:44:52,051 53547 WARNING db-14 odoo.fields: l10n_br_fiscal.document.nfe40_tpAmb: selection attribute will be ignored as the field is related
2022-06-10 15:44:52,058 53547 WARNING db-14 odoo.fields: l10n_br_fiscal.document.related.nfe40_mod: selection=
--- a/mis_builder/models/mis_report_instance.py
+++ b/mis_builder/models/mis_report_instance.py
@@ -374,6 +374,12 @@ class MisReportInstancePeriod(models.Model):
)
for m in many_ids:
filters.append((filter_name, "in", [m["id"]]))
+ elif filter_name == 'analytic_account_id':
+ # filter also on children analytic accounts
+ analytic_account = self.env['account.analytic.account'].browse(value)
+ analytic_ids = self.env['account.analytic.account'].search(
# install on Ubuntu Server 20.04 LTS (Ubuntu Focal) or Debian 10 (Buster)
sudo apt-get update
sudo apt-get install byobu
byobu
# install Docker:
sudo apt-get install -y\
apt-transport-https \
# Copyright 2020 Akretion - Raphael Valyi <raphael.valyi@akretion.com>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
# Generated Fri Sep 25 10:03:51 2020 by https://github.com/akretion/generateds-odoo
# and generateDS.py.
# Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
#
import textwrap
from odoo import fields, models
# Copyright 2020 Akretion - Raphael Valyi <raphael.valyi@akretion.com>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
# Generated Fri Sep 25 10:02:26 2020 by https://github.com/akretion/generateds-odoo
# and generateDS.py.
# Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
#
import textwrap
from odoo import fields, models
# Copyright 2020 Akretion - Raphael Valyi <raphael.valyi@akretion.com>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
# Generated Fri Sep 25 10:00:46 2020 by https://github.com/akretion/generateds-odoo
# and generateDS.py.
# Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
#
import textwrap
from odoo import fields, models
# Copyright 2020 Akretion - Raphael Valyi <raphael.valyi@akretion.com>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
# Generated Fri Sep 25 09:54:31 2020 by https://github.com/akretion/generateds-odoo
# and generateDS.py.
# Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
#
import textwrap
from odoo import fields, models