| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 378 |
| Technical Name |
bw_fetchmail_gmail_label |
| License | OPL-1 |
| Website | https://bewisesro.eu |
Route Gmail emails to different Odoo models by label
One inbox — multiple destinations
BW Gmail Label Router lets you connect a single Gmail (or IMAP) account to Odoo and automatically route each incoming email to the right model based on its Gmail label — no extra email addresses, no extra mail servers.
Key Features
One mail server, multiple routes
Map any Gmail label to any Odoo Mail Alias — Helpdesk, CRM, Sales, Vendor Bills, custom models.
Works with Gmail OAuth & plain IMAP
OAuth via the google_gmail Enterprise module, or use an app password on Community.
Nested labels supported
Odoo/Invoices, Odoo/CRM/Trade Shows — any depth, spaces allowed.
Test Labels button
Instantly verify that every mapped label exists and see how many unread messages it contains.
Vendor Bill auto-creation
Route to account.move and the module creates a draft vendor bill, matches the sender
to a partner, posts the email body in the chatter and attaches all PDF files.
Configure Routing Rules
Add one row per Gmail label and select the Odoo alias to route to. Use the drag handle to set priority order.
Discover Your Gmail Labels
Not sure what your Gmail labels are called?
Click List Labels to fetch the full list of mailboxes
directly from your IMAP server — including nested labels.
Copy the exact label name into your routing rule — no guessing.
Test Before You Go Live
Click Test Routing Rules to verify every label in your routing table:
- ✅ Label found — shows unread message count
- ❌ Label not found — fix the name before the next cron run
- ⚠️ Non-ASCII characters detected — rename the label
Click Test Connection to verify IMAP login independently.
How It Works
- Create a Mail Alias in Odoo for each routing target (Helpdesk team, CRM pipeline, Vendor Bills journal, …).
- Open your Incoming Mail Server, go to the new Gmail Label Routing tab.
- Add one row per label: choose the Gmail label name and the Odoo alias.
- Click Test Routing Rules to verify. Done — the standard cron fetches emails automatically.
Vendor Bill Routing
When an alias targets Account Move (Invoices), the module applies smart vendor bill logic:
- Sender email is matched to a res.partner (case-insensitive).
- A draft vendor bill is created with all alias_defaults applied (journal, account, …).
- The email body is posted as a chatter message on the bill.
- All PDF attachments are linked directly to the vendor bill record.
- The email is marked as read in Gmail so it is never fetched twice.
Requirements
- Odoo 18.0 (Enterprise or Community)
- Gmail OAuth requires the google_gmail Enterprise module — plain IMAP with an app password works on Community without it
- Alias Domain must be configured: Settings → General Settings → Discuss → Alias Domain
Support
Need help? Contact us at info@bewisesro.eu or visit bewisesro.eu.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 378 |
| Technical Name |
bw_fetchmail_gmail_label |
| License | OPL-1 |
| Website | https://bewisesro.eu |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module