fix: lint snippets

This commit is contained in:
Janik von Rotz committed 2024-05-27 10:00:45 +02:00
1 parent 5b9e3f2922
commit 04ecc7390e
9 files changed
+53 -74

No files matched your search

+14 -8
View File
@@ -461,16 +461,22 @@ ID: `mint_system.account.report_invoice_document.bank_account`
```xml
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="/t/t/div/p[2]" position="after">
<t t-if="o.currency_id.name=='CHF'">
<t t-set="account" t-value="o.company_id.bank_ids.browse(13)"/>
<t t-if="o.company_id.id==1">
<t t-if="o.currency_id.name=='CHF'">
<t t-set="account" t-value="o.company_id.bank_ids.browse(4)"/>
</t>
<t t-if="o.currency_id.name=='EUR'">
<t t-set="account" t-value="o.company_id.bank_ids.browse(5)"/>
</t>
</t>
<t t-if="o.currency_id.name=='EUR'">
<t t-set="account" t-value="o.company_id.bank_ids.browse(14)"/>
</t>
<t t-if="o.currency_id.name=='USD'">
<t t-set="account" t-value="o.company_id.bank_ids.browse(15)"/>
<t t-if="o.company_id.id==3">
<t t-set="account" t-value="o.company_id.bank_ids.browse(21)"/>
</t>
<div class="row">
<div class="col">
<span>IBAN: </span>
@@ -483,8 +489,8 @@ ID: `mint_system.account.report_invoice_document.bank_account`
</div>
</div>
</xpath>
</data>
</data>
```
Source: [snippets/account.report_invoice_document.bank_account.xml](https://github.com/Mint-System/Odoo-Build/tree/16.0/snippets/account.report_invoice_document.bank_account.xml)
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="x_default_code" model="ir.model.fields">
<field name="field_description">Internal Reference</field>
<field name="model">stock.production.lot</field>
<field name="model_id" ref="stock.model_stock_production_lot"/>
<field name="name">x_default_code</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="ttype">char</field>
</record>
</odoo>
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="x_forcepoint_pol" model="ir.model.fields">
<field name="field_description">Forcepoint PoL</field>
<field name="model">stock.production.lot</field>
<field name="model_id" ref="stock.model_stock_production_lot"/>
<field name="name">x_forcepoint_pol</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="ttype">char</field>
</record>
</odoo>
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="x_forcepoint_pos" model="ir.model.fields">
<field name="field_description">Forcepoint PoS</field>
<field name="model">stock.production.lot</field>
<field name="model_id" ref="stock.model_stock_production_lot"/>
<field name="name">x_forcepoint_pos</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="ttype">char</field>
</record>
</odoo>
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="x_forcepoint_pos" model="ir.model.fields">
<field name="field_description">Forcepoint PoS</field>
<field name="model">stock.production.lot</field>
<field name="model_id" ref="stock.model_stock_production_lot"/>
<field name="name">x_forcepoint_pos</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="ttype">char</field>
</record>
</odoo>
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="x_managed_service_field" model="ir.model.fields">
<field name="field_description">Managed Service</field>
<field name="model">stock.production.lot</field>
<field name="model_id" ref="stock.model_stock_production_lot"/>
<field name="name">x_managed_service</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="ttype">selection</field>
<field name="selection">[
('high', 'MS1 High'),
('medium', 'MS1 Medium'),
('low', 'MS1 Low'),
('central', 'MS1 Central')
]</field>
</record>
</odoo>
+13
View File
@@ -4247,6 +4247,19 @@ ID: `mint_system.sale.view_order_line_tree.editable`
```
Source: [snippets/sale.view_order_line_tree.editable.xml](https://github.com/Mint-System/Odoo-Build/tree/16.0/snippets/sale.view_order_line_tree.editable.xml)
### Enable Create
ID: `mint_system.sale.view_order_line_tree.enable_create`
```xml
<?xml version="1.0"?>
<data inherit_id="sale.view_order_line_tree" priority="50">
<tree position="attributes">
<attribute name="create">true</attribute>
</tree>
</data>
```
Source: [snippets/sale.view_order_line_tree.enable_create.xml](https://github.com/Mint-System/Odoo-Build/tree/16.0/snippets/sale.view_order_line_tree.enable_create.xml)
### Fields Optional Hide
ID: `mint_system.sale.view_order_line_tree.fields_optional_hide`
```xml
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="sale.view_order_line_tree" priority="50">
<tree position="attributes">
<attribute name="create">true</attribute>
</tree>
</data>
+20
View File
@@ -123,6 +123,26 @@ ID: `mint_system.web.brand_promotion_message.remove`
Source: [snippets/web.brand_promotion_message.remove.xml](https://github.com/Mint-System/Odoo-Build/tree/16.0/snippets/web.brand_promotion_message.remove.xml)
## External Layout Bold
### Add Bank
ID: `mint_system.web.external_layout_bold.add_bank`
```xml
<?xml version="1.0"?>
<data inherit_id="web.external_layout_bold" priority="50">
<xpath expr="//span[@t-field='company.report_footer']/../../div[2]" position="before">
<div class="col-4">
<div>
IBAN: <span t-field="company.partner_id.bank_ids.acc_number"/>
</div>
<div>
BIC: <span t-field="company.partner_id.bank_ids.bank_id.bic"/>
</div>
</div>
</xpath>
</data>
```
Source: [snippets/web.external_layout_bold.add_bank.xml](https://github.com/Mint-System/Odoo-Build/tree/16.0/snippets/web.external_layout_bold.add_bank.xml)
### Remove Background Image
ID: `mint_system.web.external_layout_bold.remove_background_image`
```xml