Files
goodie/frontend/account/static/src/components/bill_guide/bill_guide.xml
Marc 8741282322 Eliminate Python dependency: embed frontend assets in odoo-go
- Copy all OWL frontend assets (JS/CSS/XML/fonts/images) into frontend/
  directory (2925 files, 43MB) — no more runtime reads from Python Odoo
- Replace OdooAddonsPath config with FrontendDir pointing to local frontend/
- Rewire bundle.go, static.go, templates.go, webclient.go to read from
  frontend/ instead of external Python Odoo addons directory
- Auto-detect frontend/ and build/ dirs relative to binary in main.go
- Delete obsolete Python helper scripts (tools/*.py)

The Go server is now fully self-contained: single binary + frontend/ folder.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 23:09:12 +02:00

83 lines
4.1 KiB
XML

<templates>
<t t-name="account.BillGuide">
<div class="d-flex flex-row bill_guide_container mb-3" t-att-class="{ 'mb-9': props.largeIcons }">
<div class="bill_guide_left d-flex align-items-center justify-content-center py-3">
<div>
<div class="text-center">
<img t-att-class="{ 'bill-guide-img': props.largeIcons }" src="/web/static/img/folder.svg"/>
</div>
<div class="text-center mt-2">
<span class="btn account_drag_drop_btn pe-none" t-att-class="{ 'btn-lg': props.largeIcons }">Drag &amp; drop</span>
<div t-if="showSampleAction">
<span class="btn pe-none px-1 fw-normal">or</span>
<a class="btn btn-link px-0 fw-normal"
t-att-class="{ 'btn-lg': props.largeIcons }"
href="#"
type="object"
name="action_create_vendor_bill"
journal_type="purchase"
groups="account.group_account_invoice"
t-on-click="() => this.handleButtonClick('action_create_vendor_bill')"
>
try our sample
</a>
</div>
</div>
</div>
</div>
<div class="separator_wrapper d-flex justify-content-center flex-shrink-1">
<div class="word-separator d-flex flex-column align-items-center">
<div class="vertical-line border-start flex-grow-1 mt-2"/>
<div class="m-2">
or
</div>
<div class="vertical-line border-start flex-grow-1 mb-2"/>
</div>
</div>
<div class="bill_guide_right d-flex align-items-center justify-content-center py-3">
<div t-if="alias">
<div class="text-center">
<img t-att-class="{ 'bill-guide-img': props.largeIcons }" src="/account/static/src/img/bill.svg" alt="Email bills"/>
</div>
<div class="text-center mt-2">
<div class="">
<span class="btn pe-none px-1 fw-normal">Send a bill to</span>
<a class="btn btn-link px-0 fw-normal" t-attf-href="mailto:{{alias}}" t-out="alias"></a>
</div>
<div>
<span class="btn pe-none px-1 fw-normal">or</span>
<a href="#"
type="object"
class="btn btn-link px-0 fw-normal"
t-on-click="() => this.handleButtonClick('action_create_new')"
groups="account.group_account_invoice"
>
Create manually
</a>
</div>
</div>
</div>
<div t-else="">
<div class="text-center">
<img t-att-class="{ 'bill-guide-img': props.largeIcons }" src="/web/static/img/bill.svg" alt="Create bill manually"/>
</div>
<div class="text-center mt-2">
<div class="">
<a href="#"
type="object"
class="o_invoice_new"
t-on-click="() => this.openVendorBill()"
groups="account.group_account_invoice"
>
Create a bill manually
</a>
</div>
</div>
</div>
</div>
</div>
</t>
</templates>