Skip to content

Instantly share code, notes, and snippets.

View rvalyi's full-sized avatar

Raphaël Valyi rvalyi

View GitHub Profile
# 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
--- generateDS-2.36.2.py 2020-09-24 23:28:32.078256200 -0300
+++ /usr/local/bin/generateDS.py 2020-09-24 23:31:04.373630855 -0300
@@ -1103,7 +1103,7 @@
if self.isMixed():
return True
base = self.getBase()
- if base and base in ElementDict:
+ if base and base in ElementDict and str(base) != self.type:
parent = ElementDict[base]
return parent.hasMixedInChain()