generated from OCA/oca-addons-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add company field in donation form
- Loading branch information
Clément
committed
Jul 16, 2024
1 parent
991552b
commit 88f3e2b
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<template id="address_muskathlon" inherit_id="website_sale.address"> | ||
<xpath expr="//input[@name='email']/.." position="before"> | ||
<div | ||
t-attf-class="form-group #{error.get('company') and 'o_has_error' or ''} col-lg-12 div_company_name" | ||
> | ||
<label class="col-form-label" for="company_name">Company</label> | ||
<input | ||
type="text" | ||
name="company_name" | ||
id="company_name" | ||
t-attf-class="form-control #{error.get('company_name') and 'is-invalid' or ''}" | ||
t-att-value="'company_name' in checkout and checkout['company_name']" | ||
/> | ||
</div> | ||
</xpath> | ||
</template> | ||
</odoo> |