Debian Codegraph @

addons/l10n_in_stock/models/stock_picking.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 # Part of Odoo. See LICENSE file for full copyright and licensing details.
3
4 from odoo import models
5
6
7 class StockPicking(models.Model):
8 _inherit = 'stock.picking'
9
10 def _should_generate_commercial_invoice(self):
11 super(StockPicking, self)._should_generate_commercial_invoice()
12 return True
13
14 def _get_l10n_in_dropship_dest_partner(self):
15 """
16 To be overriden by `l10n_in_purchase_stock` will be ideal to use it for `l10n_in_ewaybill_stock`
17 returns destination partner from purchase_id
18 """
19 pass
20
21 def _l10n_in_get_invoice_partner(self):
22 """
23 To be overriden by `l10n_in_sale_stock` will be ideal to use it for `l10n_in_ewaybill_stock`
24 returns invoice partner from sale_id
25 """
26 pass
27
28 def _l10n_in_get_fiscal_position(self):
29 """
30 To be inherited by `l10n_in_*_stock` will be ideal to use it for `l10n_in_ewaybill_stock`
31 returns fiscal position from order
32 """
33 pass