Users can specify a section for Product Templates and Product Categories
When Product is changed (onchange event triggered) on a sales order line / an invoice line, Odoo will lookup the product and its category settings to find if a section is available. If found, it will automaticall fill it into the sales order line / invoice line accordingly.
The section lookup mechanism: Upon changing of product field on a sales order line / an invoice line, Odoo will check if a section is specified for the selected product. If one is found, it will automatically be filled into the section field of the corresponding sale order line / invoice line. If not, it will lookup the product's category and its parent categories until one is found. If one found, it will be used. Otherwise, nothing will be done.
When an invoice is created from a sales order, the sections on the invoice lines of the corresponding invoice will be selected from the original sales order lines. If none is specified from the original sales order, fallback to default behavior as above described.
This software and associated files (the "Software") may only be
(executed, modified, executed after modifications) if you have
valid license from the authors, typically via Odoo Apps,
or if you
received a written agreement from the authors of the
Software (see the
You may develop Odoo modules that use the Software as a library
by depending on it, importing it and using its
copying any source code or material from the
Software. You may distribute
those modules under the license of your
choice, provided that this
is compatible with the terms of
the Odoo Proprietary License (For
LGPL, MIT, or proprietary
licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell
copies of the
Software or modified copies of the Software.
The above copyright notice and this permission notice must be
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT
AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE,
FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE