- Added new snippet for hr_skills to show skill type ID in employee skill level view tree - Updated account snippets to show active status in account list and improve invoice document formatting - Enhanced base snippets to show company ID in company tree view - Added editable top functionality to timesheet view tree user - Introduced new sale order document styling for Allnet - Updated web address layout with Allnet styling and improved positioning - Added website header brand logo URL for Korporation - Added options to hide state and street2 fields in website sale address form - Updated modules.md with new and updated modules across various OCA repositories - Added hr_skills.md to snippets documentation - Updated sidebar.js to include hr_skills snippet
1603 lines
65 KiB
Markdown
1603 lines
65 KiB
Markdown
# Web
|
|
|
|
## Address Layout
|
|
|
|
### Colclass Value
|
|
|
|
ID: `mint_system.web.address_layout.colclass_value`
|
|
|
|
```xml
|
|
<data inherit_id="web.address_layout" priority="50">
|
|
|
|
<xpath expr="//t[@t-set='colclass']" position="replace">
|
|
<t t-set="colclass" t-value="'col-sm-5' if report_type == 'html' else 'col-5'"/>
|
|
</xpath>
|
|
|
|
</data>
|
|
|
|
```
|
|
Edit: [snippets/mint_system.web.address_layout.colclass_value.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.address_layout.colclass_value.xml)
|
|
|
|
Source: [snippets/mint_system.web.address_layout.colclass_value.xml](https://odoo.build/snippets/mint_system.web.address_layout.colclass_value.xml)
|
|
|
|
### Format Address Block
|
|
|
|
ID: `mint_system.web.address_layout.format_address_block`
|
|
|
|
```xml
|
|
<data inherit_id="web.address_layout" priority="50">
|
|
<xpath expr="//t[@t-if='address']" position="replace">
|
|
<t t-if="address">
|
|
<div class="address row">
|
|
<t t-if="information_block">
|
|
<t t-set="colclass" t-value="'col-5 offset-1'"/>
|
|
<div name="information_block" class="col-5 offset-1">
|
|
<t t-raw="information_block"/>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<div class="row">
|
|
<div name="address" t-att-class="'col-5 offset-1'">
|
|
<t t-raw="address"/>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Edit: [snippets/mint_system.web.address_layout.format_address_block.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.address_layout.format_address_block.xml)
|
|
|
|
Source: [snippets/mint_system.web.address_layout.format_address_block.xml](https://odoo.build/snippets/mint_system.web.address_layout.format_address_block.xml)
|
|
|
|
### Repositioning Address Blocks
|
|
|
|
ID: `mint_system.web.address_layout.repositioning_address_blocks`
|
|
|
|
```xml
|
|
<data inherit_id="web.address_layout" priority="50">
|
|
<xpath expr="//div" position="replace">
|
|
<div t-if="address" class="address row mb-4" title="This block is not always present depending on the printed document.">
|
|
<!-- ADRESSE LINKS -->
|
|
<div name="address" class="col-6">
|
|
<t t-esc="address or None">
|
|
<div class="bg-light border-1 rounded h-100 d-flex flex-column align-items-center justify-content-center p-4 opacity-75 text-muted text-center">
|
|
<strong>Address block</strong>
|
|
<div>Usually contains the address of the document's recipient.</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<!-- INFORMATIONEN RECHTS -->
|
|
<t t-if="information_block">
|
|
<div name="information_block" class="col-5 offset-1">
|
|
<t t-out="information_block or None">
|
|
<div class="bg-light border-1 rounded h-100 d-flex flex-column align-items-center justify-content-center p-4 opacity-75 text-muted text-center">
|
|
<strong>Information block</strong>
|
|
<div>Usually contains a source address or a complementary address.</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Edit: [snippets/mint_system.web.address_layout.repositioning_address_blocks.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.address_layout.repositioning_address_blocks.xml)
|
|
|
|
Source: [snippets/mint_system.web.address_layout.repositioning_address_blocks.xml](https://odoo.build/snippets/mint_system.web.address_layout.repositioning_address_blocks.xml)
|
|
|
|
### Style Allnet
|
|
|
|
ID: `mint_system.web.address_layout.style_allnet`
|
|
|
|
```xml
|
|
<data inherit_id="sale.report_saleorder_document" priority="60">
|
|
<xpath expr="//div[@id='informations']" position="attributes">
|
|
<attribute name="style">font-size:10pt;</attribute>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Edit: [snippets/mint_system.web.address_layout.style_allnet.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.address_layout.style_allnet.xml)
|
|
|
|
Source: [snippets/mint_system.web.address_layout.style_allnet.xml](https://odoo.build/snippets/mint_system.web.address_layout.style_allnet.xml)
|
|
|
|
## Assets Common
|
|
|
|
### Pivot Measure White Space
|
|
|
|
ID: `mint_system.web.assets_common.pivot_measure_white_space`
|
|
|
|
```xml
|
|
<data inherit_id="web.assets_common" priority="50">
|
|
<xpath expr="." position="inside">
|
|
<style>
|
|
.o_pivot table thead th:not(.o_pivot_header_cell_closed):not(.o_pivot_header_cell_opened):not(.o_pivot_header_cell) {
|
|
white-space: pre-wrap;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Edit: [snippets/mint_system.web.assets_common.pivot_measure_white_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.assets_common.pivot_measure_white_space.xml)
|
|
|
|
Source: [snippets/mint_system.web.assets_common.pivot_measure_white_space.xml](https://odoo.build/snippets/mint_system.web.assets_common.pivot_measure_white_space.xml)
|
|
|
|
### Set Chatter Width
|
|
|
|
ID: `mint_system.web.assets_common.set_chatter_width`
|
|
|
|
```xml
|
|
<data inherit_id="web.assets_common" priority="50">
|
|
<xpath expr="." position="inside">
|
|
<style>
|
|
@media (min-width: 1534px) {
|
|
.o_FormRenderer_chatterContainer {
|
|
max-width: 600px !important;
|
|
}
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Edit: [snippets/mint_system.web.assets_common.set_chatter_width.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.assets_common.set_chatter_width.xml)
|
|
|
|
Source: [snippets/mint_system.web.assets_common.set_chatter_width.xml](https://odoo.build/snippets/mint_system.web.assets_common.set_chatter_width.xml)
|
|
|
|
### Set Form Width
|
|
|
|
ID: `mint_system.web.assets_common.set_form_width`
|
|
|
|
```xml
|
|
<data inherit_id="web.assets_common" priority="50">
|
|
<xpath expr="." position="inside">
|
|
<style>
|
|
@media (min-width: 992px) {
|
|
.o_form_view .o_form_sheet_bg > .o_form_sheet {
|
|
max-width: 1450px !important;
|
|
}
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Edit: [snippets/mint_system.web.assets_common.set_form_width.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.assets_common.set_form_width.xml)
|
|
|
|
Source: [snippets/mint_system.web.assets_common.set_form_width.xml](https://odoo.build/snippets/mint_system.web.assets_common.set_form_width.xml)
|
|
|
|
## Brand Promotion Message
|
|
|
|
### Remove
|
|
|
|
ID: `mint_system.web.brand_promotion_message.remove`
|
|
|
|
```xml
|
|
<data inherit_id="web.brand_promotion_message" priority="50">
|
|
<xpath expr="//t[@name='Brand Promotion Message']" position="replace">
|
|
<t name="Brand Promotion Message" t-name="web.brand_promotion_message"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Edit: [snippets/mint_system.web.brand_promotion_message.remove.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.brand_promotion_message.remove.xml)
|
|
|
|
Source: [snippets/mint_system.web.brand_promotion_message.remove.xml](https://odoo.build/snippets/mint_system.web.brand_promotion_message.remove.xml)
|
|
|
|
## External Layout
|
|
|
|
### Worksheet
|
|
|
|
ID: `mint_system.web.external_layout.worksheet`
|
|
|
|
```xml
|
|
<data inherit_id="web.external_layout" priority="50">
|
|
<t t-name="web.external_layout.worksheet">
|
|
<t t-if="not o" t-set="o" t-value="doc"/>
|
|
<t t-if="not company">
|
|
<!-- Multicompany -->
|
|
<t t-if="company_id">
|
|
<t t-set="company" t-value="company_id"/>
|
|
</t>
|
|
<t t-elif="o and 'company_id' in o and o.company_id.sudo()">
|
|
<t t-set="company" t-value="o.company_id.sudo()"/>
|
|
</t>
|
|
<t t-else="else">
|
|
<t t-set="company" t-value="res_company"/>
|
|
</t>
|
|
</t>
|
|
<div t-attf-class="article">
|
|
<t t-out="0"/>
|
|
</div>
|
|
<div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout">
|
|
<div align="right">
|
|
Page: <span class="page"/>
|
|
/ <span class="topage"/>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</data>
|
|
|
|
```
|
|
Edit: [snippets/mint_system.web.external_layout.worksheet.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.web.external_layout.worksheet.xml)
|
|
|
|
Source: [snippets/mint_system.web.external_layout.worksheet.xml](https://odoo.build/snippets/mint_system.web.external_layout.worksheet.xml)
|
|
|
|
## External Layout Bold
|
|
|
|
### Add Bank
|
|
|
|
ID: `mint_system.web.external_layout_bold.add_bank`
|
|
|
|
```xml
|
|
<data inherit_id="web.external_layout_bold" priority="50">
|
|
|
|
<xpath expr="//span[@t-field='company.report_footer']/../../div[1]" position="attributes">
|
|
<attribute |