TIP: You can type at any time to perform a new search.
eBill Paynet
ebill_paynet · OCA/l10n-switzerland
- Repository
- OCA/l10n-switzerland · module folder · Try on Runboat
- Module version
- 1.1.4
- Category
- Uncategorized
- Folder size
- 0.21 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-switzerland
- Last tracking update
- 2026-08-07 07:47:26
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Thierry Ducrest, Stephane Mangin, Dũng (Trần Đình), Vincent Van Rossem, OCA Transbot, OCA-git-bot, oca-travis, Hai Lang, oca-git-bot
- Odoo dependencies
- Python dependencies
- zeep, astor, requests
- System dependencies
- None
- Required by
- ebill_paynet_customer_free_ref, server_env_ebill_paynet
- Description
Code Analysis ⓘ
Views touched (8)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
dws_reject_invoice |
dws_reject_invoice | ir.ui.view | qweb | New |
ebill_payment_contract_form_view |
ebill.payment.contract.form (in ebill_panyet) | ebill.payment.contract | form | Inherits base_ebill_payment_contract.ebill_payment_contract_form_view |
paynet_invoice_message_form_view |
paynet.invoice.message.form | paynet.invoice.message | form | New |
paynet_invoice_message_search_view |
paynet.invoice.message.search | paynet.invoice.message | search | New |
paynet_invoice_message_tree_view |
paynet.invoice.message.tree | paynet.invoice.message | tree | New |
paynet_service_form_view |
paynet.service.form | paynet.service | form | New |
paynet_service_search_view |
paynet.service.search | paynet.service | search | New |
paynet_service_tree_view |
paynet.service.tree | paynet.service | tree | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (5)
New fields (0)
No new fields.
Public methods (5)-
create_paynet_message(self)Generate the paynet message for an invoice. -
get_paynet_other_reference(self)Allows glue module to insert <OTHER-REFERENCE> in paynet <HEADER> Add to the list ref, object strucutred like this: {'type': other reference allowed types, 'no': the content of <Reference-No> desired } -
log_invoice_accepted_by_system(self) -
log_invoice_refused_by_system(self) -
paynet_invoice_line_ids(self)Filter invoice line to be included in XML message. Invoicing line that are UX based (notes, sections) are removed.
New fields (4)
-
is_paynet_contractBooleancompute='_compute_is_paynet_contract'store=False -
payment_typeSelectiondefault='qr'help='Payment type to use for the invoices sent, PDF will be generated and attached accordingly.'selection=[('qr', 'QR'), ('isr', 'ISR')]string='Payment method' -
paynet_account_numberCharsize=20string='Paynet ID' -
paynet_service_idMany2one → paynet.servicecomodel_name='paynet.service'ondelete='restrict'string='Paynet Service'
No public methods.
New fields (11)
-
attachment_idMany2one → ir.attachmentargs: 'ir.attachment', 'PDF' -
ebill_account_numberCharsize=20 args: 'Paynet Id' -
ic_refCharhelp='Document interchange reference'size=14string='IC Ref' -
invoice_idMany2one → account.movecomodel_name='account.move'ondelete='restrict' -
payloadTextargs: 'Payload sent' -
payment_typeSelectiondefault='qr'readonly=Trueselection=[('qr', 'QR'), ('isr', 'ISR'), ('esp', 'ESP'), ('npy', 'NPY')] -
refCharsize=35 args: 'Reference No.' -
responseTextargs: 'Response recieved' -
service_idMany2one → paynet.servicecomodel_name='paynet.service'ondelete='restrict'readonly=Truerequired=Truestring='Paynet Service' -
shipment_idCharhelp='Shipment Id on Paynet service'size=24 -
stateSelectiondefault='draft'selection=[('draft', 'Draft'), ('sent', 'Sent'), ('done', 'Done'), ('reject', 'Reject'), ('error', 'Error')]
-
format_date(date_string=None)@staticmethod -
send_to_paynet(self) -
update_invoice_status(self)Update the export status in the chatter.
New fields (12)
-
activeBooleandefault=True -
client_pidCharrequired=Truesize=17string='Paynet ID' -
ebill_payment_contract_idsOne2many → ebill.payment.contractcomodel_name='ebill.payment.contract'inverse_name='paynet_service_id'readonly=Truestring='Contracts' -
invoice_message_idsOne2many → paynet.invoice.messagecomodel_name='paynet.invoice.message'inverse_name='service_id'readonly=Truestring='Invoice Messages' -
nameCharrequired=True -
operation_timeoutIntegerdefault='600'help='Timeout for each HTTP (GET, POST) request in seconds.'string='HTTP Timeout' -
partner_bank_idMany2one → res.partner.bankcomodel_name='res.partner.bank'ondelete='restrict'string='Bank account' -
passwordChar -
service_typeSelectiondefault='b2b'help='Specify the type of XML exchange with the service.'selection=[('b2b', 'B2B'), ('b2c', 'B2C')]string='Service type' -
urlCharcompute='_compute_url' -
use_test_serviceBooleanhelp='Target the test service'string='Testing' -
usernameChar
-
check_shipments(self)Check for shipments on the service and create jobs to download them. -
confirm_shipment(self, shipment_id)Confirm a shipment reception to the DWS. -
cron_poll_shipment(self)@api.modelCron job to poll for shipments on all active services. -
download_shipment(self, shipment_id)Download a shipment, parse it and if successful, acknowledge it. -
get_shipment_content(self, shipment_id) -
get_shipment_list(self)Get a list of shipments present on the DWS. -
handle_received_shipment(self, res, shipment_id)@api.model -
ping_service(self)Ping the DWS service this works without autentication. -
take_shipment(self, content)Send a shipment via DWS to the Paynet System Return value is the shipment id -
test_ping(self)Test the service from the UI.
New fields (1)
-
paynet_client_order_refCharcompute='_compute_paynet_client_order_ref'
No public methods.
Loading…