Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions sale_blanket_order/views/sale_blanket_order_line_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,16 @@
</h1>
<group>
<group>
<group>
<field name="product_id" readonly="1" />
<field name="price_unit" readonly="1" />
<field name="partner_id" readonly="1" />
<field name="date_schedule" readonly="1" />
<field
name="company_id"
groups="base.group_multi_company"
optional="show"
options="{'no_create': True}"
/>
</group>
<field name="product_id" readonly="1" />
<field name="price_unit" readonly="1" />
<field name="partner_id" readonly="1" />
<field name="date_schedule" readonly="1" />
<field
name="company_id"
groups="base.group_multi_company"
optional="show"
options="{'no_create': True}"
/>
</group>
<group>
<label for="original_uom_qty" />
Expand Down
117 changes: 117 additions & 0 deletions sale_force_invoiced_quantity/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
============================
Sale Force Invoiced Quantity
============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:aed68344e4ef4cf235e4e8ad905d9787d95e07bdb9d455eaccce36afd0a8f698
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/16.0/sale_force_invoiced_quantity
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_force_invoiced_quantity
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module add a new "Force Invoiced" field to sales order lines. This field is used as modifier when computing quantity to be invoiced.

Current behaviour:

* quantity to invoice = delivered - invoiced

and

* quantity to invoice = product quantity - invoiced

Implemented behaviour:

* quantity to invoice = delivered - invoiced - force invoiced quantity

and

* quantity to invoice = product quantity - invoiced - force invoiced quantity

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

This module implements additional featured for the `Sale Force Invoiced <https://github.com/OCA/sale-workflow/tree/16.0/sale_force_invoiced>`_ module.

It covers the following scenarios:

* A customer disputes quantities to be invoiced for, after the products have been delivered to her/him, and you agree to deduct some amount from the one to be invoiced.
* You would like to fix some issues with quantities invoiced cause by incorrect data entry.

Configuration
=============

No configuration is required.


Usage
=====

Open a sales order and add an amount into the "Force Invoiced Quantity" field. Amount to invoice will be adjusted accordingly.
This field is optional so you can hide it if you don't need it.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_force_invoiced_quantity%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Cetmix

Contributors
~~~~~~~~~~~~

* `Cetmix <http://cetmix.com>`_

* Ivan Sokolov
* Dessan Hemrayev

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_force_invoiced_quantity>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions sale_force_invoiced_quantity/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
21 changes: 21 additions & 0 deletions sale_force_invoiced_quantity/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Sale Force Invoiced Quantity",
"summary": "Add manual invoice quantity in sales order lines",
"version": "16.0.1.0.0",
"author": "Cetmix, Odoo Community Association (OCA)",
"category": "sale",
"license": "AGPL-3",
"website": "https://github.com/OCA/sale-workflow",
"depends": ["sale_force_invoiced"],
"data": [
"views/sale_order.xml",
],
"demo": [
"demo/demo_product.xml",
"demo/demo_sale_order.xml",
],
"installable": True,
}
14 changes: 14 additions & 0 deletions sale_force_invoiced_quantity/demo/demo_product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="demo_product_sale_force_invoiced_qty_1" model="product.product">
<field name="name">Sale Force Invoiced qty product 1</field>
<field name="type">service</field>
<field name="invoice_policy">delivery</field>
</record>

<record id="demo_product_sale_force_invoiced_qty_2" model="product.product">
<field name="name">Sale Force Invoiced qty product 2</field>
<field name="type">service</field>
<field name="invoice_policy">delivery</field>
</record>
</odoo>
24 changes: 24 additions & 0 deletions sale_force_invoiced_quantity/demo/demo_sale_order.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="so_sale_force_invoiced_qty_1" model="sale.order">
<field name="partner_id" ref="base.partner_admin" />
<field name="user_id" ref="base.user_admin" />
</record>

<record id="sol_sale_force_invoiced_qty_1_1" model="sale.order.line">
<field name="order_id" ref="so_sale_force_invoiced_qty_1" />
<field name="product_id" ref="demo_product_sale_force_invoiced_qty_1" />
<field name="product_uom_qty">5</field>
<field name="force_invoiced_quantity">3</field>
<field name="price_unit">295.00</field>
</record>

<record id="sol_sale_force_invoiced_qty_1_2" model="sale.order.line">
<field name="order_id" ref="so_sale_force_invoiced_qty_1" />
<field name="product_id" ref="demo_product_sale_force_invoiced_qty_2" />
<field name="product_uom_qty">5</field>
<field name="force_invoiced_quantity">0</field>
<field name="price_unit">145.00</field>
</record>

</odoo>
51 changes: 51 additions & 0 deletions sale_force_invoiced_quantity/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_force_invoiced_quantity
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-26 12:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: sale_force_invoiced_quantity
#: model_terms:ir.ui.view,arch_db:sale_force_invoiced_quantity.view_order_form
msgid "Force Invoiced"
msgstr "Forza a fatturato"

#. module: sale_force_invoiced_quantity
#: model:ir.model.fields,field_description:sale_force_invoiced_quantity.field_sale_order_line__force_invoiced_quantity
msgid "Force Invoiced Quantity"
msgstr "Forza quantità fatturata"

#. module: sale_force_invoiced_quantity
#: model:product.template,name:sale_force_invoiced_quantity.demo_product_sale_force_invoiced_qty_1_product_template
msgid "Sale Force Invoiced qty product 1"
msgstr "Forza q.tà fatturata prodotto 1 vendita"

#. module: sale_force_invoiced_quantity
#: model:product.template,name:sale_force_invoiced_quantity.demo_product_sale_force_invoiced_qty_2_product_template
msgid "Sale Force Invoiced qty product 2"
msgstr "Forza q.tà fatturata prodotto 2 vendita"

#. module: sale_force_invoiced_quantity
#: model:ir.model,name:sale_force_invoiced_quantity.model_sale_order_line
msgid "Sales Order Line"
msgstr "Riga ordine di vendita"

#. module: sale_force_invoiced_quantity
#: model:ir.model.fields,help:sale_force_invoiced_quantity.field_sale_order_line__force_invoiced_quantity
msgid ""
"This amount will be deducted from quantity to invoice.\n"
"quantity to invoice = delivered - invoiced - force invoiced"
msgstr ""
"Questo valore verrà dedotto dalla quantità da fatturare.\n"
"quantità da fatturare = consegnata - fatturata - forzata a fatturata"
46 changes: 46 additions & 0 deletions sale_force_invoiced_quantity/i18n/sale_force_invoiced_quantity.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_force_invoiced_quantity
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \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: sale_force_invoiced_quantity
#: model_terms:ir.ui.view,arch_db:sale_force_invoiced_quantity.view_order_form
msgid "Force Invoiced"
msgstr ""

#. module: sale_force_invoiced_quantity
#: model:ir.model.fields,field_description:sale_force_invoiced_quantity.field_sale_order_line__force_invoiced_quantity
msgid "Force Invoiced Quantity"
msgstr ""

#. module: sale_force_invoiced_quantity
#: model:product.template,name:sale_force_invoiced_quantity.demo_product_sale_force_invoiced_qty_1_product_template
msgid "Sale Force Invoiced qty product 1"
msgstr ""

#. module: sale_force_invoiced_quantity
#: model:product.template,name:sale_force_invoiced_quantity.demo_product_sale_force_invoiced_qty_2_product_template
msgid "Sale Force Invoiced qty product 2"
msgstr ""

#. module: sale_force_invoiced_quantity
#: model:ir.model,name:sale_force_invoiced_quantity.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_force_invoiced_quantity
#: model:ir.model.fields,help:sale_force_invoiced_quantity.field_sale_order_line__force_invoiced_quantity
msgid ""
"This amount will be deducted from quantity to invoice.\n"
"quantity to invoice = delivered - invoiced - force invoiced"
msgstr ""
4 changes: 4 additions & 0 deletions sale_force_invoiced_quantity/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import sale_order_line
Loading
Loading