def test_lookup_sender(self, testappcfg): """ Test sender lookup on Odoo """ conn = Connection(testappcfg.config) partners = list_partners(conn) assert partners is not None assert len(partners) > 0
def search_sender(): keyword = request.args.get('keyword') data = [] if keyword is None: flash("Search keywords must have at least three (3) characters", "warning") else: if len(keyword) < 3: flash("Search keywords must have at least three (3) characters", "warning") else: conn = Connection(current_app.config) data = list_partners(conn) return render_template("sender_listing.html", data=data)
def list_sender(): conn = Connection(current_app.config) data = list_partners(conn) return render_template("sender_listing.html", data=data)