Step 1
If any version of postman is installed we need to remove it
sudo rm -rf /opt/PostmanStep 2
| #!/bin/bash | |
| # Atualiza pacotes e instala dependências | |
| sudo apt update && sudo apt upgrade -y | |
| sudo apt install -y docker.io docker-compose curl git | |
| # Habilita e inicia o Docker | |
| sudo systemctl enable docker | |
| sudo systemctl start docker | |
| sudo usermod -aG docker $USER |
| 2024-05-05 10:57:37.547 -03:00 [INF] Initialized logger inside revitRevit 2023/2.18.4/2.18.4.14049 for user @FBDE1DF866B7B2C35CE632A6D745B96A. Path info C:\Users\mileo\AppData\Roaming C:\Users\mileo\AppData\Roaming. | |
| 2024-05-05 10:57:37.748 -03:00 [DBG] Starting execution of http request to "https://analytics.speckle.systems/engage#profile-set" | |
| 2024-05-05 10:57:37.749 -03:00 [DBG] Starting execution of http request to "https://analytics.speckle.systems/engage#profile-union" | |
| 2024-05-05 10:57:38.382 -03:00 [INF] Initializing Kit Manager in C:\Users\mileo\AppData\Roaming\Speckle\Kits | |
| 2024-05-05 10:57:38.955 -03:00 [INF] Execution of http request to https://analytics.speckle.systems//engage succeeded with "OK" after 1.2041595999999999 seconds and 0 retries | |
| 2024-05-05 10:57:38.971 -03:00 [INF] Execution of http request to https://analytics.speckle.systems//engage succeeded with "OK" after 1.2193483 seconds and 0 retries | |
| 2024-05-05 10:57:41.982 -03:00 [INF] Converter ConverterRevit successfully loaded from C:\Users\ |
| from lxml import objectify, etree | |
| from erpbrasil.base.fiscal import cnpj_cpf | |
| XML = """<NFe xmlns="http://www.portalfiscal.inf.br/nfe"> | |
| <infNFe versao="4.00" Id="NFe35180803102452000172550010000476781421693968"> | |
| <ide> | |
| <cUF>35</cUF> | |
| <cNF>42169396</cNF> | |
| <natOp>Bonificacao</natOp> |
| # odoo 12 | |
| for line in order: | |
| line.product_qty = 1 # marca para recalcular | |
| # computa os campos que dependem dele l.subtotal, o.total | |
| line.discount = 10 # marca para recalcular | |
| # computa os campos que dependem dele l.subtotal, o.total | |
| line.price = 100 # marca para recalcular | |
| # computa os campos que dependem dele l.subtotal, o.total | |
| # odoo 13 | |
| for line in order: |
| class Order(Model): | |
| discount = Float() | |
| line_ids = One2many('order_id') | |
| class OrderLine(Model): | |
| order_id = Many2one('order') | |
| price = Float() | |
| subtotal = Float(compute="get_total") | |
| @api.depends('price','order_id.discount') |
| # Odoo 8-12 | |
| self.name = 'test' # UPDATE + invalida o cache | |
| self.name = 'test2' # UPDATE + invalida o cache | |
| self.name # SELECT | |
| # Odoo 13 | |
| self.name = 'test' # coloca no cache | |
| self.name = 'test2' # coloca no cache | |
| self.name # busca no cache | |
| self.flush() # UPDATE |
| # https://github.com/odoo/odoo/blob/9d0f172f29085a6b164313bf20178270b9572cc2/addons/product/models/res_partner.py#L18 | |
| @api.depends('country_id') | |
| @api.depends_context('force_company') | |
| def _compute_product_pricelist(self): | |
| company = self.env.context.get('force_company', False) | |
| res = self.env['product.pricelist']._get_partner_pricelist_multi(self.ids, company_id=company) | |
| for p in self: | |
| p.property_product_pricelist = res.get(p.id) |
| # Odoo 12 | |
| self.field #SELECT | |
| r = self.with_context(key=val) #Novo cache | |
| r.field #Novo SELECT | |
| self.sudo().field #Novo cache + Novo Select | |
| # Odoo 13 | |
| self.field #SELECT | |
| r = self.with_context(key=val) |
| # -*- coding: utf-8 -*- | |
| # Copyright 2019 KMEE INFORMATICA LTDA | |
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | |
| from eip import PLC | |
| def read_tag(tag_name): | |
| return test.Read(tag_name) |