19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:21 +01:00
parent 7dc55599c6
commit 7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions

View file

@ -1,10 +1,10 @@
# India Sales and Warehouse Management
Define default sales journal on the warehouse,
help you to choose correct sales journal on the sales order when
you change the warehouse.
useful when you setup the multiple GSTIN units.
Get the warehouse address if the invoice is created from the Sale Order
In Indian EDI we send shipping address details if available
So this module is to get the warehouse address if the invoice is created from Sale Order
## Installation
@ -15,38 +15,16 @@ pip install odoo-bringout-oca-ocb-l10n_in_sale_stock
## Dependencies
This addon depends on:
- l10n_in_sale
- l10n_in_stock
## Manifest Information
- **Name**: India Sales and Warehouse Management
- **Version**: 0.1
- **Category**: Accounting/Localizations/Sale
- **License**: LGPL-3
- **Installable**: False
- sale_stock
## Source
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_in_sale_stock`.
- Repository: https://github.com/OCA/OCB
- Branch: 19.0
- Path: addons/l10n_in_sale_stock
## License
This package maintains the original LGPL-3 license from the upstream Odoo project.
## Documentation
- Overview: doc/OVERVIEW.md
- Architecture: doc/ARCHITECTURE.md
- Models: doc/MODELS.md
- Controllers: doc/CONTROLLERS.md
- Wizards: doc/WIZARDS.md
- Reports: doc/REPORTS.md
- Security: doc/SECURITY.md
- Install: doc/INSTALL.md
- Usage: doc/USAGE.md
- Configuration: doc/CONFIGURATION.md
- Dependencies: doc/DEPENDENCIES.md
- Troubleshooting: doc/TROUBLESHOOTING.md
- FAQ: doc/FAQ.md
This package preserves the original LGPL-3 license.

View file

@ -3,28 +3,27 @@
{
'name': "India Sales and Warehouse Management",
'icon': '/l10n_in/static/description/icon.png',
'summary': """
Define default sales journal on the warehouse""",
'summary': "Get warehouse address if the invoice is created from Sale Order",
'description': """
Define default sales journal on the warehouse,
help you to choose correct sales journal on the sales order when
you change the warehouse.
useful when you setup the multiple GSTIN units.
Get the warehouse address if the invoice is created from the Sale Order
In Indian EDI we send shipping address details if available
So this module is to get the warehouse address if the invoice is created from Sale Order
""",
'author': "Odoo",
'website': "https://www.odoo.com",
'category': 'Accounting/Localizations/Sale',
'version': '0.1',
'depends': ['l10n_in_sale', 'l10n_in_stock'],
'data': [
'views/stock_warehouse_views.xml',
'depends': [
'l10n_in_sale',
'l10n_in_stock',
'sale_stock'
],
'auto_install': True,
'author': 'Odoo S.A.',
'license': 'LGPL-3',
}

View file

@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_in_sale_stock
#
# Weblate <noreply-mt-weblate@weblate.org>, 2025.
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-30 19:07+0000\n"
"PO-Revision-Date: 2025-11-17 03:12+0000\n"
"Last-Translator: Weblate <noreply-mt-weblate@weblate.org>\n"
"Language-Team: Hindi <https://translate.odoo.com/projects/odoo-19-l10n/"
"l10n_in_sale_stock/hi/>\n"
"Language: hi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n==0 || n==1);\n"
"X-Generator: Weblate 5.12.2\n"
#. module: l10n_in_sale_stock
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_account_move__display_name
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_move__display_name
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_picking__display_name
msgid "Display Name"
msgstr "डिस्प्ले का नाम"
#. module: l10n_in_sale_stock
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_account_move__id
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_move__id
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_picking__id
msgid "ID"
msgstr "आईडी"
#. module: l10n_in_sale_stock
#: model:ir.model,name:l10n_in_sale_stock.model_account_move
msgid "Journal Entry"
msgstr "जर्नल एंट्री"
#. module: l10n_in_sale_stock
#: model:ir.model,name:l10n_in_sale_stock.model_stock_move
msgid "Stock Move Ewaybill"
msgstr ""
#. module: l10n_in_sale_stock
#: model:ir.model,name:l10n_in_sale_stock.model_stock_picking
msgid "Stock Picking - Delivery Guide (Uruguay)"
msgstr ""
#~ msgid "Transfer"
#~ msgstr "स्थानांतरण"

View file

@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_in_sale_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-30 19:07+0000\n"
"PO-Revision-Date: 2025-12-30 19:07+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_in_sale_stock
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_account_move__display_name
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_move__display_name
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_picking__display_name
msgid "Display Name"
msgstr ""
#. module: l10n_in_sale_stock
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_account_move__id
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_move__id
#: model:ir.model.fields,field_description:l10n_in_sale_stock.field_stock_picking__id
msgid "ID"
msgstr ""
#. module: l10n_in_sale_stock
#: model:ir.model,name:l10n_in_sale_stock.model_account_move
msgid "Journal Entry"
msgstr ""
#. module: l10n_in_sale_stock
#: model:ir.model,name:l10n_in_sale_stock.model_stock_move
msgid "Stock Move Ewaybill"
msgstr ""
#. module: l10n_in_sale_stock
#: model:ir.model,name:l10n_in_sale_stock.model_stock_picking
msgid "Stock Picking - Delivery Guide (Uruguay)"
msgstr ""

View file

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import sale_order
from . import stock_warehouse
from . import account_move
from . import stock_move
from . import stock_picking

View file

@ -1,16 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api
class SaleOrder(models.Model):
_inherit = "sale.order"
@api.depends('company_id', 'warehouse_id')
def _compute_l10n_in_journal_id(self):
super()._compute_l10n_in_journal_id()
for order in self:
if order.country_code == 'IN':
if order.warehouse_id.l10n_in_sale_journal_id:
order.l10n_in_journal_id = order.warehouse_id.l10n_in_sale_journal_id.id

View file

@ -0,0 +1,31 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class StockMove(models.Model):
_inherit = "stock.move"
def _l10n_in_get_product_price_unit(self):
self.ensure_one()
if line_id := self.sale_line_id:
if qty := line_id.product_uom_qty:
company_id = line_id.company_id
return line_id.currency_id._convert(
line_id.product_uom_id._compute_price(line_id.price_subtotal / qty, self.product_uom),
company_id.currency_id,
company_id,
self.date,
round=False
)
return 0.00
return super()._l10n_in_get_product_price_unit()
def _l10n_in_get_product_tax(self):
self.ensure_one()
if line_id := self.sale_line_id:
return {
'is_from_order': True,
'taxes': line_id.tax_ids,
}
return super()._l10n_in_get_product_tax()

View file

@ -0,0 +1,19 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class StockPicking(models.Model):
_inherit = 'stock.picking'
def _l10n_in_get_invoice_partner(self):
self.ensure_one()
if line_id := self.sale_id:
return line_id.partner_invoice_id
return False
def _l10n_in_get_fiscal_position(self):
self.ensure_one()
if sale_order := self.sale_id:
return sale_order.fiscal_position_id
return super()._l10n_in_get_fiscal_position()

View file

@ -1,10 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api
class Stock(models.Model):
_inherit = 'stock.warehouse'
l10n_in_sale_journal_id = fields.Many2one('account.journal', string="Sale Journal")

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_stock_warehouse_inherit_l10n_in_stock" model="ir.ui.view">
<field name="name">stock.warehouse.form.inherit.l10n.in.stock</field>
<field name="model">stock.warehouse</field>
<field name="inherit_id" ref="stock.view_warehouse"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="l10n_in_sale_journal_id" domain="[('company_id', '=', company_id), ('type','=','sale')]" options="{'no_create': True}"/>
</xpath>
</field>
</record>
</odoo>

View file

@ -2,13 +2,15 @@
name = "odoo-bringout-oca-ocb-l10n_in_sale_stock"
version = "16.0.0"
description = "India Sales and Warehouse Management -
Define default sales journal on the warehouse"
Get warehouse address if the invoice is created from Sale Order
"
authors = [
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
]
dependencies = [
"odoo-bringout-oca-ocb-l10n_in_sale>=16.0.0",
"odoo-bringout-oca-ocb-l10n_in_stock>=16.0.0",
"odoo-bringout-oca-ocb-l10n_in_sale>=19.0.0",
"odoo-bringout-oca-ocb-l10n_in_stock>=19.0.0",
"odoo-bringout-oca-ocb-sale_stock>=19.0.0",
"requests>=2.25.1"
]
readme = "README.md"
@ -18,7 +20,7 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
]