Browse Source

Apr 8 [UPDT] : Updated 'stock_move_invoice'

pull/278/merge
AjmalCybro 1 year ago
parent
commit
55ca6ff6f4
  1. 0
      stock_move_invoice/README.rst
  2. 0
      stock_move_invoice/__init__.py
  3. 0
      stock_move_invoice/__manifest__.py
  4. 5
      stock_move_invoice/doc/RELEASE_NOTES.md
  5. 0
      stock_move_invoice/models/__init__.py
  6. 0
      stock_move_invoice/models/account_move.py
  7. 0
      stock_move_invoice/models/res_config_settings.py
  8. 38
      stock_move_invoice/models/stock_picking.py
  9. 0
      stock_move_invoice/security/ir.model.access.csv
  10. 0
      stock_move_invoice/static/description/assets/icons/check.png
  11. 0
      stock_move_invoice/static/description/assets/icons/chevron.png
  12. 0
      stock_move_invoice/static/description/assets/icons/cogs.png
  13. 0
      stock_move_invoice/static/description/assets/icons/consultation.png
  14. 0
      stock_move_invoice/static/description/assets/icons/ecom-black.png
  15. 0
      stock_move_invoice/static/description/assets/icons/education-black.png
  16. 0
      stock_move_invoice/static/description/assets/icons/hotel-black.png
  17. 0
      stock_move_invoice/static/description/assets/icons/license.png
  18. 0
      stock_move_invoice/static/description/assets/icons/lifebuoy.png
  19. 0
      stock_move_invoice/static/description/assets/icons/manufacturing-black.png
  20. 0
      stock_move_invoice/static/description/assets/icons/pos-black.png
  21. 0
      stock_move_invoice/static/description/assets/icons/puzzle.png
  22. 0
      stock_move_invoice/static/description/assets/icons/restaurant-black.png
  23. 0
      stock_move_invoice/static/description/assets/icons/service-black.png
  24. 0
      stock_move_invoice/static/description/assets/icons/trading-black.png
  25. 0
      stock_move_invoice/static/description/assets/icons/training.png
  26. 0
      stock_move_invoice/static/description/assets/icons/update.png
  27. 0
      stock_move_invoice/static/description/assets/icons/user.png
  28. 0
      stock_move_invoice/static/description/assets/icons/wrench.png
  29. 0
      stock_move_invoice/static/description/assets/misc/categories.png
  30. 0
      stock_move_invoice/static/description/assets/misc/check-box.png
  31. 0
      stock_move_invoice/static/description/assets/misc/compass.png
  32. 0
      stock_move_invoice/static/description/assets/misc/corporate.png
  33. 0
      stock_move_invoice/static/description/assets/misc/customer-support.png
  34. 0
      stock_move_invoice/static/description/assets/misc/cybrosys-logo.png
  35. 0
      stock_move_invoice/static/description/assets/misc/features.png
  36. 0
      stock_move_invoice/static/description/assets/misc/logo.png
  37. 0
      stock_move_invoice/static/description/assets/misc/pictures.png
  38. 0
      stock_move_invoice/static/description/assets/misc/pie-chart.png
  39. 0
      stock_move_invoice/static/description/assets/misc/right-arrow.png
  40. 0
      stock_move_invoice/static/description/assets/misc/star.png
  41. 0
      stock_move_invoice/static/description/assets/misc/support.png
  42. 0
      stock_move_invoice/static/description/assets/misc/whatsapp.png
  43. 0
      stock_move_invoice/static/description/assets/modules/1.png
  44. 0
      stock_move_invoice/static/description/assets/modules/2.png
  45. 0
      stock_move_invoice/static/description/assets/modules/3.png
  46. 0
      stock_move_invoice/static/description/assets/modules/4.png
  47. 0
      stock_move_invoice/static/description/assets/modules/5.png
  48. 0
      stock_move_invoice/static/description/assets/modules/6.png
  49. 0
      stock_move_invoice/static/description/assets/screenshots/demo1.png
  50. 0
      stock_move_invoice/static/description/assets/screenshots/demo2.png
  51. 0
      stock_move_invoice/static/description/assets/screenshots/demo3.png
  52. 0
      stock_move_invoice/static/description/assets/screenshots/demo4.png
  53. 0
      stock_move_invoice/static/description/assets/screenshots/demo5.png
  54. 0
      stock_move_invoice/static/description/assets/screenshots/demo6.png
  55. 0
      stock_move_invoice/static/description/assets/screenshots/demo7.png
  56. 0
      stock_move_invoice/static/description/assets/screenshots/demo8.png
  57. 0
      stock_move_invoice/static/description/assets/screenshots/hero.gif
  58. 0
      stock_move_invoice/static/description/banner.png
  59. 0
      stock_move_invoice/static/description/icon.png
  60. 0
      stock_move_invoice/static/description/index.html
  61. 0
      stock_move_invoice/views/account_move_inherited.xml
  62. 0
      stock_move_invoice/views/res_config_settings_inherited.xml
  63. 0
      stock_move_invoice/views/stock_picking_inherited.xml

0
stock_move_invoice/README.rst

0
stock_move_invoice/__init__.py

0
stock_move_invoice/__manifest__.py

5
stock_move_invoice/doc/RELEASE_NOTES.md

@ -9,3 +9,8 @@
#### Version 16.0.1.0.0 #### Version 16.0.1.0.0
##### UPDATE ##### UPDATE
- Update for Invoice From Stock Picking - Update for Invoice From Stock Picking
#### 13.02.2024
#### Version 16.0.1.0.1
##### BUG FIX
- Updated the module by removing the stock move line issue

0
stock_move_invoice/models/__init__.py

0
stock_move_invoice/models/account_move.py

0
stock_move_invoice/models/res_config_settings.py

38
stock_move_invoice/models/stock_picking.py

@ -50,28 +50,21 @@ class StockPicking(models.Model):
current_user = self.env.uid current_user = self.env.uid
if picking_id.picking_type_id.code == 'outgoing': if picking_id.picking_type_id.code == 'outgoing':
customer_journal_id = \ customer_journal_id = \
picking_id.env['ir.config_parameter'].sudo().\ picking_id.env['ir.config_parameter'].sudo(). \
get_param('stock_move_invoice.customer_journal_id') or \ get_param('stock_move_invoice.customer_journal_id') or \
False False
if not customer_journal_id: if not customer_journal_id:
raise UserError( raise UserError(
_("Please configure the journal from settings")) _("Please configure the journal from settings"))
invoice_line_list = [] invoice_line_list = []
for move_ids_without_package in picking_id.\ for move_ids_without_package in picking_id.move_ids_without_package:
move_ids_without_package:
vals = (0, 0, { vals = (0, 0, {
'name': move_ids_without_package.description_picking, 'name': move_ids_without_package.description_picking,
'product_id': move_ids_without_package.product_id.id, 'product_id': move_ids_without_package.product_id.id,
'price_unit': 'price_unit': move_ids_without_package.product_id.lst_price,
move_ids_without_package.product_id.lst_price, 'account_id': move_ids_without_package.product_id.property_account_income_id.id if
'account_id': move_ids_without_package.product_id.property_account_income_id
move_ids_without_package.product_id. else move_ids_without_package.product_id.categ_id.property_account_income_categ_id.id,
property_account_income_id.id if
move_ids_without_package.
product_id.property_account_income_id
else move_ids_without_package.
product_id.categ_id.
property_account_income_categ_id.id,
'tax_ids': [(6, 0, [ 'tax_ids': [(6, 0, [
picking_id.company_id.account_sale_tax_id.id])], picking_id.company_id.account_sale_tax_id.id])],
'quantity': move_ids_without_package.quantity_done, 'quantity': move_ids_without_package.quantity_done,
@ -83,8 +76,7 @@ class StockPicking(models.Model):
'invoice_user_id': current_user, 'invoice_user_id': current_user,
'narration': picking_id.name, 'narration': picking_id.name,
'partner_id': picking_id.partner_id.id, 'partner_id': picking_id.partner_id.id,
'currency_id': 'currency_id': picking_id.env.user.company_id.currency_id.id,
picking_id.env.user.company_id.currency_id.id,
'journal_id': int(customer_journal_id), 'journal_id': int(customer_journal_id),
'payment_reference': picking_id.name, 'payment_reference': picking_id.name,
'picking_id': picking_id.id, 'picking_id': picking_id.id,
@ -106,7 +98,7 @@ class StockPicking(models.Model):
raise UserError( raise UserError(
_("Please configure the journal from the settings.")) _("Please configure the journal from the settings."))
invoice_line_list = [] invoice_line_list = []
for move_ids_without_package in picking_id.\ for move_ids_without_package in picking_id. \
move_ids_without_package: move_ids_without_package:
vals = (0, 0, { vals = (0, 0, {
'name': move_ids_without_package.description_picking, 'name': move_ids_without_package.description_picking,
@ -148,14 +140,14 @@ class StockPicking(models.Model):
current_user = picking_id.env.uid current_user = picking_id.env.uid
if picking_id.picking_type_id.code == 'incoming': if picking_id.picking_type_id.code == 'incoming':
customer_journal_id = \ customer_journal_id = \
picking_id.env['ir.config_parameter'].sudo().\ picking_id.env['ir.config_parameter'].sudo(). \
get_param('stock_move_invoice.customer_journal_id') or \ get_param('stock_move_invoice.customer_journal_id') or \
False False
if not customer_journal_id: if not customer_journal_id:
raise UserError( raise UserError(
_("Please configure the journal from settings")) _("Please configure the journal from settings"))
invoice_line_list = [] invoice_line_list = []
for move_ids_without_package in picking_id.\ for move_ids_without_package in picking_id. \
move_ids_without_package: move_ids_without_package:
vals = (0, 0, { vals = (0, 0, {
'name': move_ids_without_package.description_picking, 'name': move_ids_without_package.description_picking,
@ -202,7 +194,7 @@ class StockPicking(models.Model):
raise UserError( raise UserError(
_("Please configure the journal from the settings.")) _("Please configure the journal from the settings."))
invoice_line_list = [] invoice_line_list = []
for move_ids_without_package in picking_id.\ for move_ids_without_package in picking_id. \
move_ids_without_package: move_ids_without_package:
vals = (0, 0, { vals = (0, 0, {
'name': move_ids_without_package.description_picking, 'name': move_ids_without_package.description_picking,
@ -260,14 +252,14 @@ class StockPicking(models.Model):
partner_id = self.partner_id partner_id = self.partner_id
invoice_line_list = [] invoice_line_list = []
customer_journal_id = \ customer_journal_id = \
self.env['ir.config_parameter'].sudo().\ self.env['ir.config_parameter'].sudo(). \
get_param('stock_move_invoice.customer_journal_id') \ get_param('stock_move_invoice.customer_journal_id') \
or False or False
if not customer_journal_id: if not customer_journal_id:
raise UserError( raise UserError(
_("Please configure the journal from settings")) _("Please configure the journal from settings"))
for picking_id in self: for picking_id in self:
for move_ids_without_package in picking_id.\ for move_ids_without_package in picking_id. \
move_ids_without_package: move_ids_without_package:
vals = (0, 0, { vals = (0, 0, {
'name': 'name':
@ -312,14 +304,14 @@ class StockPicking(models.Model):
partner_id = self.partner_id partner_id = self.partner_id
bill_line_list = [] bill_line_list = []
vendor_journal_id = \ vendor_journal_id = \
self.env['ir.config_parameter'].sudo().\ self.env['ir.config_parameter'].sudo(). \
get_param('stock_move_invoice.vendor_journal_id') \ get_param('stock_move_invoice.vendor_journal_id') \
or False or False
if not vendor_journal_id: if not vendor_journal_id:
raise UserError(_("Please configure the journal from " raise UserError(_("Please configure the journal from "
"the settings.")) "the settings."))
for picking_id in self: for picking_id in self:
for move_ids_without_package in picking_id.\ for move_ids_without_package in picking_id. \
move_ids_without_package: move_ids_without_package:
vals = (0, 0, { vals = (0, 0, {
'name': 'name':

0
stock_move_invoice/security/ir.model.access.csv

0
stock_move_invoice/static/description/assets/icons/check.png

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
stock_move_invoice/static/description/assets/icons/chevron.png

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 310 B

0
stock_move_invoice/static/description/assets/icons/cogs.png

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

0
stock_move_invoice/static/description/assets/icons/consultation.png

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

0
stock_move_invoice/static/description/assets/icons/ecom-black.png

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 576 B

0
stock_move_invoice/static/description/assets/icons/education-black.png

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 733 B

0
stock_move_invoice/static/description/assets/icons/hotel-black.png

Before

Width:  |  Height:  |  Size: 911 B

After

Width:  |  Height:  |  Size: 911 B

0
stock_move_invoice/static/description/assets/icons/license.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
stock_move_invoice/static/description/assets/icons/lifebuoy.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
stock_move_invoice/static/description/assets/icons/manufacturing-black.png

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

0
stock_move_invoice/static/description/assets/icons/pos-black.png

Before

Width:  |  Height:  |  Size: 878 B

After

Width:  |  Height:  |  Size: 878 B

0
stock_move_invoice/static/description/assets/icons/puzzle.png

Before

Width:  |  Height:  |  Size: 653 B

After

Width:  |  Height:  |  Size: 653 B

0
stock_move_invoice/static/description/assets/icons/restaurant-black.png

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 905 B

0
stock_move_invoice/static/description/assets/icons/service-black.png

Before

Width:  |  Height:  |  Size: 839 B

After

Width:  |  Height:  |  Size: 839 B

0
stock_move_invoice/static/description/assets/icons/trading-black.png

Before

Width:  |  Height:  |  Size: 427 B

After

Width:  |  Height:  |  Size: 427 B

0
stock_move_invoice/static/description/assets/icons/training.png

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 627 B

0
stock_move_invoice/static/description/assets/icons/update.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
stock_move_invoice/static/description/assets/icons/user.png

Before

Width:  |  Height:  |  Size: 988 B

After

Width:  |  Height:  |  Size: 988 B

0
stock_move_invoice/static/description/assets/icons/wrench.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
stock_move_invoice/static/description/assets/misc/categories.png

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
stock_move_invoice/static/description/assets/misc/check-box.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
stock_move_invoice/static/description/assets/misc/compass.png

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
stock_move_invoice/static/description/assets/misc/corporate.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
stock_move_invoice/static/description/assets/misc/customer-support.png

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
stock_move_invoice/static/description/assets/misc/cybrosys-logo.png

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

0
stock_move_invoice/static/description/assets/misc/features.png

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 589 B

0
stock_move_invoice/static/description/assets/misc/logo.png

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

0
stock_move_invoice/static/description/assets/misc/pictures.png

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
stock_move_invoice/static/description/assets/misc/pie-chart.png

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
stock_move_invoice/static/description/assets/misc/right-arrow.png

Before

Width:  |  Height:  |  Size: 967 B

After

Width:  |  Height:  |  Size: 967 B

0
stock_move_invoice/static/description/assets/misc/star.png

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

0
stock_move_invoice/static/description/assets/misc/support.png

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
stock_move_invoice/static/description/assets/misc/whatsapp.png

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

0
stock_move_invoice/static/description/assets/modules/1.png

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

0
stock_move_invoice/static/description/assets/modules/2.png

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

0
stock_move_invoice/static/description/assets/modules/3.png

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

0
stock_move_invoice/static/description/assets/modules/4.png

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

0
stock_move_invoice/static/description/assets/modules/5.png

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

0
stock_move_invoice/static/description/assets/modules/6.png

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo1.png

Before

Width:  |  Height:  |  Size: 388 KiB

After

Width:  |  Height:  |  Size: 388 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo2.png

Before

Width:  |  Height:  |  Size: 397 KiB

After

Width:  |  Height:  |  Size: 397 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo3.png

Before

Width:  |  Height:  |  Size: 390 KiB

After

Width:  |  Height:  |  Size: 390 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo4.png

Before

Width:  |  Height:  |  Size: 195 KiB

After

Width:  |  Height:  |  Size: 195 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo5.png

Before

Width:  |  Height:  |  Size: 328 KiB

After

Width:  |  Height:  |  Size: 328 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo6.png

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 198 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo7.png

Before

Width:  |  Height:  |  Size: 201 KiB

After

Width:  |  Height:  |  Size: 201 KiB

0
stock_move_invoice/static/description/assets/screenshots/demo8.png

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 161 KiB

0
stock_move_invoice/static/description/assets/screenshots/hero.gif

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

0
stock_move_invoice/static/description/banner.png

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

0
stock_move_invoice/static/description/icon.png

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

0
stock_move_invoice/static/description/index.html

0
stock_move_invoice/views/account_move_inherited.xml

0
stock_move_invoice/views/res_config_settings_inherited.xml

0
stock_move_invoice/views/stock_picking_inherited.xml

Loading…
Cancel
Save