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

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

Build:
Build:
LAST BUILD BRANCH: 12.0-remove_product_stock_state
DEFAULT BRANCH: 8.0
Ran 26 Apr 2019 07:46AM UTC
Jobs 2
Files 38
Run time 1min
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

pending completion
2393

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

868 of 1556 relevant lines covered (55.78%)

0.62 hits per line

Jobs
ID Job ID Ran Files Coverage
4 2393.4 (UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="product_stock_state,shopinvader_product_stock,shopinvader_product_stock_state,shopinvader_delivery_carrier") 26 Apr 2019 07:46AM UTC 0
55.78
Travis Job 2393.4
5 2393.5 (UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="base_url") 26 Apr 2019 07:48AM UTC 0
81.98
Travis Job 2393.5
Source Files on build 2393
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2393
  • b3e1bee2 on github
  • Prev Build on 10.0 (#2392)
  • Next Build on 10.0 (#2394)
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