feat: new snippets

This commit is contained in:
Janik von Rotz committed 2024-05-28 09:42:03 +02:00
1 parent 996e6cbc94
commit ca2ad5b942
5 files changed
+30 -5

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ export default ['/snippets/account.md',
'/snippets/agreement_legal.md',
'/snippets/base.md',
'/snippets/base_install_request.md',
'/snippets/base_location.md',
'/snippets/business_requirement.md',
'/snippets/calendar.md',
'/snippets/certificate_planer.md',
+1
View File
@@ -13,6 +13,7 @@ In Odoo everything is described as an XML document. Snippets are modificatio
## [Agreement Legal](snippets/agreement_legal.md)
## [Base](snippets/base.md)
## [Base Install Request](snippets/base_install_request.md)
## [Base Location](snippets/base_location.md)
## [Business Requirement](snippets/business_requirement.md)
## [Calendar](snippets/calendar.md)
## [Certificate Planer](snippets/certificate_planer.md)
+13
View File
@@ -0,0 +1,13 @@
# Base Location
## View Partner Form
### Remove Zip Id
ID: `mint_system.base_location.view_partner_form.remove_zip_id`
```xml
<?xml version="1.0"?>
<data inherit_id="base_location.view_partner_form" priority="50">
<field name="zip_id" position="replace" />
</data>
```
Source: [snippets/base_location.view_partner_form.remove_zip_id.xml](https://github.com/Mint-System/Odoo-Build/tree/16.0/snippets/base_location.view_partner_form.remove_zip_id.xml)
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<data inherit_id="base_location.view_partner_form" priority="50">
<field name="zip_id" position="replace" />
</data>
+11 -5
View File
@@ -126,20 +126,26 @@ Source: [snippets/web.brand_promotion_message.remove.xml](https://github.com/Min
### 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">
<xpath expr="//span[@t-field='company.report_footer']/../../div[1]" position="attributes">
<attribute name="class">col-3</attribute>
</xpath>
<xpath expr="//span[@t-field='company.report_footer']/../../div[3]" position="replace"/>
<xpath expr="//span[@t-field='company.report_footer']/../../div[2]" position="after">
<div class="col-4">
<div>
IBAN: <span t-field="company.partner_id.bank_ids.acc_number"/>
IBAN: <span t-field="company.partner_id.bank_ids[0].acc_number"/>
</div>
<div>
BIC: <span t-field="company.partner_id.bank_ids.bank_id.bic"/>
BIC: <span t-field="company.partner_id.bank_ids[0].bank_id.bic"/>
</div>
</div>
</xpath>
</data>
</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)