• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

akretion / odoo-shopinvader / 2393 / 5
83%
8.0: 74%

Build:
Build:
LAST BUILD BRANCH: 12.0-remove_product_stock_state
DEFAULT BRANCH: 8.0
Ran 26 Apr 2019 07:48AM UTC
Files 2
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Apr 2019 07:33AM UTC coverage: 81.982%. Remained the same
UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="base_url"

push

travis-ci

web-flow
Merge pull request #279 from acsone/10.0-shopinvader-emailing

[10.0][ADD] Add ask_mail (abstract) + Implement it for sale
In some case, connected user can ask to re-send documents (pdf) by email.

To implement this behaviour, I create an abstract mail service.
This Abstract service add an entry point for a call "ask_email" with the record id (sale.order for example).

Process of the abstract service

    Load the target (using the id and the exposed model);
    Based on the target, determine the notification type;
    Check if the logged user is the owner of the record (using partner_id by default);
    Launch the notification.

I implement it into the abstract sale (to have it into sale and cart services).
For the sale service, maybe the user need invoices related to a sale. So I add a specific method/service call for this (still using the abstract mail service)

How to use it (by interface)

    Go into backend configuration
    Create a new notification (select the correct type), then a model and the mail template to use.
    Email will be sent automatically when a user request the email

91 of 111 relevant lines covered (81.98%)

0.82 hits per line

Source Files on job 2393.5 (UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="base_url")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1603
  • Travis Job 2393.5
  • b3e1bee2 on github
  • Prev Job for UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="base_url" on 10.0 (#2392.5)
  • Next Job for UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="base_url" on 10.0 (#2394.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc