Skip to content

Commit

Permalink
Add Monthly and At Shipping invoicing mode
Browse files Browse the repository at this point in the history
The related PR on the OCA is

* OCA/account-invoicing#755

BSCOS-466
  • Loading branch information
TDu authored and kv1612 committed Oct 19, 2021
1 parent 03e8feb commit 0275c39
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions odoo/local-src/cosanum_account_invoice_mode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Cosanum Account Invoicing Mode
==============================

Cosanum customization for account invoicing modes.
It adds a Lobster mode to send the e-invoice.
1 change: 1 addition & 0 deletions odoo/local-src/cosanum_account_invoice_mode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions odoo/local-src/cosanum_account_invoice_mode/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
"name": "Cosanum Account Invoicing Mode",
"summary": "Cosanum customization for account invoicing modes.",
"version": "13.0.1.0.0",
"category": "Hidden",
"author": "Camptocamp",
"license": "AGPL-3",
"depends": [
"account_invoice_mode_at_shipping",
"stock_picking_group_by_partner_by_carrier",
],
"website": "https://www.camptocamp.com",
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_picking
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

from odoo import models


class StockPicking(models.Model):
_inherit = "stock.picking"

def _get_sales_order_to_invoice(self):
"""Get all sale order grouped in the picking."""
return self.sale_ids

0 comments on commit 0275c39

Please sign in to comment.