Skip to content

Instantly share code, notes, and snippets.

View ymajoros's full-sized avatar

Yannick Majoros ymajoros

View GitHub Profile
<t t-name="product.report_simple_label_dymo">
<div class="o_label_sheet o_label_dymo" t-att-style="padding_page">
<div class="o_label_full" t-att-style="table_style">
<div class="text-start o_label_small_barcode" style="background: transparent !important;">
<t t-if="barcode">
<!-- `quiet=0` to remove the left and right margins on the barcode -->
<div t-out="barcode" style="padding:0" t-options="{'widget': 'barcode', 'quiet': 0, 'symbology': 'auto', 'img_style': barcode_size}"/>
<div class="o_label_name" style="height:1.7em;background-color: transparent;">
<span t-out="barcode"/>
<em>Le petit Napo Gembloux</em>
<script>
// Function to fetch categories from Ecwid API
async function fetchCategories() {
const response = await fetch(`https://app.ecwid.com/api/v3/${ecwidStoreID}/categories?token=${publicToken}`);
const data = await response.json();
return data.items.filter(category => category.enabled && !category.parentId); // Only top-level enabled categories
}
// Function to fetch subcategories for a given category from Ecwid API
async function fetchSubcategories(parentCategoryId) {
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
class Scratch {
public static final long ITERATIONS = 1_000_000_000L;
private volatile int i = 5;
public int getI() {
package be.isabel.pdg.bankbank.webservice;
import org.junit.Test;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
public class ThreadTest {