19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:21 +01:00
parent 7dc55599c6
commit 7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions

View file

@ -1,6 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_invoice_tree_inherit_i10n_cn" model="ir.ui.view">
<field name="name">view.invoice.tree.inherit.i10n.cn</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_invoice_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='ref']" position="after">
<field name="fapiao" optional="hide"/>
</xpath>
</field>
</record>
<record id="account_move_form_l10n_cn" model="ir.ui.view">
<field name="name">l10n_cn.account.move.form</field>
<field name="model">account.move</field>
@ -8,8 +19,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='ref']" position="after">
<field name="move_type" invisible='1'/>
<field name="fapiao" attrs="{'invisible': ['|', ('country_code','!=', 'CN'),
('move_type', 'not in', ['out_invoice', 'out_refund', 'in_invoice', 'in_refund'])]}"/>
<field name="fapiao" invisible="country_code != 'CN' or move_type not in ['out_invoice', 'out_refund', 'in_invoice', 'in_refund']"/>
</xpath>
</field>
</record>

View file

@ -2,14 +2,12 @@
<odoo>
<data>
<template id="external_layout_boxed" inherit_id="web.external_layout_boxed" primary="True">
<xpath expr="//div[hasclass('o_boxed_header')]" position="replace">
<div class="o_boxed_header">
<xpath expr="//div[contains(@t-attf-class, 'header')]/div" position="replace">
<div class="row mb8">
<div class="col-3 mb4">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 45px;" alt="Logo"/>
</div>
</div>
</div>
</xpath>
</template>
@ -22,37 +20,37 @@
<div align="center">
<h2>
<span>记账凭证</span>
<span>Accounting Voucher</span>
</h2>
</div>
<div id="company" class="row col-auto">
<div id="company" class="row flex-grow-1">
<span t-field="o.company_id.name"/>
</div>
<div id="informations" class="row">
<!-- offset intentionally for period -->
<div class="col-3 offset-3" name="date">
<strong>日期:</strong>
<strong>Date:</strong>
<span t-field="o.date"/>
</div>
<div class="col-4" t-if="o.name" name="name">
<strong>凭证号:</strong>
<strong>Reference:</strong>
<span t-field="o.name"/>
</div>
<div class="col-2">
<strong>附件数:</strong>
<strong>Number of attachments:</strong>
<span t-esc="o._count_attachments()"/>
</div>
</div>
<table class="table table-sm o_main_table table-striped" name="entry_line_table">
<table class="table table-borderless o_main_table" name="entry_line_table">
<thead>
<tr>
<t t-set="colspan" t-value="4"/>
<th name="th_description" class="text-center"><span>摘要</span></th>
<th name="th_account" class="text-center"><span>科目</span></th>
<th name="th_debit" class="text-center"><span>借方</span></th>
<th name="th_credit" class="text-center"><span>贷方</span></th>
<th name="th_description" class="text-center"><span>Balance</span></th>
<th name="th_account" class="text-center"><span>Account</span></th>
<th name="th_debit" class="text-center"><span>Debit</span></th>
<th name="th_credit" class="text-center"><span>Credit</span></th>
</tr>
</thead>
<tbody class="invoice_tbody">
@ -81,7 +79,7 @@
</t>
<t>
<td name="total" colspan="2">
<span>合计:</span>
<span>Total:</span>
<span t-esc="o._convert_to_amount_in_word(total_debit)" />
</td>
<td name="total_debit">
@ -96,13 +94,13 @@
<div id="staff" class="row" style="color:black">
<div class="col-4">
<strong>审核:</strong>
<strong>Validator:</strong>
</div>
<div class="col-4">
<strong>过账:</strong>
<strong>Poster:</strong>
</div>
<div class="col-4">
<strong>制单:</strong>
<strong>Salesperson:</strong>
<span t-esc="o.invoice_user_id.name"/>
</div>
</div>