././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4981837 trytond_project_invoice-6.0.1/0000755000175000017500000000000000000000000014534 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/.drone.yml0000644000175000017500000000351700000000000016452 0ustar00cedcedclone: hg: image: plugins/hg environment: - HG_SHARE_POOL=/root/.cache/hg volumes: - cache:/root/.cache pipeline: tox: image: ${IMAGE} environment: - CFLAGS=-O0 - DB_CACHE=/cache - TOX_TESTENV_PASSENV=CFLAGS DB_CACHE CI_BUILD_NUMBER CI_JOB_NUMBER CI_JOB_ID - POSTGRESQL_URI=postgresql://postgres@postgresql:5432/ commands: - echo "[extensions]" >> /root/.hgrc - echo "hgext.share =" >> /root/.hgrc - echo "[share]" >> /root/.hgrc - echo "pool = /root/.cache/hg" >> /root/.hgrc - pip install tox - tox -e "${TOXENV}-${DATABASE}" volumes: - cache:/root/.cache check_dist: image: ${IMAGE} commands: - pip install twine - python setup.py sdist - twine check dist/* services: postgresql: image: postgres environment: - POSTGRES_HOST_AUTH_METHOD=trust command: "-c fsync=off -c synchronous_commit=off -c full_page_writes=off" when: matrix: DATABASE: postgresql matrix: include: - IMAGE: python:3.6 TOXENV: py36 DATABASE: sqlite - IMAGE: python:3.6 TOXENV: py36 DATABASE: postgresql - IMAGE: python:3.7 TOXENV: py37 DATABASE: sqlite - IMAGE: python:3.7 TOXENV: py37 DATABASE: postgresql - IMAGE: python:3.8 TOXENV: py38 DATABASE: sqlite - IMAGE: python:3.8 TOXENV: py38 DATABASE: postgresql - IMAGE: python:3.9 TOXENV: py39 DATABASE: sqlite - IMAGE: python:3.9 TOXENV: py39 DATABASE: postgresql ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/.flake80000644000175000017500000000005600000000000015710 0ustar00cedced[flake8] ignore=E123,E124,E126,E128,E741,W503 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564784.0 trytond_project_invoice-6.0.1/.hgtags0000644000175000017500000000151600000000000016015 0ustar00cedced08aa5f287c67315689098d9f9086fbf190c33126 2.8.0 b4de2224bac74309d1b660c59175a08f2818db0b 3.0.0 ce5fe97c1828f641881d61890855b0d782151d7c 3.2.0 b2c58fa7986e9b27077a95f940a0a0b455be6dd9 3.4.0 9f6239e6d23f966dec80f595fe43ceb24d349f23 3.6.0 275428c3036ac24e330512c4027a9d0550cb9532 3.8.0 13ea5a15248ad5e2ce038ce66bbf52c0279c270e 4.0.0 59b0e37d8c1c88f6bc7594c3f16fd2f0ff8a7f71 4.2.0 a072fdc672a5facc465477517986f05c2812a165 4.4.0 41a6af61693e683a6b3e376f9aa9aa606b3c2bca 4.6.0 e411cb53d4f12391b19ca869955912bcb76fd026 4.8.0 691960f74e085ff9017b4396446b2c0c705fde22 5.0.0 382915171d4b6d72660b94af8c1e8bd68ae6e9e0 5.2.0 87d79985be61ee90eab04d1d9623aac9cc6c76f6 5.4.0 7be702da88fbe62a406d1abde0b21e5169c13fc0 5.6.0 9b5c20620a38f45387ecf6bf76c8dfb42cc6cee2 5.8.0 a9878c1ea3357ffc3bd2704b7c464c9ca7c8a266 6.0.0 e665289bc7ab8c7945a287ffcc20111129930cf9 6.0.1 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564783.0 trytond_project_invoice-6.0.1/CHANGELOG0000644000175000017500000000325200000000000015750 0ustar00cedcedVersion 6.0.1 - 2021-12-03 * Bug fixes (see mercurial logs for details) Version 6.0.0 - 2021-05-03 * Bug fixes (see mercurial logs for details) * Add date up to which to invoice timesheet Version 5.8.0 - 2020-11-02 * Bug fixes (see mercurial logs for details) * Remove support for Python 3.5 Version 5.6.0 - 2020-05-04 * Bug fixes (see mercurial logs for details) * Manage invoicing of non-time based products * Base invoicing on quantity and price * Remove duration fields Version 5.4.0 - 2019-11-04 * Bug fixes (see mercurial logs for details) * Add invoice method to project list view Version 5.2.0 - 2019-05-06 * Bug fixes (see mercurial logs for details) Version 5.0.0 - 2018-10-01 * Bug fixes (see mercurial logs for details) * Remove support for Python 2.7 Version 4.8.0 - 2018-04-23 * Bug fixes (see mercurial logs for details) * Allow to invoice at once sub-projects with a different party Version 4.6.0 - 2017-10-30 * Bug fixes (see mercurial logs for details) Version 4.4.0 - 2017-05-01 * Bug fixes (see mercurial logs for details) Version 4.2.0 - 2016-11-28 * Bug fixes (see mercurial logs for details) Version 4.0.0 - 2016-05-02 * Bug fixes (see mercurial logs for details) * Add Python3 support Version 3.8.0 - 2015-11-02 * Bug fixes (see mercurial logs for details) * Add progress invoice method Version 3.6.0 - 2015-04-20 * Bug fixes (see mercurial logs for details) * Add support for PyPy * Use TimeDelta field Version 3.4.0 - 2014-10-20 * Bug fixes (see mercurial logs for details) Version 3.2.0 - 2014-04-21 * Bug fixes (see mercurial logs for details) Version 3.0.0 - 2013-10-21 * Bug fixes (see mercurial logs for details) Version 2.8.0 - 2013-04-22 * Initial release ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564783.0 trytond_project_invoice-6.0.1/COPYRIGHT0000644000175000017500000000125700000000000016034 0ustar00cedcedCopyright (C) 2013-2021 Cédric Krier. Copyright (C) 2013-2021 B2CK SPRL. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/LICENSE0000644000175000017500000010451300000000000015545 0ustar00cedced GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/MANIFEST.in0000644000175000017500000000012500000000000016270 0ustar00cedcedinclude CHANGELOG include COPYRIGHT include LICENSE include README.rst include doc/* ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4948504 trytond_project_invoice-6.0.1/PKG-INFO0000644000175000017500000000550500000000000015636 0ustar00cedcedMetadata-Version: 1.2 Name: trytond_project_invoice Version: 6.0.1 Summary: Tryton module to invoice projects Home-page: http://www.tryton.org/ Author: Tryton Author-email: bugs@tryton.org License: GPL-3 Download-URL: http://downloads.tryton.org/6.0/ Project-URL: Bug Tracker, https://bugs.tryton.org/ Project-URL: Documentation, https://docs.tryton.org/ Project-URL: Forum, https://www.tryton.org/forum Project-URL: Source Code, https://hg.tryton.org/modules/project_invoice Description: Project Invoice Module ###################### The Project Invoice module adds invoice methods on project. The methods are: - Manual: Tryton doesn't create any invoice. - On Effort: The invoices are created based on the *Effort* hours for all children works with 100% progress. - On Progress: The invoices are create proportionally to the *Progress* of the *Effort* hours of each children work. - On Timesheet: The invoices are created based on the timesheets encoded on all children works. Keywords: tryton project invoice Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Plugins Classifier: Framework :: Tryton Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Financial and Insurance Industry Classifier: Intended Audience :: Legal Industry Classifier: Intended Audience :: Manufacturing Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Natural Language :: Bulgarian Classifier: Natural Language :: Catalan Classifier: Natural Language :: Chinese (Simplified) Classifier: Natural Language :: Czech Classifier: Natural Language :: Dutch Classifier: Natural Language :: English Classifier: Natural Language :: Finnish Classifier: Natural Language :: French Classifier: Natural Language :: German Classifier: Natural Language :: Hungarian Classifier: Natural Language :: Indonesian Classifier: Natural Language :: Italian Classifier: Natural Language :: Persian Classifier: Natural Language :: Polish Classifier: Natural Language :: Portuguese (Brazilian) Classifier: Natural Language :: Romanian Classifier: Natural Language :: Russian Classifier: Natural Language :: Slovenian Classifier: Natural Language :: Spanish Classifier: Natural Language :: Turkish Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Office/Business Requires-Python: >=3.6 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/README.rst0000644000175000017500000000076200000000000016230 0ustar00cedcedProject Invoice Module ###################### The Project Invoice module adds invoice methods on project. The methods are: - Manual: Tryton doesn't create any invoice. - On Effort: The invoices are created based on the *Effort* hours for all children works with 100% progress. - On Progress: The invoices are create proportionally to the *Progress* of the *Effort* hours of each children work. - On Timesheet: The invoices are created based on the timesheets encoded on all children works. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/__init__.py0000644000175000017500000000103400000000000016643 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.pool import Pool from . import project from . import timesheet from . import invoice def register(): Pool.register( project.Work, project.WorkInvoicedProgress, timesheet.Line, invoice.InvoiceLine, module='project_invoice', type_='model') Pool.register( project.OpenInvoice, module='project_invoice', type_='wizard') ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4948504 trytond_project_invoice-6.0.1/doc/0000755000175000017500000000000000000000000015301 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/doc/index.rst0000644000175000017500000000076200000000000017147 0ustar00cedcedProject Invoice Module ###################### The Project Invoice module adds invoice methods on project. The methods are: - Manual: Tryton doesn't create any invoice. - On Effort: The invoices are created based on the *Effort* hours for all children works with 100% progress. - On Progress: The invoices are create proportionally to the *Progress* of the *Effort* hours of each children work. - On Timesheet: The invoices are created based on the timesheets encoded on all children works. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/exceptions.py0000644000175000017500000000034500000000000017271 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.exceptions import UserError class InvoicingError(UserError): pass ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/invoice.py0000644000175000017500000000163600000000000016550 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.pool import PoolMeta, Pool from trytond.transaction import Transaction from trytond.tools import grouped_slice class InvoiceLine(metaclass=PoolMeta): __name__ = 'account.invoice.line' @classmethod def delete(cls, lines): pool = Pool() WorkInvoicedProgress = pool.get('project.work.invoiced_progress') # Delete progress using root to skip access rule progress = [] for sub_ids in grouped_slice([l.id for l in lines]): progress += WorkInvoicedProgress.search([ ('invoice_line', 'in', sub_ids), ]) if progress: with Transaction().set_user(0): WorkInvoicedProgress.delete(progress) super(InvoiceLine, cls).delete(lines) ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4881835 trytond_project_invoice-6.0.1/locale/0000755000175000017500000000000000000000000015773 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/bg.po0000644000175000017500000000650700000000000016733 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" #, fuzzy msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Ред от фактура" #, fuzzy msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Начин на фактуриране" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Начин на фактуриране" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Начин на фактуриране" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Начин на фактуриране" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Ред от фактура" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Задача" #, fuzzy msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Ред от фактура" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" #, fuzzy msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Редове от график" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Фактури" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" #, fuzzy msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Ръчно" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/ca.po0000644000175000017500000000732700000000000016727 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Import a facturar" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Línia de factura" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Mètode de facturació" msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Factura fins el" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Import facturat" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Progrés facturat" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Mètode de facturació" msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Factura fins el" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Quantitat a facturar" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Línia de factura" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Progrés" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Treball" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Línia de factura" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" "Limita les línies del full de treball a facturar a les anteriors a aquesta " "data." msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Línies del full de treball" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Factures" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "No podeu eliminar una línia facturada." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" "Per facturar el treball \"%(work)s\" heu de configurar un compte d'ingressos" " per defecte." msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "No hi ha cap preu de venda al treball \"%(work)s\"." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "No hi ha cap tercer al treball \"%(work)s\"." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "No podeu modificar una línia facturada." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" "Per facturar el treball \"%(work)s\" heu de definir un compte d'ingressos " "pel producte \"%(product)s\"." msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Factura" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Progrés de treballs facturats" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Facturació de projectes" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Manual" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Per l'esforç estimat" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Segons el progrés" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Per les hores realitzades" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "%" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/cs.po0000644000175000017500000000577400000000000016755 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Invoices" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/de.po0000644000175000017500000000751500000000000016733 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Fakturierbarer Betrag" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Rechnungsposition" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Methode Rechnungsstellung" msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Abrechnen bis" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Abgerechneter Betrag" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Fakturierter Forstschritt" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Methode Rechnungsstellung" msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Abrechnen bis" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Fakturierbare Menge" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Rechnungsposition" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Fortschritt" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Tätigkeit" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Rechnungsposition" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" "Es werden nur Zeiterfassungspositionen vor dem angegebenen Datum " "abgerechnet." msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Zeiterfassungspositionen" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Rechnungen" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "Festgeschriebene Rechnungspositionen können nicht gelöscht werden." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" "Damit Projekt \"%(work)s\" fakturiert werden kann, muss ein " "Standardertragskonto konfiguriert werden." msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "Fehlender Listenpreis für Aufgabe \"%(work)s\"." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "Fehlende Partei für Aufgabe \"%(work)s\"." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "Eine festgeschriebene Rechnungsposition kann nicht geändert werden." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" "Damit Projekt \"%(work)s\" fakturiert werden kann, muss ein Ertragskonto für" " Artikel \"%(product)s\" konfiguriert werden." msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Rechnung erstellen" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Nach Forstschritt fakturierte Aufgabe" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Projekt Fakturierung" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Manuell" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Nach veranschlagtem Aufwand" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Nach Fortschritt" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Nach erfasstem Aufwand" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "%" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/es.po0000644000175000017500000000735700000000000016756 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Importe a facturar" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Línea de factura" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Método de facturación" msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Factura hasta" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Importe facturado" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Progreso facturado" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Método de facturación" msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Factura hasta el" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Cantidad a facturar" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Línea de factura" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Progreso" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Trabajo" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Línea de factura" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" "Limita las líneas de la hoja de trabajo a facturar a las anteriores a esa " "fecha." msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Líneas del parte de trabajo" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Facturas" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "No puede eliminar una línea facturada." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" "Para facturar el trabajo \"%(works)\" debéis configurar una cuenta de " "ingressos por defecto." msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "No hay ningún precio en el trabajo \"%(work)s\"." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "No hay ningún tercero en el trabajo \"%(work)s\"." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "No puede modificar una línea facturada." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" "Para facturar el trabajo \"%(work)s\" debeis definir una cuenta de ingressos" " para el producto \"%(product)s\"." msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Factura" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Progreso de trabajos facturados" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Facturación de proyectos" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Manual" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Por el esfuerzo estimado" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Según el progreso" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Por las horas realizadas" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "%" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/es_419.po0000644000175000017500000000615100000000000017342 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Duración a facturar" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Duración facturada" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" #, fuzzy msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Progreso facturado de trabajo" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Duración facturada" #, fuzzy msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Duración a facturar" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Progreso facturado de trabajo" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Progreso facturado de trabajo" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/et.po0000644000175000017500000000654300000000000016753 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Ajakulu arvele" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Arve rida" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Arve meetod" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Arve meetod" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Arveldatav summa" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Arveldatud progress" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Arve meetod" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Arve meetod" #, fuzzy msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Ajakulu arvele" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Arve rida" #, fuzzy msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Progressiga" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Töö" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Arve rida" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Töögraafiku read" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Arved" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "Ei saa kustutada arveldatud rida." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "Tööle \"%(work)s\" ei ole määratud hinda." #, fuzzy msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "Tööle \"%(work)s\" ei ole määratud hinda." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "Ei saa muuta arveldatud rida." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Arve" #, fuzzy msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Arveldatud progress" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Projekti arve" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Käsitsi" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Püüdlusega" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Progressiga" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Töögraafikus" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/fa.po0000644000175000017500000000733600000000000016732 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "مدت زمان صورتحساب" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "خط صورتحساب" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "سبک صورتحساب" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "سبک صورتحساب" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "مبلغ صورتحساب" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "پیشرفت های فاکتورشده" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "روش صورتحساب" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "سبک صورتحساب" #, fuzzy msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "مدت زمان صورتحساب" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "خط صورتحساب" #, fuzzy msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "در حال پیش رفت" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "کار" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "خط صورتحساب" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "خطوط جدول زمانی" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "صورتحساب ها" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "شما نمی توانید سطر صورتحساب را حذف کنید." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "در کار : \"%s\" هیچ لیست قیمتی وجود ندارد." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "در کار : \"%s\" هیچ نهاد/سازمانی وجود ندارد." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "شما نمی توانید خط صورتحساب را تغییردهید." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "پیشرفت های کار فاکتورشده" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "صورتحساب پروژه" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "دستی" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "در حال تلاش" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "در حال پیش رفت" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "در جدول زمانی" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/fi.po0000644000175000017500000000577400000000000016746 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Invoices" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/fr.po0000644000175000017500000000742000000000000016745 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Montant à facturer" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Ligne de facture" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Méthode de facturation" msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Facturer jusqu'à" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Montant facturé" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Progression facturée" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Méthode de facturation" msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Facturer jusqu'à" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Quantité à facturer" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Ligne de facture" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Progression" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Travail" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Ligne de facture" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" "Limite les lignes de feuille de temps facturées à celles antérieures à la " "date." msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Lignes de feuille de présence" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Factures" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "Vous ne pouvez pas supprimer une ligne facturée." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" "Pour facturer le travail « %(work)s », vous devez configurer un compte de " "revenu par défaut." msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "Il n'y a pas de prix listé sur le travail « %(work)s »." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "Il n'y a pas de tiers sur le travail « %(work)s »." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "Vous ne pouvez pas modifier une ligne facturée." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" "Pour facturer le travail « %(work)s », vous devez définir un compte de " "revenu pour le produit « %(product)s »." msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Facturer" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Progression facturée de travail" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Facture projet" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Manuel" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Sur l'effort" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Sur progrès" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Sur feuille de présence" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "%" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/hu.po0000644000175000017500000000603100000000000016747 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Tevékenység" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" #, fuzzy msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Időpozíció" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Invoices" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/id.po0000644000175000017500000000600400000000000016727 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Baris Faktur" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Metode Faktur" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Metode Faktur" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Metode Faktur" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Baris Faktur" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Kerja" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Baris Faktur" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Faktur-faktur" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Faktur" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "%" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/it.po0000644000175000017500000000715400000000000016756 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Importo da fatturare" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Riga fattura" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Metodo di fatturazione" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Metodo di fatturazione" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Importo fatturato" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Metodo di fatturazione" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Metodo di fatturazione" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Quantità da fatturare" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Riga fattura" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Progresso" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Lavoro" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Riga fattura" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Fatture" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "Non è possibile eliminare una riga fatturata." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" "Per fatturare il lavoro \"%(work)s\" è necessario configurare un conto delle" " entrate di default." msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "Non esiste un prezzo di listino sul lavoro \"%(work)s\"." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "manca la controparte sul lavoro \"%(work)s\"." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "Non è possibile modificare una riga fatturata." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" "Per fatturare il lavoro \"%(work)s\" è necessario definire un conto delle " "entrate per il prodotto \"%(product)s\"." msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Fattura" #, fuzzy msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Progressi fatturati dal lavoro" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Fattura progetto" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Manuale" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "In corso" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "%" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/lo.po0000644000175000017500000000632500000000000016753 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" #, fuzzy msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "ລາຍການ" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "ລາຍການ" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "ເຮັດວຽກ" #, fuzzy msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "ລາຍການ" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" #, fuzzy msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "ແຖວຕາຕະລາງເຮັດວຽກ" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "ໃບເກັບເງິນ" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" #, fuzzy msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "ໃສ່ເອົາເອງ" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/lt.po0000644000175000017500000000636500000000000016764 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Projekto sąskaita faktūra" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Sąskaitos faktūros eilutė" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Sąskaita faktūra išrašoma" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Sąskaita faktūra išrašoma" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Sąskaitos faktūros suma" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Sąskaita faktūra išrašoma" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Sąskaita faktūra išrašoma" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Sąskaitos faktūros eilutė" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Sąskaitos faktūros eilutė" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Sąskaitos faktūros" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Sąskaita faktūra" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Projekto sąskaita faktūra" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/nl.po0000644000175000017500000000723700000000000016755 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Factureer baar bedrag" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Factuurregel" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Factuurmethode" msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Factureer tot" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Gefactureerd bedrag" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Gefactureerde voortgang" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Factuurmethode" msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Factureer tot" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Factureerbare hoeveelheid" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Factuurregel" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Vooruitgang" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Werk" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Factuurregel" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" "Beperkt urenstaatregels die gefactureerd worden tot a die voor deze datum." msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Tijdregistratieregels" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Verkoopfacturen" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "U kunt een factuurregel niet verwijderen." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" "Om werk \"%(work)s\" te factureren, moet u een standaard omzetaccount " "configureren." msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "Er is geen catalogusprijs op werk \"%(work)s\"." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "Er is geen relatie op werk \"%(work)s\"." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "U kunt een factuurregel niet wijzigen." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" "Om werk \"%(work)s\" te factureren, moet u een omzet account definiëren voor" " het product \"%(product)s\"." msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Factuur" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Werk gefactureerde voortgang" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Projectfactuur" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Handmatig" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Naar inspanning (in regie?)" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Naar voortgang" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Op urenstaat" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "%" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/pl.po0000644000175000017500000000605300000000000016752 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Wiersz faktury" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Wiersz faktury" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Praca" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Wiersz faktury" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Invoices" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/pt.po0000644000175000017500000000667500000000000016774 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Tempo a Faturar" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Linha da Fatura" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Método de Fatura" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Método de Fatura" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Montante de Fatura" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Progresso Faturado" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Método de Faturamento" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Método de Fatura" #, fuzzy msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Tempo a Faturar" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Linha de Fatura" #, fuzzy msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Em Progesso" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Tarefa" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Linha de Fatura" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Linhas da Folha de Ponto" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Faturas" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "Você não pode apagar uma linha já faturada." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "Não há preço para a tarefa \"%(work)s\"." msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "Não há pessoa na tarefa \"%(work)s\"." msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "Você não pode modificar uma linha já faturada." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Progresso Faturado de Tarefas" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Fatura do Projeto" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Manual" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Por Esforço" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Sobre o Progresso" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Na Folha de Ponto" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/ro.po0000644000175000017500000000561600000000000016763 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "" msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/ru.po0000644000175000017500000000642300000000000016766 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" #, fuzzy msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Строка инвойса" #, fuzzy msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Метод инвойса" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Метод инвойса" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Метод инвойса" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Метод инвойса" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Строка инвойса" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" #, fuzzy msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Работа" #, fuzzy msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Строка инвойса" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" #, fuzzy msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Строки табеля" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Инвойсы" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" #, fuzzy msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Ручной" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/sl.po0000644000175000017500000000672100000000000016757 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Čas do zaračunanja" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "Postavka računa" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "Način obračuna" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Način obračuna" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "Zaračunan znesek" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "Zaračunano opravljeno delo" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "Način obračuna" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Način obračuna" #, fuzzy msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "Čas do zaračunanja" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "Postavka računa" #, fuzzy msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "Po napredku" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "Naloga" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "Postavka računa" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" #, fuzzy msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Invoices" #, fuzzy msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "Obračunane postavke ni možne brisati." msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" #, fuzzy msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "Pri nalogi \"%s\" ni cenika." #, fuzzy msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "Pri nalogi \"%s\" ni partnerja." #, fuzzy msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "Obračunane postavke ni možne popraviti." msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "Zaračunano opravljeno delo" #, fuzzy msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "Ročno" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "Po oceni dela" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "Po napredku" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "Po dejanskem delu" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/tr.po0000644000175000017500000000577400000000000016775 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Invoices" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/locale/zh_CN.po0000644000175000017500000000577400000000000017351 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:project.work,amount_to_invoice:" msgid "Amount to Invoice" msgstr "Project Invoice" msgctxt "field:project.work,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work,invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,invoiced_amount:" msgid "Invoiced Amount" msgstr "" msgctxt "field:project.work,invoiced_progress:" msgid "Invoiced Progress" msgstr "" msgctxt "field:project.work,project_invoice_method:" msgid "Invoice Method" msgstr "" #, fuzzy msgctxt "field:project.work,project_invoice_timesheet_up_to:" msgid "Invoice up to" msgstr "Invoice" msgctxt "field:project.work,quantity_to_invoice:" msgid "Quantity to Invoice" msgstr "" msgctxt "field:project.work.invoiced_progress,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "field:project.work.invoiced_progress,progress:" msgid "Progress" msgstr "" msgctxt "field:project.work.invoiced_progress,work:" msgid "Work" msgstr "" msgctxt "field:timesheet.line,invoice_line:" msgid "Invoice Line" msgstr "" msgctxt "help:project.work,project_invoice_timesheet_up_to:" msgid "" "Limits which timesheet lines get invoiced to only those before the date." msgstr "" msgctxt "model:ir.action,name:act_timesheet_line_form_invoice" msgid "Timesheet Lines" msgstr "Timesheet Lines" #, fuzzy msgctxt "model:ir.action,name:open_invoice" msgid "Invoices" msgstr "Invoices" msgctxt "model:ir.message,text:msg_delete_invoiced_line" msgid "You cannot delete an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_missing_account_revenue" msgid "To invoice work \"%(work)s\" you must configure a default account revenue." msgstr "" msgctxt "model:ir.message,text:msg_missing_list_price" msgid "There is no list price on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_missing_party" msgid "There is no party on work \"%(work)s\"." msgstr "" msgctxt "model:ir.message,text:msg_modify_invoiced_line" msgid "You cannot modify an invoiced line." msgstr "" msgctxt "model:ir.message,text:msg_product_missing_account_revenue" msgid "" "To invoice work \"%(work)s\" you must define an account revenue for product " "\"%(product)s\"." msgstr "" msgctxt "model:ir.model.button,string:work_invoice_button" msgid "Invoice" msgstr "Invoice" msgctxt "model:project.work.invoiced_progress,name:" msgid "Work Invoiced Progress" msgstr "" msgctxt "model:res.group,name:group_project_invoice" msgid "Project Invoice" msgstr "Project Invoice" msgctxt "selection:project.work,project_invoice_method:" msgid "Manual" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Effort" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Progress" msgstr "" msgctxt "selection:project.work,project_invoice_method:" msgid "On Timesheet" msgstr "" msgctxt "view:project.work.invoiced_progress:" msgid "%" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/message.xml0000644000175000017500000000240300000000000016701 0ustar00cedced You cannot modify an invoiced line. You cannot delete an invoiced line. To invoice work "%(work)s" you must define an account revenue for product "%(product)s". To invoice work "%(work)s" you must configure a default account revenue. There is no list price on work "%(work)s". There is no party on work "%(work)s". ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638225081.0 trytond_project_invoice-6.0.1/project.py0000644000175000017500000006417500000000000016571 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from itertools import groupby from collections import defaultdict from decimal import Decimal import datetime from sql import Null from sql.aggregate import Sum from sql.functions import Extract from sql.operators import Concat from trytond.i18n import gettext from trytond.model import ModelSQL, ModelView, fields from trytond.pool import PoolMeta from trytond.pyson import Eval, Bool, If, Id, PYSONEncoder from trytond.pool import Pool from trytond.transaction import Transaction from trytond.wizard import Wizard, StateAction from trytond.tools import reduce_ids, grouped_slice from .exceptions import InvoicingError class Effort: @classmethod def __setup__(cls): super().__setup__() cls.project_invoice_method.selection.append( ('effort', "On Effort")) @classmethod def _get_quantity_to_invoice_effort(cls, works): quantities = {} for work in works: if (work.progress == 1 and work.list_price and not work.invoice_line): if work.price_list_hour: quantity = work.effort_hours else: quantity = 1 if work.unit_to_invoice: quantity = work.unit_to_invoice.round(quantity) quantities[work.id] = quantity return quantities @classmethod def _get_invoiced_amount_effort(cls, works): pool = Pool() InvoiceLine = pool.get('account.invoice.line') Currency = pool.get('currency.currency') invoice_lines = InvoiceLine.browse([ w.invoice_line.id for w in works if w.invoice_line]) id2invoice_lines = dict((l.id, l) for l in invoice_lines) amounts = {} for work in works: currency = work.company.currency if work.invoice_line: invoice_line = id2invoice_lines[work.invoice_line.id] invoice_currency = (invoice_line.invoice.currency if invoice_line.invoice else invoice_line.currency) if work.price_list_hour: amount = ( Decimal(str(work.effort_hours)) * invoice_line.unit_price) else: amount = invoice_line.unit_price amounts[work.id] = Currency.compute( invoice_currency, amount, currency) else: amounts[work.id] = Decimal(0) return amounts def get_origins_to_invoice(self): try: origins = super().get_origins_to_invoice() except AttributeError: origins = [] if self.invoice_method == 'effort': origins.append(self) return origins class Progress: invoiced_progress = fields.One2Many('project.work.invoiced_progress', 'work', 'Invoiced Progress', readonly=True) @classmethod def __setup__(cls): super().__setup__() cls.project_invoice_method.selection.append( ('progress', 'On Progress')) @classmethod def _get_quantity_to_invoice_progress(cls, works): pool = Pool() Progress = pool.get('project.work.invoiced_progress') cursor = Transaction().connection.cursor() table = cls.__table__() progress = Progress.__table__() invoiced_progress = {} quantities = {} for sub_works in grouped_slice(works): sub_works = list(sub_works) where = reduce_ids( table.id, [x.id for x in sub_works if x.list_price]) cursor.execute(*table.join(progress, condition=progress.work == table.id ).select(table.id, Sum(progress.progress), where=where, group_by=table.id)) invoiced_progress.update(dict(cursor)) for work in sub_works: delta = ( (work.progress or 0) - invoiced_progress.get(work.id, 0.0)) if work.list_price and delta > 0: quantity = delta if work.price_list_hour: quantity *= work.effort_hours if work.unit_to_invoice: quantity = work.unit_to_invoice.round(quantity) quantities[work.id] = quantity return quantities @property def progress_to_invoice(self): if self.quantity_to_invoice: if self.price_list_hour: return self.quantity_to_invoice / self.effort_hours else: return self.quantity_to_invoice @classmethod def _get_invoiced_amount_progress(cls, works): pool = Pool() Progress = pool.get('project.work.invoiced_progress') InvoiceLine = pool.get('account.invoice.line') Company = pool.get('company.company') Currency = pool.get('currency.currency') cursor = Transaction().connection.cursor() table = cls.__table__() progress = Progress.__table__() invoice_line = InvoiceLine.__table__() company = Company.__table__() amounts = defaultdict(Decimal) work2currency = {} ids2work = dict((w.id, w) for w in works) for sub_ids in grouped_slice(ids2work.keys()): where = reduce_ids(table.id, sub_ids) cursor.execute(*table.join(progress, condition=progress.work == table.id ).join(invoice_line, condition=progress.invoice_line == invoice_line.id ).select(table.id, Sum(progress.progress * invoice_line.unit_price), where=where, group_by=table.id)) for work_id, amount in cursor: if not isinstance(amount, Decimal): amount = Decimal(str(amount)) work = ids2work[work_id] if work.price_list_hour: amount *= Decimal(str(work.effort_hours)) amounts[work_id] = amount cursor.execute(*table.join(company, condition=table.company == company.id ).select(table.id, company.currency, where=where)) work2currency.update(cursor) currencies = Currency.browse(set(work2currency.values())) id2currency = {c.id: c for c in currencies} for work in works: currency = id2currency[work2currency[work.id]] amounts[work.id] = currency.round(Decimal(amounts[work.id])) return amounts def get_origins_to_invoice(self): pool = Pool() InvoicedProgress = pool.get('project.work.invoiced_progress') try: origins = super().get_origins_to_invoice() except AttributeError: origins = [] if self.invoice_method == 'progress': invoiced_progress = InvoicedProgress( work=self, progress=self.progress_to_invoice) origins.append(invoiced_progress) return origins class Timesheet: project_invoice_timesheet_up_to = fields.Date( "Invoice up to", states={ 'invisible': Eval('project_invoice_method') != 'timesheet', }, depends=['project_invoice_method'], help="Limits which timesheet lines get invoiced to " "only those before the date.") invoice_timesheet_up_to = fields.Function(fields.Date( "Invoice up to"), 'on_change_with_invoice_timesheet_up_to') @classmethod def __setup__(cls): super().__setup__() cls.project_invoice_method.selection.append( ('timesheet', 'On Timesheet')) cls.product.domain = [ cls.product.domain, If(Eval('invoice_method') == 'timesheet', ('default_uom_category', '=', Id('product', 'uom_cat_time')), ()), ] if 'invoice_method' not in cls.product.depends: cls.product.depends.append('invoice_method') @fields.depends('type', 'project_invoice_timesheet_up_to', 'parent', '_parent_parent.invoice_timesheet_up_to') def on_change_with_invoice_timesheet_up_to(self, name=None): if self.type == 'project': return self.project_invoice_timesheet_up_to elif self.parent: return self.parent.invoice_timesheet_up_to @classmethod def _get_quantity_to_invoice_timesheet(cls, works): pool = Pool() TimesheetLine = pool.get('timesheet.line') cursor = Transaction().connection.cursor() line = TimesheetLine.__table__() upto2tworks = defaultdict(list) twork2work = {} for work in works: upto = work.invoice_timesheet_up_to for timesheet_work in work.timesheet_works: twork2work[timesheet_work.id] = work.id upto2tworks[upto].append(timesheet_work.id) durations = defaultdict(datetime.timedelta) query = line.select( line.work, Sum(line.duration), group_by=line.work) for upto, tworks in upto2tworks.items(): for sub_ids in grouped_slice(tworks): query.where = (reduce_ids(line.work, sub_ids) & (line.invoice_line == Null)) if upto: query.where &= (line.date <= upto) cursor.execute(*query) for twork_id, duration in cursor: if duration: # SQLite uses float for SUM if not isinstance(duration, datetime.timedelta): duration = datetime.timedelta(seconds=duration) durations[twork2work[twork_id]] += duration quantities = {} for work in works: duration = durations[work.id] if work.list_price: hours = duration.total_seconds() / 60 / 60 if work.unit_to_invoice: hours = work.unit_to_invoice.round(hours) quantities[work.id] = hours return quantities @classmethod def _get_invoiced_amount_timesheet(cls, works): pool = Pool() TimesheetWork = pool.get('timesheet.work') TimesheetLine = pool.get('timesheet.line') InvoiceLine = pool.get('account.invoice.line') Company = pool.get('company.company') Currency = pool.get('currency.currency') cursor = Transaction().connection.cursor() table = cls.__table__() timesheet_work = TimesheetWork.__table__() timesheet_line = TimesheetLine.__table__() invoice_line = InvoiceLine.__table__() company = Company.__table__() amounts = {} work2currency = {} work_ids = [w.id for w in works] for sub_ids in grouped_slice(work_ids): where = reduce_ids(table.id, sub_ids) cursor.execute(*table.join(timesheet_work, condition=( Concat(cls.__name__ + ',', table.id) == timesheet_work.origin) ).join(timesheet_line, condition=timesheet_line.work == timesheet_work.id ).join(invoice_line, condition=timesheet_line.invoice_line == invoice_line.id ).select(table.id, Sum(timesheet_line.duration * invoice_line.unit_price), where=where, group_by=table.id)) amounts.update(cursor) cursor.execute(*table.join(company, condition=table.company == company.id ).select(table.id, company.currency, where=where)) work2currency.update(cursor) currencies = Currency.browse(set(work2currency.values())) id2currency = {c.id: c for c in currencies} for work in works: currency = id2currency[work2currency[work.id]] amount = amounts.get(work.id, 0) if isinstance(amount, datetime.timedelta): amount = amount.total_seconds() amount = amount / 60 / 60 amounts[work.id] = currency.round(Decimal(str(amount))) return amounts def get_origins_to_invoice(self): try: origins = super().get_origins_to_invoice() except AttributeError: origins = [] if self.invoice_method == 'timesheet': up_to = self.invoice_timesheet_up_to or datetime.date.max origins.extend( l for tw in self.timesheet_works for l in tw.timesheet_lines if not l.invoice_line and l.date <= up_to) return origins class Work(Effort, Progress, Timesheet, metaclass=PoolMeta): __name__ = 'project.work' project_invoice_method = fields.Selection([ ('manual', "Manual"), ], "Invoice Method", states={ 'readonly': Bool(Eval('invoiced_amount')), 'required': Eval('type') == 'project', 'invisible': Eval('type') != 'project', }, depends=['invoiced_amount', 'type']) invoice_method = fields.Function(fields.Selection( 'get_invoice_methods', "Invoice Method"), 'on_change_with_invoice_method') quantity_to_invoice = fields.Function( fields.Float("Quantity to Invoice"), '_get_invoice_values') amount_to_invoice = fields.Function(fields.Numeric("Amount to Invoice", digits=(16, Eval('currency_digits', 2)), states={ 'invisible': Eval('invoice_method') == 'manual', }, depends=['currency_digits', 'invoice_method']), 'get_total') invoiced_amount = fields.Function(fields.Numeric('Invoiced Amount', digits=(16, Eval('currency_digits', 2)), states={ 'invisible': Eval('invoice_method') == 'manual', }, depends=['currency_digits', 'invoice_method']), 'get_total') invoice_line = fields.Many2One('account.invoice.line', 'Invoice Line', readonly=True) @classmethod def __setup__(cls): super(Work, cls).__setup__() cls._buttons.update({ 'invoice': { 'invisible': ((Eval('type') != 'project') | (Eval('project_invoice_method', 'manual') == 'manual')), 'readonly': ~Eval('amount_to_invoice'), 'depends': [ 'type', 'project_invoice_method', 'amount_to_invoice'], }, }) @staticmethod def default_project_invoice_method(): return 'manual' @classmethod def copy(cls, records, default=None): if default is None: default = {} else: default = default.copy() default.setdefault('invoice_line', None) return super(Work, cls).copy(records, default=default) @classmethod def get_invoice_methods(cls): field = 'project_invoice_method' return cls.fields_get(field)[field]['selection'] @fields.depends('type', 'project_invoice_method', 'parent', '_parent_parent.invoice_method') def on_change_with_invoice_method(self, name=None): if self.type == 'project': return self.project_invoice_method elif self.parent: return self.parent.invoice_method else: return 'manual' @classmethod def default_quantity_to_invoice(cls): return 0 @classmethod def _get_quantity_to_invoice_manual(cls, works): return {} @classmethod def _get_amount_to_invoice(cls, works): amounts = {} for work in works: amounts[work.id] = work.company.currency.round( (work.invoice_unit_price or 0) * Decimal(str(work.quantity_to_invoice))) return amounts @classmethod def default_invoiced_amount(cls): return Decimal(0) @classmethod def _get_invoiced_amount_manual(cls, works): return {} @classmethod def _get_invoice_values(cls, works, name): default = getattr(cls, 'default_%s' % name) amounts = dict.fromkeys((w.id for w in works), default()) method2works = defaultdict(list) for work in works: method2works[work.invoice_method].append(work) for method, m_works in method2works.items(): method = getattr(cls, '_get_%s_%s' % (name, method)) # Re-browse for cache alignment amounts.update(method(cls.browse(m_works))) return amounts @classmethod def _get_invoiced_amount(cls, works): return cls._get_invoice_values(works, 'invoiced_amount') @classmethod @ModelView.button def invoice(cls, works): pool = Pool() Invoice = pool.get('account.invoice') invoices = [] uninvoiced = works[:] while uninvoiced: work = uninvoiced.pop(0) invoice_lines, uninvoiced_children = ( work._get_all_lines_to_invoice()) uninvoiced.extend(uninvoiced_children) if not invoice_lines: continue invoice = work._get_invoice() invoice.save() invoices.append(invoice) for key, lines in groupby(invoice_lines, key=work._group_lines_to_invoice_key): lines = list(lines) key = dict(key) invoice_line = work._get_invoice_line(key, invoice, lines) invoice_line.invoice = invoice.id invoice_line.save() origins = defaultdict(list) for line in lines: for origin in line['origins']: origins[origin.__class__].append(origin) # TODO: remove when _check_access ignores record rule with Transaction().set_user(0): for klass, records in origins.items(): klass.save(records) # Store first new origins klass.write(records, { 'invoice_line': invoice_line.id, }) Invoice.update_taxes(invoices) def _get_invoice(self): "Return invoice for the work" pool = Pool() Invoice = pool.get('account.invoice') Journal = pool.get('account.journal') journals = Journal.search([ ('type', '=', 'revenue'), ], limit=1) if journals: journal, = journals else: journal = None if not self.party: raise InvoicingError( gettext('project_invoice.msg_missing_party', work=self.rec_name)) return Invoice( company=self.company, type='out', journal=journal, party=self.party, invoice_address=self.party.address_get(type='invoice'), currency=self.company.currency, account=self.party.account_receivable_used, payment_term=self.party.customer_payment_term, description=self.name, ) def _group_lines_to_invoice_key(self, line): "The key to group lines" return (('product', line['product']), ('unit', line['unit']), ('unit_price', line['unit_price']), ('description', line['description'])) def _get_invoice_line(self, key, invoice, lines): "Return a invoice line for the lines" pool = Pool() InvoiceLine = pool.get('account.invoice.line') AccountConfiguration = pool.get('account.configuration') account_config = AccountConfiguration(1) quantity = sum(l['quantity'] for l in lines) product = key['product'] invoice_line = InvoiceLine() invoice_line.type = 'line' invoice_line.description = key['description'] if product: invoice_line.account = product.account_revenue_used if not invoice_line.account: raise InvoicingError( gettext( 'project_invoice.msg_product_missing_account_revenue', work=self.rec_name, product=product.rec_name)) else: invoice_line.account = account_config.get_multivalue( 'default_category_account_revenue', company=invoice.company.id) if not invoice_line.account: raise InvoicingError( gettext('project_invoice.msg_missing_account_revenue', work=self.rec_name)) invoice_line.product = product invoice_line.unit_price = key['unit_price'] invoice_line.quantity = quantity invoice_line.unit = key['unit'] invoice_line.currency = invoice.currency invoice_line.company = invoice.company taxes = [] pattern = invoice_line._get_tax_rule_pattern() party = invoice.party original_taxes = ( product.customer_taxes_used if product else invoice.account.taxes) for tax in original_taxes: if party.customer_tax_rule: tax_ids = party.customer_tax_rule.apply(tax, pattern) if tax_ids: taxes.extend(tax_ids) continue taxes.append(tax.id) if party.customer_tax_rule: tax_ids = party.customer_tax_rule.apply(None, pattern) if tax_ids: taxes.extend(tax_ids) invoice_line.taxes = taxes return invoice_line def _test_group_invoice(self): return (self.company, self.party) def _get_all_lines_to_invoice(self, test=None): "Return lines for work and children" lines = [] if test is None: test = self._test_group_invoice() uninvoiced_children = [] lines += self._get_lines_to_invoice() for children in self.children: if children.type == 'project': if test != children._test_group_invoice(): uninvoiced_children.append(children) continue child_lines, uninvoiced = children._get_all_lines_to_invoice( test=test) lines.extend(child_lines) uninvoiced_children.extend(uninvoiced) return lines, uninvoiced_children def _get_lines_to_invoice(self): if self.quantity_to_invoice: if self.invoice_unit_price is None: raise InvoicingError( gettext('project_invoice.msg_missing_list_price', work=self.rec_name)) return [{ 'product': self.product, 'quantity': self.quantity_to_invoice, 'unit': self.unit_to_invoice, 'unit_price': self.invoice_unit_price, 'origins': self.get_origins_to_invoice(), 'description': self.name, }] return [] @property def invoice_unit_price(self): return self.list_price @property def unit_to_invoice(self): pool = Pool() ModelData = pool.get('ir.model.data') Uom = pool.get('product.uom') if self.price_list_hour: return Uom(ModelData.get_id('product', 'uom_hour')) elif self.product: return self.product.default_uom def get_origins_to_invoice(self): return super().get_origins_to_invoice() class WorkInvoicedProgress(ModelView, ModelSQL): 'Work Invoiced Progress' __name__ = 'project.work.invoiced_progress' work = fields.Many2One('project.work', 'Work', ondelete='RESTRICT', select=True) progress = fields.Float('Progress', required=True, domain=[ ('progress', '>=', 0), ]) invoice_line = fields.Many2One('account.invoice.line', 'Invoice Line', ondelete='CASCADE') @classmethod def __register__(cls, module_name): cursor = Transaction().connection.cursor() table = cls.__table_handler__(module_name) sql_table = cls.__table__() pool = Pool() Work = pool.get('project.work') work = Work.__table__() created_progress = not table.column_exist('progress') effort_exist = table.column_exist('effort_duration') super().__register__(module_name) # Migration from 5.0: Effort renamed into to progress if created_progress and effort_exist: # Don't use UPDATE FROM because SQLite does not support it. value = work.select( (Extract('EPOCH', sql_table.effort_duration) / Extract('EPOCH', work.effort_duration)), where=work.id == sql_table.work) cursor.execute(*sql_table.update([sql_table.progress], [value])) class OpenInvoice(Wizard): 'Open Invoice' __name__ = 'project.open_invoice' start_state = 'open_' open_ = StateAction('account_invoice.act_invoice_form') def do_open_(self, action): works = self.model.search([ ('parent', 'child_of', list(map(int, self.records))), ]) invoice_ids = set() for work in works: if work.invoice_line and work.invoice_line.invoice: invoice_ids.add(work.invoice_line.invoice.id) for twork in work.timesheet_works: for timesheet_line in twork.timesheet_lines: if (timesheet_line.invoice_line and timesheet_line.invoice_line.invoice): invoice_ids.add(timesheet_line.invoice_line.invoice.id) if work.invoiced_progress: for progress in work.invoiced_progress: invoice_ids.add(progress.invoice_line.invoice.id) encoder = PYSONEncoder() action['pyson_domain'] = encoder.encode( [('id', 'in', list(invoice_ids))]) action['pyson_search_value'] = encoder.encode([]) return action, {} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/project.xml0000644000175000017500000000622600000000000016732 0ustar00cedced Project Invoice project.work work_list project.work work_form invoice Invoice project.work.invoiced_progress form work_invoiced_progress_form project.work.invoiced_progress tree work_invoiced_progress_list Invoices project.open_invoice project.work form_relate project.work,-1 ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4981837 trytond_project_invoice-6.0.1/setup.cfg0000644000175000017500000000004600000000000016355 0ustar00cedced[egg_info] tag_build = tag_date = 0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/setup.py0000755000175000017500000001217500000000000016257 0ustar00cedced#!/usr/bin/env python3 # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. import io import os import re from configparser import ConfigParser from setuptools import setup, find_packages def read(fname): return io.open( os.path.join(os.path.dirname(__file__), fname), 'r', encoding='utf-8').read() def get_require_version(name): if minor_version % 2: require = '%s >= %s.%s.dev0, < %s.%s' else: require = '%s >= %s.%s, < %s.%s' require %= (name, major_version, minor_version, major_version, minor_version + 1) return require config = ConfigParser() config.read_file(open(os.path.join(os.path.dirname(__file__), 'tryton.cfg'))) info = dict(config.items('tryton')) for key in ('depends', 'extras_depend', 'xml'): if key in info: info[key] = info[key].strip().splitlines() version = info.get('version', '0.0.1') major_version, minor_version, _ = version.split('.', 2) major_version = int(major_version) minor_version = int(minor_version) name = 'trytond_project_invoice' download_url = 'http://downloads.tryton.org/%s.%s/' % ( major_version, minor_version) if minor_version % 2: version = '%s.%s.dev0' % (major_version, minor_version) download_url = ( 'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % ( name[8:], name, version)) local_version = [] if os.environ.get('CI_JOB_ID'): local_version.append(os.environ['CI_JOB_ID']) else: for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER']: if os.environ.get(build): local_version.append(os.environ[build]) else: local_version = [] break if local_version: version += '+' + '.'.join(local_version) requires = ['python-sql >= 0.4'] for dep in info.get('depends', []): if not re.match(r'(ir|res)(\W|$)', dep): requires.append(get_require_version('trytond_%s' % dep)) requires.append(get_require_version('trytond')) tests_require = [get_require_version('proteus')] dependency_links = [] if minor_version % 2: dependency_links.append( 'https://trydevpi.tryton.org/?local_version=' + '.'.join(local_version)) setup(name=name, version=version, description='Tryton module to invoice projects', long_description=read('README.rst'), author='Tryton', author_email='bugs@tryton.org', url='http://www.tryton.org/', download_url=download_url, project_urls={ "Bug Tracker": 'https://bugs.tryton.org/', "Documentation": 'https://docs.tryton.org/', "Forum": 'https://www.tryton.org/forum', "Source Code": 'https://hg.tryton.org/modules/project_invoice', }, keywords='tryton project invoice', package_dir={'trytond.modules.project_invoice': '.'}, packages=( ['trytond.modules.project_invoice'] + ['trytond.modules.project_invoice.%s' % p for p in find_packages()] ), package_data={ 'trytond.modules.project_invoice': (info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Plugins', 'Framework :: Tryton', 'Intended Audience :: Developers', 'Intended Audience :: Financial and Insurance Industry', 'Intended Audience :: Legal Industry', 'Intended Audience :: Manufacturing', 'License :: OSI Approved :: ' 'GNU General Public License v3 or later (GPLv3+)', 'Natural Language :: Bulgarian', 'Natural Language :: Catalan', 'Natural Language :: Chinese (Simplified)', 'Natural Language :: Czech', 'Natural Language :: Dutch', 'Natural Language :: English', 'Natural Language :: Finnish', 'Natural Language :: French', 'Natural Language :: German', 'Natural Language :: Hungarian', 'Natural Language :: Indonesian', 'Natural Language :: Italian', 'Natural Language :: Persian', 'Natural Language :: Polish', 'Natural Language :: Portuguese (Brazilian)', 'Natural Language :: Romanian', 'Natural Language :: Russian', 'Natural Language :: Slovenian', 'Natural Language :: Spanish', 'Natural Language :: Turkish', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Office/Business', ], license='GPL-3', python_requires='>=3.6', install_requires=requires, dependency_links=dependency_links, zip_safe=False, entry_points=""" [trytond.modules] project_invoice = trytond.modules.project_invoice """, test_suite='tests', test_loader='trytond.test_loader:Loader', tests_require=tests_require, ) ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4915168 trytond_project_invoice-6.0.1/tests/0000755000175000017500000000000000000000000015676 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/tests/__init__.py0000644000175000017500000000051200000000000020005 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. try: from trytond.modules.project_invoice.tests.test_project_invoice import suite # noqa: E501 except ImportError: from .test_project_invoice import suite __all__ = ['suite'] ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/tests/scenario_project_invoice_effort.rst0000644000175000017500000001316200000000000025045 0ustar00cedced=============================== Project Invoice Effort Scenario =============================== Imports:: >>> import datetime >>> from dateutil.relativedelta import relativedelta >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules, set_user >>> from trytond.modules.company.tests.tools import create_company, \ ... get_company >>> from trytond.modules.account.tests.tools import create_chart, \ ... get_accounts >>> from trytond.modules.account_invoice.tests.tools import \ ... create_payment_term >>> today = datetime.date.today() Activate modules:: >>> config = activate_modules('project_invoice') Create company:: >>> _ = create_company() >>> company = get_company() Create project user:: >>> User = Model.get('res.user') >>> Group = Model.get('res.group') >>> project_user = User() >>> project_user.name = 'Project' >>> project_user.login = 'project' >>> project_group, = Group.find([('name', '=', 'Project Administration')]) >>> timesheet_group, = Group.find([('name', '=', 'Timesheet Administration')]) >>> project_user.groups.extend([project_group, timesheet_group]) >>> project_user.save() Create project invoice user:: >>> project_invoice_user = User() >>> project_invoice_user.name = 'Project Invoice' >>> project_invoice_user.login = 'project_invoice' >>> project_invoice_group, = Group.find([('name', '=', 'Project Invoice')]) >>> project_group, = Group.find([('name', '=', 'Project Administration')]) >>> project_invoice_user.groups.extend( ... [project_invoice_group, project_group]) >>> project_invoice_user.save() Create chart of accounts:: >>> _ = create_chart(company) >>> accounts = get_accounts(company) >>> revenue = accounts['revenue'] Create payment term:: >>> payment_term = create_payment_term() >>> payment_term.save() Create customer:: >>> Party = Model.get('party.party') >>> customer = Party(name='Customer') >>> customer.customer_payment_term = payment_term >>> customer.save() Create employee:: >>> Employee = Model.get('company.employee') >>> employee = Employee() >>> party = Party(name='Employee') >>> party.save() >>> employee.party = party >>> employee.company = company >>> employee.save() Create account category:: >>> ProductCategory = Model.get('product.category') >>> account_category = ProductCategory(name="Account Category") >>> account_category.accounting = True >>> account_category.account_revenue = revenue >>> account_category.save() Create products:: >>> ProductUom = Model.get('product.uom') >>> hour, = ProductUom.find([('name', '=', 'Hour')]) >>> unit, = ProductUom.find([('name', '=', 'Unit')]) >>> ProductTemplate = Model.get('product.template') >>> template = ProductTemplate() >>> template.name = 'Service' >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') >>> template.account_category = account_category >>> template.save() >>> product, = template.products >>> template = ProductTemplate() >>> template.name = 'Service Fixed' >>> template.default_uom = unit >>> template.type = 'service' >>> template.list_price = Decimal('50') >>> template.account_category = account_category >>> template.save() >>> product_fixed, = template.products Create a Project:: >>> set_user(project_user) >>> ProjectWork = Model.get('project.work') >>> project = ProjectWork() >>> project.name = 'Test effort' >>> project.type = 'project' >>> project.party = customer >>> project.project_invoice_method = 'effort' >>> project.product = product >>> project.effort_duration = datetime.timedelta(hours=1) >>> task = project.children.new() >>> task.name = 'Task 1' >>> task.type = 'task' >>> task.product = product >>> task.effort_duration = datetime.timedelta(hours=5) >>> task_no_effort = project.children.new() >>> task_no_effort.name = "Task 2" >>> task_no_effort.type = 'task' >>> task_no_effort.effort_duration = None >>> task_fixed = project.children.new() >>> task_fixed.name = "Task 2" >>> task_fixed.type = 'task' >>> task_fixed.effort_duration = datetime.timedelta(hours=2) >>> task_fixed.product = product_fixed >>> project.save() >>> task, task_no_effort, task_fixed = project.children Check project amounts:: >>> project.reload() >>> project.invoiced_amount Decimal('0') >>> project.amount_to_invoice Decimal('0.00') Do 1 task:: >>> task.progress = 1 >>> task.save() Check project amounts:: >>> project.reload() >>> project.invoiced_amount Decimal('0') >>> project.amount_to_invoice Decimal('100.00') Invoice project:: >>> set_user(project_invoice_user) >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('100.00') Do project:: >>> set_user(project_user) >>> task_no_effort.progress = 1 >>> task_no_effort.save() >>> task_fixed.progress = 1 >>> task_fixed.save() >>> project.progress = 1 >>> project.save() Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('70.00') >>> project.invoiced_amount Decimal('100.00') Invoice again project:: >>> set_user(project_invoice_user) >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('170.00') ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/tests/scenario_project_invoice_multiple_party.rst0000644000175000017500000000652000000000000026632 0ustar00cedced========================================= Project Invoice Multiple Parties Scenario ========================================= Imports:: >>> import datetime >>> from dateutil.relativedelta import relativedelta >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules >>> from trytond.modules.company.tests.tools import create_company, \ ... get_company >>> from trytond.modules.account.tests.tools import create_chart, \ ... get_accounts >>> today = datetime.date.today() Activate modules:: >>> config = activate_modules('project_invoice') Create company:: >>> _ = create_company() >>> company = get_company() Create chart of accounts:: >>> _ = create_chart(company) >>> accounts = get_accounts(company) >>> revenue = accounts['revenue'] Create two customers:: >>> Party = Model.get('party.party') >>> customer1 = Party(name='Customer 1') >>> customer1.save() >>> customer2 = Party(name='Customer 2') >>> customer2.save() Create account category:: >>> ProductCategory = Model.get('product.category') >>> account_category = ProductCategory(name="Account Category") >>> account_category.accounting = True >>> account_category.account_revenue = revenue >>> account_category.save() Create product:: >>> ProductUom = Model.get('product.uom') >>> hour, = ProductUom.find([('name', '=', 'Hour')]) >>> ProductTemplate = Model.get('product.template') >>> template = ProductTemplate() >>> template.name = 'Service' >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') >>> template.account_category = account_category >>> template.save() >>> product, = template.products Create a Project with multiple customers:: >>> ProjectWork = Model.get('project.work') >>> project = ProjectWork() >>> project.name = 'Test multiple party' >>> project.type = 'project' >>> project.party = customer1 >>> project.project_invoice_method = 'effort' >>> project.product = product >>> project.effort_duration = datetime.timedelta(hours=1) >>> subproject = project.children.new() >>> subproject.name = 'Subproject' >>> subproject.type = 'project' >>> subproject.party = customer2 >>> subproject.project_invoice_method = 'effort' >>> subproject.product = product >>> subproject.effort_duration = datetime.timedelta(hours=5) >>> project.save() >>> subproject, = project.children Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('0') Do project and subproject:: >>> subproject.progress = 1 >>> subproject.save() >>> project.progress = 1 >>> project.save() Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('120.00') >>> project.invoiced_amount Decimal('0') Invoice project:: >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('120.00') >>> Invoice = Model.get('account.invoice') >>> invoices = Invoice.find([]) >>> len(invoices) 2 >>> sorted([i.party.name for i in invoices]) ['Customer 1', 'Customer 2'] ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/tests/scenario_project_invoice_progress.rst0000644000175000017500000001317200000000000025425 0ustar00cedced================================= Project Invoice Progress Scenario ================================= Imports:: >>> import datetime >>> from dateutil.relativedelta import relativedelta >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules, set_user >>> from trytond.modules.company.tests.tools import create_company, \ ... get_company >>> from trytond.modules.account.tests.tools import create_chart, \ ... get_accounts >>> from trytond.modules.account_invoice.tests.tools import \ ... create_payment_term >>> today = datetime.date.today() Activate modules:: >>> config = activate_modules('project_invoice') Create company:: >>> _ = create_company() >>> company = get_company() Create project user:: >>> User = Model.get('res.user') >>> Group = Model.get('res.group') >>> project_user = User() >>> project_user.name = 'Project' >>> project_user.login = 'project' >>> project_group, = Group.find([('name', '=', 'Project Administration')]) >>> timesheet_group, = Group.find([('name', '=', 'Timesheet Administration')]) >>> project_user.groups.extend([project_group, timesheet_group]) >>> project_user.save() Create project invoice user:: >>> project_invoice_user = User() >>> project_invoice_user.name = 'Project Invoice' >>> project_invoice_user.login = 'project_invoice' >>> project_invoice_group, = Group.find([('name', '=', 'Project Invoice')]) >>> project_group, = Group.find([('name', '=', 'Project Administration')]) >>> project_invoice_user.groups.extend( ... [project_invoice_group, project_group]) >>> project_invoice_user.save() Create chart of accounts:: >>> _ = create_chart(company) >>> accounts = get_accounts(company) >>> revenue = accounts['revenue'] Create payment term:: >>> payment_term = create_payment_term() >>> payment_term.save() Create customer:: >>> Party = Model.get('party.party') >>> customer = Party(name='Customer') >>> customer.customer_payment_term = payment_term >>> customer.save() Create employee:: >>> Employee = Model.get('company.employee') >>> employee = Employee() >>> party = Party(name='Employee') >>> party.save() >>> employee.party = party >>> employee.company = company >>> employee.save() Create account category:: >>> ProductCategory = Model.get('product.category') >>> account_category = ProductCategory(name="Account Category") >>> account_category.accounting = True >>> account_category.account_revenue = revenue >>> account_category.save() Create product:: >>> ProductUom = Model.get('product.uom') >>> hour, = ProductUom.find([('name', '=', 'Hour')]) >>> unit, = ProductUom.find([('name', '=', 'Unit')]) >>> unit.rounding = 0.01 >>> unit.digits = 2 >>> unit.save() >>> ProductTemplate = Model.get('product.template') >>> template = ProductTemplate() >>> template.name = 'Service' >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') >>> template.account_category = account_category >>> template.save() >>> product, = template.products >>> template = ProductTemplate() >>> template.name = 'Service Fixed' >>> template.default_uom = unit >>> template.type = 'service' >>> template.list_price = Decimal('50') >>> template.account_category = account_category >>> template.save() >>> product_fixed, = template.products Create a Project:: >>> set_user(project_user) >>> ProjectWork = Model.get('project.work') >>> TimesheetWork = Model.get('timesheet.work') >>> project = ProjectWork() >>> project.name = 'Test effort' >>> project.type = 'project' >>> project.party = customer >>> project.project_invoice_method = 'progress' >>> project.product = product >>> project.effort_duration = datetime.timedelta(hours=1) >>> task = project.children.new() >>> task.name = 'Task 1' >>> task.type = 'task' >>> task.product = product >>> task.effort_duration = datetime.timedelta(hours=5) >>> task_fixed = project.children.new() >>> task_fixed.name = 'Task 2' >>> task_fixed.type = 'task' >>> task_fixed.product = product >>> task_fixed.product = product_fixed >>> project.save() >>> task, task_fixed = project.children Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('0.00') Do 50% of task:: >>> task.progress = 0.5 >>> task.save() >>> task_fixed.progress = 0.5 >>> task_fixed.save() Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('75.00') >>> project.invoiced_amount Decimal('0.00') Invoice project:: >>> set_user(project_invoice_user) >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('75.00') Do 75% and 90% of tasks and 80% of project:: >>> set_user(project_user) >>> task.progress = 0.75 >>> task.save() >>> task_fixed.progress = 0.9 >>> task_fixed.save() >>> project.progress = 0.80 >>> project.save() Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('61.00') >>> project.invoiced_amount Decimal('75.00') Invoice again project:: >>> set_user(project_invoice_user) >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('136.00') ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638225081.0 trytond_project_invoice-6.0.1/tests/scenario_project_invoice_timesheet.rst0000644000175000017500000001500000000000000025540 0ustar00cedced================================== Project Invoice Timesheet Scenario ================================== Imports:: >>> import datetime >>> from dateutil.relativedelta import relativedelta >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules, set_user >>> from trytond.modules.company.tests.tools import create_company, \ ... get_company >>> from trytond.modules.account.tests.tools import create_chart, \ ... get_accounts >>> from trytond.modules.account_invoice.tests.tools import \ ... create_payment_term >>> today = datetime.date.today() >>> yesterday = today - datetime.timedelta(days=1) Activate modules:: >>> config = activate_modules('project_invoice') Create company:: >>> _ = create_company() >>> company = get_company() Create project user:: >>> User = Model.get('res.user') >>> Group = Model.get('res.group') >>> project_user = User() >>> project_user.name = 'Project' >>> project_user.login = 'project' >>> project_group, = Group.find([('name', '=', 'Project Administration')]) >>> timesheet_group, = Group.find([('name', '=', 'Timesheet Administration')]) >>> project_user.groups.extend([project_group, timesheet_group]) >>> project_user.save() Create project invoice user:: >>> project_invoice_user = User() >>> project_invoice_user.name = 'Project Invoice' >>> project_invoice_user.login = 'project_invoice' >>> project_invoice_group, = Group.find([('name', '=', 'Project Invoice')]) >>> project_group, = Group.find([('name', '=', 'Project Administration')]) >>> invoice_group, = Group.find([('name', '=', 'Account')]) >>> project_invoice_user.groups.extend( ... [project_invoice_group, project_group, invoice_group]) >>> project_invoice_user.save() Create chart of accounts:: >>> _ = create_chart(company) >>> accounts = get_accounts(company) >>> revenue = accounts['revenue'] Create payment term:: >>> payment_term = create_payment_term() >>> payment_term.save() Create customer:: >>> Party = Model.get('party.party') >>> customer = Party(name='Customer') >>> customer.customer_payment_term = payment_term >>> customer.save() Create employee:: >>> Employee = Model.get('company.employee') >>> employee = Employee() >>> party = Party(name='Employee') >>> party.save() >>> employee.party = party >>> employee.company = company >>> employee.save() Create account category:: >>> ProductCategory = Model.get('product.category') >>> account_category = ProductCategory(name="Account Category") >>> account_category.accounting = True >>> account_category.account_revenue = revenue >>> account_category.save() Create product:: >>> ProductUom = Model.get('product.uom') >>> hour, = ProductUom.find([('name', '=', 'Hour')]) >>> ProductTemplate = Model.get('product.template') >>> template = ProductTemplate() >>> template.name = 'Service' >>> template.default_uom = hour >>> template.type = 'service' >>> template.list_price = Decimal('20') >>> template.account_category = account_category >>> template.save() >>> product, = template.products Create a Project:: >>> set_user(project_user) >>> ProjectWork = Model.get('project.work') >>> project = ProjectWork() >>> project.name = 'Test timesheet' >>> project.type = 'project' >>> project.party = customer >>> project.project_invoice_method = 'timesheet' >>> project.product = product >>> project.timesheet_available = True >>> task = ProjectWork() >>> task.name = 'Task 1' >>> task.timesheet_available = True >>> task.type = 'task' >>> task.product = product >>> project.children.append(task) >>> project.save() >>> task, = project.children Add a task without timesheet work:: >>> task2 = project.children.new() >>> task2.name = 'Task 2' >>> task2.type = 'task' >>> project.save() Create timesheets:: >>> TimesheetLine = Model.get('timesheet.line') >>> line = TimesheetLine() >>> line.date = yesterday >>> line.employee = employee >>> line.duration = datetime.timedelta(hours=3) >>> line.work, = task.timesheet_works >>> line.save() >>> line = TimesheetLine() >>> line.date = today >>> line.employee = employee >>> line.duration = datetime.timedelta(hours=2) >>> line.work, = project.timesheet_works >>> line.save() Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('100.00') >>> project.invoiced_amount Decimal('0.00') Invoice project up to yesterday:: >>> set_user(project_user) >>> project.project_invoice_timesheet_up_to = yesterday >>> project.save() >>> set_user(project_invoice_user) >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('60.00') >>> project.project_invoice_timesheet_up_to = today >>> project.save() >>> project.amount_to_invoice Decimal('40.00') >>> set_user(project_invoice_user) >>> Invoice = Model.get('account.invoice') >>> invoice, = Invoice.find([]) >>> invoice.total_amount Decimal('60.00') Invoice all project:: >>> set_user(project_user) >>> project.project_invoice_timesheet_up_to = None >>> project.save() >>> set_user(project_invoice_user) >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('100.00') >>> set_user(project_invoice_user) >>> _, invoice = Invoice.find([], order=[('id', 'ASC')]) >>> invoice.total_amount Decimal('40.00') Create more timesheets:: >>> set_user(project_user) >>> TimesheetLine = Model.get('timesheet.line') >>> line = TimesheetLine() >>> line.employee = employee >>> line.duration = datetime.timedelta(hours=4) >>> line.work, = task.timesheet_works >>> line.save() Check project amounts:: >>> project.reload() >>> project.amount_to_invoice Decimal('80.00') >>> project.invoiced_amount Decimal('100.00') Invoice again project:: >>> set_user(project_invoice_user) >>> project.click('invoice') >>> project.amount_to_invoice Decimal('0.00') >>> project.invoiced_amount Decimal('180.00') >>> set_user(project_invoice_user) >>> _, _, invoice = Invoice.find([], order=[('id', 'ASC')]) >>> invoice.total_amount Decimal('80.00') ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/tests/test_project_invoice.py0000644000175000017500000000317300000000000022475 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. import unittest import doctest import trytond.tests.test_tryton from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import doctest_teardown from trytond.tests.test_tryton import doctest_checker class ProjectInvoiceTestCase(ModuleTestCase): 'Test Project Invoice module' module = 'project_invoice' def suite(): suite = trytond.tests.test_tryton.suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase( ProjectInvoiceTestCase)) suite.addTests(doctest.DocFileSuite( 'scenario_project_invoice_timesheet.rst', tearDown=doctest_teardown, encoding='utf-8', checker=doctest_checker, optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) suite.addTests(doctest.DocFileSuite( 'scenario_project_invoice_effort.rst', tearDown=doctest_teardown, encoding='utf-8', checker=doctest_checker, optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) suite.addTests(doctest.DocFileSuite( 'scenario_project_invoice_progress.rst', tearDown=doctest_teardown, encoding='utf-8', checker=doctest_checker, optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) suite.addTests(doctest.DocFileSuite( 'scenario_project_invoice_multiple_party.rst', tearDown=doctest_teardown, encoding='utf-8', checker=doctest_checker, optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) return suite ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/timesheet.py0000644000175000017500000000247000000000000017100 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.i18n import gettext from trytond.model import fields from trytond.model.exceptions import AccessError from trytond.pool import PoolMeta class Line(metaclass=PoolMeta): __name__ = 'timesheet.line' invoice_line = fields.Many2One('account.invoice.line', 'Invoice Line', readonly=True) @classmethod def copy(cls, records, default=None): if default is None: default = {} else: default = default.copy() default.setdefault('invoice_line', None) return super().copy(records, default=default) @classmethod def write(cls, *args): actions = iter(args) for lines, values in zip(actions, actions): if (('duration' in values or 'work' in values) and any(l.invoice_line for l in lines)): raise AccessError( gettext('project_invoice.msg_modify_invoiced_line')) super().write(*args) @classmethod def delete(cls, records): if any(r.invoice_line for r in records): raise AccessError( gettext('project_invoice.msg_delete_invoiced_line')) super().delete(records) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/timesheet.xml0000644000175000017500000000234200000000000017246 0ustar00cedced Timesheet Lines timesheet.line form_relate account.invoice,-1 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/tox.ini0000644000175000017500000000123500000000000016050 0ustar00cedced[tox] envlist = {py36,py37,py38,py39}-{sqlite,postgresql},pypy3-{sqlite,postgresql} [testenv] commands = {envpython} setup.py test deps = {py36,py37,py38,py39}-postgresql: psycopg2 >= 2.5 pypy3-postgresql: psycopg2cffi >= 2.5 py36-sqlite: sqlitebck setenv = sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://} postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://} sqlite: DB_NAME={env:SQLITE_NAME::memory:} postgresql: DB_NAME={env:POSTGRESQL_NAME:test} install_command = pip install --pre --find-links https://trydevpi.tryton.org/?local_version={env:CI_JOB_ID:{env:CI_BUILD_NUMBER}.{env:CI_JOB_NUMBER}} {opts} {packages} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052597.0 trytond_project_invoice-6.0.1/tryton.cfg0000644000175000017500000000031400000000000016552 0ustar00cedced[tryton] version=6.0.1 depends: ir project project_revenue timesheet account account_invoice account_product product xml: project.xml timesheet.xml message.xml ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4948504 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/0000755000175000017500000000000000000000000023173 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564784.0 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/PKG-INFO0000644000175000017500000000550500000000000024275 0ustar00cedcedMetadata-Version: 1.2 Name: trytond-project-invoice Version: 6.0.1 Summary: Tryton module to invoice projects Home-page: http://www.tryton.org/ Author: Tryton Author-email: bugs@tryton.org License: GPL-3 Download-URL: http://downloads.tryton.org/6.0/ Project-URL: Bug Tracker, https://bugs.tryton.org/ Project-URL: Documentation, https://docs.tryton.org/ Project-URL: Forum, https://www.tryton.org/forum Project-URL: Source Code, https://hg.tryton.org/modules/project_invoice Description: Project Invoice Module ###################### The Project Invoice module adds invoice methods on project. The methods are: - Manual: Tryton doesn't create any invoice. - On Effort: The invoices are created based on the *Effort* hours for all children works with 100% progress. - On Progress: The invoices are create proportionally to the *Progress* of the *Effort* hours of each children work. - On Timesheet: The invoices are created based on the timesheets encoded on all children works. Keywords: tryton project invoice Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Plugins Classifier: Framework :: Tryton Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Financial and Insurance Industry Classifier: Intended Audience :: Legal Industry Classifier: Intended Audience :: Manufacturing Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Natural Language :: Bulgarian Classifier: Natural Language :: Catalan Classifier: Natural Language :: Chinese (Simplified) Classifier: Natural Language :: Czech Classifier: Natural Language :: Dutch Classifier: Natural Language :: English Classifier: Natural Language :: Finnish Classifier: Natural Language :: French Classifier: Natural Language :: German Classifier: Natural Language :: Hungarian Classifier: Natural Language :: Indonesian Classifier: Natural Language :: Italian Classifier: Natural Language :: Persian Classifier: Natural Language :: Polish Classifier: Natural Language :: Portuguese (Brazilian) Classifier: Natural Language :: Romanian Classifier: Natural Language :: Russian Classifier: Natural Language :: Slovenian Classifier: Natural Language :: Spanish Classifier: Natural Language :: Turkish Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Office/Business Requires-Python: >=3.6 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564785.0 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/SOURCES.txt0000644000175000017500000000376400000000000025071 0ustar00cedced.drone.yml .flake8 .hgtags CHANGELOG COPYRIGHT LICENSE MANIFEST.in README.rst __init__.py exceptions.py invoice.py message.xml project.py project.xml setup.py timesheet.py timesheet.xml tox.ini tryton.cfg ./__init__.py ./exceptions.py ./invoice.py ./message.xml ./project.py ./project.xml ./timesheet.py ./timesheet.xml ./tryton.cfg ./locale/bg.po ./locale/ca.po ./locale/cs.po ./locale/de.po ./locale/es.po ./locale/es_419.po ./locale/et.po ./locale/fa.po ./locale/fi.po ./locale/fr.po ./locale/hu.po ./locale/id.po ./locale/it.po ./locale/lo.po ./locale/lt.po ./locale/nl.po ./locale/pl.po ./locale/pt.po ./locale/ro.po ./locale/ru.po ./locale/sl.po ./locale/tr.po ./locale/zh_CN.po ./tests/__init__.py ./tests/scenario_project_invoice_effort.rst ./tests/scenario_project_invoice_multiple_party.rst ./tests/scenario_project_invoice_progress.rst ./tests/scenario_project_invoice_timesheet.rst ./tests/test_project_invoice.py ./view/work_form.xml ./view/work_invoiced_progress_form.xml ./view/work_invoiced_progress_list.xml ./view/work_list.xml doc/index.rst locale/bg.po locale/ca.po locale/cs.po locale/de.po locale/es.po locale/es_419.po locale/et.po locale/fa.po locale/fi.po locale/fr.po locale/hu.po locale/id.po locale/it.po locale/lo.po locale/lt.po locale/nl.po locale/pl.po locale/pt.po locale/ro.po locale/ru.po locale/sl.po locale/tr.po locale/zh_CN.po tests/__init__.py tests/scenario_project_invoice_effort.rst tests/scenario_project_invoice_multiple_party.rst tests/scenario_project_invoice_progress.rst tests/scenario_project_invoice_timesheet.rst tests/test_project_invoice.py trytond_project_invoice.egg-info/PKG-INFO trytond_project_invoice.egg-info/SOURCES.txt trytond_project_invoice.egg-info/dependency_links.txt trytond_project_invoice.egg-info/entry_points.txt trytond_project_invoice.egg-info/not-zip-safe trytond_project_invoice.egg-info/requires.txt trytond_project_invoice.egg-info/top_level.txt view/work_form.xml view/work_invoiced_progress_form.xml view/work_invoiced_progress_list.xml view/work_list.xml././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564784.0 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/dependency_links.txt0000644000175000017500000000000100000000000027241 0ustar00cedced ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564784.0 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/entry_points.txt0000644000175000017500000000012100000000000026463 0ustar00cedced [trytond.modules] project_invoice = trytond.modules.project_invoice ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620419719.0 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/not-zip-safe0000644000175000017500000000000100000000000025421 0ustar00cedced ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564784.0 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/requires.txt0000644000175000017500000000036200000000000025574 0ustar00cedcedpython-sql>=0.4 trytond_project<6.1,>=6.0 trytond_project_revenue<6.1,>=6.0 trytond_timesheet<6.1,>=6.0 trytond_account<6.1,>=6.0 trytond_account_invoice<6.1,>=6.0 trytond_account_product<6.1,>=6.0 trytond_product<6.1,>=6.0 trytond<6.1,>=6.0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1638564784.0 trytond_project_invoice-6.0.1/trytond_project_invoice.egg-info/top_level.txt0000644000175000017500000000001000000000000025714 0ustar00cedcedtrytond ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1638564785.4915168 trytond_project_invoice-6.0.1/view/0000755000175000017500000000000000000000000015506 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1620052448.0 trytond_project_invoice-6.0.1/view/work_form.xml0000644000175000017500000000247600000000000020246 0ustar00cedced