Skip to content

Commit

Permalink
[IMP] account_invoice_validate_vendor_line: button and check in tree …
Browse files Browse the repository at this point in the history
…view
  • Loading branch information
oihane committed Jun 8, 2021
1 parent 74955ff commit b28f44a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
42 changes: 42 additions & 0 deletions account_invoice_validate_vendor_line/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
====================================
Account Invoice Validate Vendor Line
====================================

.. |badge1| 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

|badge1|

This module adds a validation to vendor invoice lines, in order to validate a
vendor invoice, all it's lines must be checked as validated. It is only possible
to validate invoice lines, not invoices.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/avanzosc/odoo-addons/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/avanzosc/odoo-addons/issues/new?body=module:%20account_invoice_validate_vendor_line%0Aversion:%2012.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
~~~~~~~

* Avanzosc

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

* Leire Martinez de Santos <leiremartinez@avanzosc.es>
* Ana Juaristi <anajuaristi@avanzosc.es>
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="account_invoice_validate_line_tree" model="ir.ui.view">
<field name="model">account.invoice.line</field>
<field name="inherit_id" ref="account.view_invoice_line_tree" />
<field name="arch" type="xml">
<field name="currency_id" position="after">
<field name="invoice_type" invisible="True" />
<field name="validate_ok"
attrs="{'invisible': [('invoice_type','not in',('in_invoice','in_refund'))]}"/>
<button type="object" name="toggle_validate_ok"
string="OK/NOK" class="btn-primary"
attrs="{'invisible': [('invoice_type','not in',('in_invoice','in_refund'))]}"/>
</field>
</field>
</record>

<record id="account_invoice_validate_line_form" model="ir.ui.view">
<field name="model">account.invoice.line</field>
<field name="inherit_id" ref="account.view_invoice_line_form" />
Expand Down

0 comments on commit b28f44a

Please sign in to comment.