Browse Source

Aug 3 [UPDT] Updated 'return_invoice_bill'

pull/331/head
AjmalCybro 9 months ago
parent
commit
6a4476f218
  1. 4
      return_invoice_bill/README.rst
  2. 4
      return_invoice_bill/__manifest__.py
  3. 7
      return_invoice_bill/doc/RELEASE_NOTES.md
  4. 2
      return_invoice_bill/models/stock_picking.py
  5. 8
      return_invoice_bill/models/stock_return_picking.py
  6. BIN
      return_invoice_bill/static/description/banner.jpg
  7. 6
      return_invoice_bill/static/description/index.html
  8. 6
      return_invoice_bill/views/stock_picking_views.xml
  9. 8
      return_invoice_bill/views/stock_return_picking_views.xml
  10. 2
      return_invoice_bill/wizard/return_move.py

4
return_invoice_bill/README.rst

@ -2,8 +2,8 @@
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Return Invoices And Bills
=========================
Automated Credit/Debit Note Generation from Return Picking
==========================================================
This module allow to return the invoice or bill while picking the product in Odoo17.
Company

4
return_invoice_bill/__manifest__.py

@ -20,8 +20,8 @@
#
##############################################################################
{
"name": "Return Invoices And Bills",
"version": "17.0.1.0.0",
"name": "Automated Credit/Debit Note Generation from Return Picking",
"version": "17.0.1.0.1",
"category": "Sales",
"summary": "For creating credit note and debit note while picking.",
"description": "We can create credit note or debit note while return the"

7
return_invoice_bill/doc/RELEASE_NOTES.md

@ -1,6 +1,11 @@
## Module <return_invoice_bill>
#### 02.08.2024
#### Version 17.0.1.0.1
#### ADD
- Fixed the issues while changing the language.
#### 03.04.2024
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Return Invoices And Bills
- Initial commit for Automated Credit/Debit Note Generation from Return Picking

2
return_invoice_bill/models/stock_picking.py

@ -19,7 +19,7 @@
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import api, fields, models, _
from odoo import api, fields, models
class StockPicking(models.Model):

8
return_invoice_bill/models/stock_return_picking.py

@ -38,7 +38,11 @@ class StockReturnPicking(models.TransientModel):
active_id = self.env.context['active_id']
if active_model == 'stock.picking' and active_id:
stock_picking = self.env[active_model].browse(active_id)
result['picking_type_name'] = stock_picking.picking_type_id.name
picking_type = stock_picking.picking_type_id
result['picking_type_name'] = self.env['ir.model.data'].search([
('model', '=', 'stock.picking.type'),
('res_id', '=', picking_type.id)
]).complete_name
return result
def _update_stock_picking(self):
@ -65,7 +69,6 @@ class StockReturnPicking(models.TransientModel):
"""
Perform the action of returning moves with credit notes and update the
stock picking accordingly.
Returns:
ir.actions.actions: Action object for returning moves with credit
notes.
@ -77,7 +80,6 @@ class StockReturnPicking(models.TransientModel):
"""
Perform the action of returning moves with debit notes and update the
stock picking accordingly.
Returns:
ir.actions.actions: Action object for returning moves with debit
notes.

BIN
return_invoice_bill/static/description/banner.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 118 KiB

6
return_invoice_bill/static/description/index.html

@ -45,7 +45,7 @@
style="margin: 80px 0px !important;">
<h1 style="font-size: 2.8rem;font-weight: 700; color:
#1A202C;">
Return Invoices And Bills</h1>
Automated Credit/Debit Note Generation from Return Picking</h1>
<p class="my-3 mb-4"
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;">
Allows Us To Return The Credit Note And Debit Note From The Corresponding Return Form.
@ -443,7 +443,7 @@
<div class="px-3">
<h4 class="mt-2"
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">
Redirect to the Reverse Bill of the Return
Redirect to the Reverse Invoice of the Return
</h4>
</div>
</div>
@ -523,7 +523,7 @@
</div>
<p class="m-0"
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;">
Initial Commit for Return Invoices And Bills.</p>
Initial Commit for Automated Credit/Debit Note Generation from Return Picking.</p>
</div>
</div>
</div>

6
return_invoice_bill/views/stock_picking_views.xml

@ -2,13 +2,11 @@
<odoo>
<!-- Button to initiate return with credit note and debit note -->
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.view.form.inherit.return.invoice.bill
</field>
<field name="name">stock.picking.view.form.inherit.return.invoice.bill</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_picking_move_tree']"
position="after">
<xpath expr="//button[@name='action_picking_move_tree']" position="after">
<field name="picking_type_name" invisible="1"/>
<field name="is_paid" invisible="1"/>
<button name="action_get_credit_note"

8
return_invoice_bill/views/stock_return_picking_views.xml

@ -2,9 +2,7 @@
<odoo>
<!-- Button to view the cancel reason -->
<record id="view_stock_return_picking_form" model="ir.ui.view">
<field name="name">
stock.return.picking.view.form.inherit.return.invoice.bill
</field>
<field name="name">stock.return.picking.view.form.inherit.return.invoice.bill</field>
<field name="model">stock.return.picking</field>
<field name="inherit_id" ref="stock.view_stock_return_picking_form"/>
<field name="arch" type="xml">
@ -12,11 +10,11 @@
<field name="picking_type_name" invisible="1"/>
<button name="action_returns_with_credit_note"
string="Return With Credit Note" type="object"
invisible="picking_type_name != 'Delivery Orders'"/>
invisible="picking_type_name != 'stock.picking_type_out'"/>
<button name="action_returns_with_debit_note"
string="Return With Debit Note"
type="object"
invisible="picking_type_name != 'Receipts'"/>
invisible="picking_type_name != 'stock.picking_type_in'"/>
</xpath>
</field>
</record>

2
return_invoice_bill/wizard/return_move.py

@ -19,8 +19,8 @@
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odoo.exceptions import ValidationError
from odoo import fields, models
from odoo.exceptions import ValidationError
class ReturnMove(models.TransientModel):

Loading…
Cancel
Save