19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:28 +01:00
parent ff721d030e
commit 7721452493
1826 changed files with 124775 additions and 274114 deletions

View file

@ -1,10 +1,9 @@
# India Purchase and Warehouse Management
Define default purchase journal on the warehouse,
help you to choose correct purchase journal on the purchase order when
you change the picking operation.
useful when you setup the multiple GSTIN units.
Get the warehouse address if the bill is created from the Purchase Order
So this module is to get the warehouse address if the bill is created from Purchase Order
## Installation
@ -15,38 +14,15 @@ pip install odoo-bringout-oca-ocb-l10n_in_purchase_stock
## Dependencies
This addon depends on:
- l10n_in_purchase
- l10n_in_stock
## Manifest Information
- **Name**: India Purchase and Warehouse Management
- **Version**: 1.0
- **Category**: Accounting/Localizations/Purchase
- **License**: LGPL-3
- **Installable**: False
- purchase_stock
## Source
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_in_purchase_stock`.
- Repository: https://github.com/OCA/OCB
- Branch: 19.0
- Path: addons/l10n_in_purchase_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,25 @@
{
'name': "India Purchase and Warehouse Management",
'icon': '/l10n_in/static/description/icon.png',
'summary': """
Define default purchase journal on the warehouse""",
'summary': "Get warehouse address if the bill is created from Purchase Order",
'description': """
Define default purchase journal on the warehouse,
help you to choose correct purchase journal on the purchase order when
you change the picking operation.
useful when you setup the multiple GSTIN units.
Get the warehouse address if the bill is created from the Purchase Order
So this module is to get the warehouse address if the bill is created from Purchase Order
""",
'author': "Odoo",
'website': "https://www.odoo.com",
'category': 'Accounting/Localizations/Purchase',
'version': '1.0',
'depends': ['l10n_in_purchase', 'l10n_in_stock'],
'data': [
'views/stock_warehouse_views.xml',
'depends': [
'l10n_in_stock',
'purchase_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_purchase_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_purchase_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_purchase_stock
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_account_move__display_name
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_move__display_name
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_picking__display_name
msgid "Display Name"
msgstr "डिस्प्ले का नाम"
#. module: l10n_in_purchase_stock
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_account_move__id
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_move__id
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_picking__id
msgid "ID"
msgstr "आईडी"
#. module: l10n_in_purchase_stock
#: model:ir.model,name:l10n_in_purchase_stock.model_account_move
msgid "Journal Entry"
msgstr "जर्नल एंट्री"
#. module: l10n_in_purchase_stock
#: model:ir.model,name:l10n_in_purchase_stock.model_stock_move
msgid "Stock Move Ewaybill"
msgstr ""
#. module: l10n_in_purchase_stock
#: model:ir.model,name:l10n_in_purchase_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_purchase_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_purchase_stock
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_account_move__display_name
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_move__display_name
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_picking__display_name
msgid "Display Name"
msgstr ""
#. module: l10n_in_purchase_stock
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_account_move__id
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_move__id
#: model:ir.model.fields,field_description:l10n_in_purchase_stock.field_stock_picking__id
msgid "ID"
msgstr ""
#. module: l10n_in_purchase_stock
#: model:ir.model,name:l10n_in_purchase_stock.model_account_move
msgid "Journal Entry"
msgstr ""
#. module: l10n_in_purchase_stock
#: model:ir.model,name:l10n_in_purchase_stock.model_stock_move
msgid "Stock Move Ewaybill"
msgstr ""
#. module: l10n_in_purchase_stock
#: model:ir.model,name:l10n_in_purchase_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 purchase_order
from . import stock_warehouse
from . import account_move
from . import stock_picking
from . import stock_move

View file

@ -1,15 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
@api.onchange('company_id', 'picking_type_id')
def l10n_in_onchange_company_id(self):
if self.picking_type_id.warehouse_id and self.picking_type_id.warehouse_id.l10n_in_purchase_journal_id:
self.l10n_in_journal_id = self.picking_type_id.warehouse_id.l10n_in_purchase_journal_id.id
else:
super().l10n_in_onchange_company_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.purchase_line_id:
if qty := line_id.product_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.purchase_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 _get_l10n_in_dropship_dest_partner(self):
self.ensure_one()
if line_id := self.purchase_id:
return line_id.dest_address_id
return False
def _l10n_in_get_fiscal_position(self):
self.ensure_one()
if purchase_order := self.purchase_id:
purchase_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_purchase_journal_id = fields.Many2one('account.journal', string="Purchase 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_purchase_journal_id" domain="[('company_id', '=', company_id), ('type','=','purchase')]" options="{'no_create': True}"/>
</xpath>
</field>
</record>
</odoo>

View file

@ -2,13 +2,14 @@
name = "odoo-bringout-oca-ocb-l10n_in_purchase_stock"
version = "16.0.0"
description = "India Purchase and Warehouse Management -
Define default purchase journal on the warehouse"
Get warehouse address if the bill is created from Purchase Order
"
authors = [
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
]
dependencies = [
"odoo-bringout-oca-ocb-l10n_in_purchase>=16.0.0",
"odoo-bringout-oca-ocb-l10n_in_stock>=16.0.0",
"odoo-bringout-oca-ocb-l10n_in_stock>=19.0.0",
"odoo-bringout-oca-ocb-purchase_stock>=19.0.0",
"requests>=2.25.1"
]
readme = "README.md"
@ -18,7 +19,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",
]