Compare commits

...

691 Commits

Author SHA1 Message Date
Pierrick Brun
08cb6f2e86 [FIX] only show analytics to users in group 2018-10-17 10:59:34 +02:00
mpanarin
d01820cd39 [FIX] not being able to change analytic account and tags 2018-08-13 15:34:39 +03:00
Yannick Vaucher
71ecc03001 Allow to change analytic fields with account_invoice_update 2018-07-02 12:42:26 +02:00
David Beal
913be476dd Merge pull request #66 from yvaucher/10.0-mig-account_invoice_update_wizard
[10.0] migration of account_invoice_update_wizard
2018-06-29 20:42:34 +02:00
Alexis de Lattre
de9871fd17 delivery_usability: display field invoice_shipping_on_delivery in SO form view 2018-06-29 11:02:05 +02:00
Yannick Vaucher
90a2e26e79 fixup! [10.0] Migration of account_invoice_update_wizard 2018-06-27 10:35:34 +02:00
Florian
21f3b14d7a Merge pull request #67 from akretion/10-add-purchase_order_line_views-change-sequence
[purchase_order_line_menu] change menu sequence
2018-06-25 10:19:35 +02:00
Alexis de Lattre
a7a8271a38 Port l10n_fr_intrastat_product_ods to v10 2018-06-22 22:51:28 +02:00
Florian da Costa
4cfd326398 Change purchase line sequence 2018-06-22 18:06:07 +02:00
Alexis de Lattre
295bb4edb5 Merge branch '10.0' of https://github.com/akretion/odoo-usability into 10.0 2018-06-21 23:00:39 +02:00
Alexis de Lattre
8c73a84c46 Add second_barcode to search of product.product
Improve delivery view
2018-06-21 22:59:56 +02:00
Alexis de Lattre
8f555c88ce Add widget="email" on email of contacts 2018-06-20 23:45:09 +02:00
Yannick Vaucher
b5af2e54b0 [10.0] Migration of account_invoice_update_wizard 2018-06-20 14:47:59 +02:00
mdietrichc2c
b298039af4 [9.0] Port of module account_invoice_update_wizard 2018-06-20 14:24:34 +02:00
Florian da Costa
8fbac5c221 Make modules uninstallable 2018-06-20 14:23:53 +02:00
Alexis de Lattre
96680c893f Add module account_invoice_update_wizard 2018-06-20 14:19:24 +02:00
Alexis de Lattre
cc3b9d73ae Remove write/create on products to stock user 2018-06-19 22:38:22 +02:00
Alexis de Lattre
8416216a77 account_usability: don't attach PDF upon invoice report generation on supplier invoices/refunds 2018-06-19 15:16:32 +02:00
Alexis de Lattre
1a9126d9a1 [MIG] port partner_aged_open_invoices to v10 and rename it to account_aged_balance_from_partner 2018-06-18 18:11:43 +02:00
Alexis de Lattre
4e8c6f47f6 Fix string for filter 2018-06-15 21:11:51 +02:00
Alexis de Lattre
1cabf721f4 Better order for stock moves 2018-06-15 20:49:56 +02:00
Alexis de Lattre
929f79cd98 Switch rights from account manager to accourt user 2018-06-15 12:32:09 +02:00
Alexis de Lattre
0fabc8c4c1 Add account.group_account_user on Adviser menu (by default, it is only accessible to account manager !) 2018-06-15 11:18:59 +02:00
Alexis de Lattre
c25747b474 Improve stock_usability 2018-06-14 23:40:33 +02:00
Alexis de Lattre
6fa8464ab7 Add unreserve buttons on moves + log in chatter 2018-06-13 17:59:37 +02:00
Alexis de Lattre
c02f539f8f Add and improve views for usability purposes 2018-06-13 01:15:19 +02:00
David Beal
27f96b8af2 Merge pull request #65 from akretion/10-mig-purchase-hide-report-print-menu
[MIG] [10.0] purchase_hide_report_print_menu
2018-06-11 11:20:31 +02:00
Chafique
8b3205cc35 [MIG] [10.0] purchase_hide_report_print_menu 2018-06-11 10:41:36 +02:00
Alexis de Lattre
7908943645 Port stock_picking_type_default_partner to v10 2018-06-07 16:56:48 +02:00
Alexis de Lattre
ffd6a409cc Add tree/form view + menu entry for account.tax.group 2018-06-05 20:11:26 +02:00
Alexis de Lattre
6446e087be Remove full rights on product.uom and product.uom.categ to sale manager (grant only to system group) 2018-05-25 17:15:58 +02:00
Alexis de Lattre
a4a9be78bc account_move_line_filter_wizard: Port to v10 2018-05-25 13:25:00 +02:00
Alexis de Lattre
567e7f1f6e Remove module purchase_date_planned_update (PO lines can now be edited after confirmation, which updates the date on the stock move) 2018-05-25 11:18:05 +02:00
Alexis de Lattre
a29384b817 Graph type="pivot" views must be migrated to pivot views ! 2018-05-11 16:04:38 +02:00
Alexis de Lattre
23bd22a009 Improve default date for reversal: D+1 instead of today 2018-05-09 18:43:47 +02:00
Alexis de Lattre
020ca72188 Add missing installable False 2018-05-07 15:25:08 +02:00
Alexis de Lattre
2d9b133cf6 Code cleanup 2018-04-20 23:29:52 +02:00
Alexis de Lattre
4e9ca8fc5c Add module delivery_usability 2018-04-20 09:15:15 +02:00
Alexis de Lattre
3fdc3b4256 Add glue module account_invoice_transmit_method_street3 with auto_install=True 2018-04-15 00:45:03 +02:00
Alexis de Lattre
4d7102d699 Don't block when no read access on pos.config 2018-04-14 19:17:05 +02:00
Alexis de Lattre
bfb0f5380a Add module product_print_zpl_barcode 2018-04-14 16:00:14 +02:00
Alexis de Lattre
e02727e6ee Add method to group by order in invoice report
Move invoice class in dedicated file
2018-04-11 15:33:34 +02:00
Alexis de Lattre
7cb35a031d Remove outdated comment 2018-04-11 12:10:01 +02:00
hparfr
4f10be1bfe Add purchase_order_line_menu 2018-04-11 09:25:04 +02:00
Florian
d547fd6916 Merge pull request #59 from akretion/10-fix-sale-usability-view
Fix sale order view
2018-03-28 13:57:06 +02:00
Florian da Costa
357ad8d707 Fix sale order view 2018-03-28 13:48:20 +02:00
Alexis de Lattre
03bbe001ae Add script to fix partners related to users in multi-company setup where partners are NOT shared between companies 2018-03-23 17:27:42 +01:00
Alexis de Lattre
b199228e1d Add string on bank_name of res.partner.bank 2018-03-22 18:24:52 +01:00
Alexis de Lattre
7f0ea7fd0c Add optional patch 2018-03-21 22:48:02 +01:00
Alexis de Lattre
0c94dde977 Add module stock_history_ods 2018-03-13 00:27:05 +01:00
Alexis de Lattre
da92731607 Also port stock inventory ODS location-independant 2018-03-12 00:34:43 +01:00
Alexis de Lattre
2950f86219 Port stock_inventory_valuation_ods to v10 and py3o 2018-03-12 00:18:36 +01:00
Alexis de Lattre
744c0f487a Partners auto-created when you create a user should have customer=False and supplier=True 2018-03-09 11:22:28 +01:00
Alexis de Lattre
d9fe676cae openerp -> odoo 2018-03-06 11:38:05 +01:00
Alexis de Lattre
65d0d61c13 Add check on bank/cash journals 2018-03-02 15:12:55 +01:00
Alexis de Lattre
d61e48635b Port hr_usability to v10 2018-03-01 21:56:40 +01:00
Alexis de Lattre
a7b2bde9e9 Script to fix account types 2018-03-01 16:53:38 +01:00
Alexis de Lattre
74966a7f15 base_usability: add tracking on company_id on res.partner 2018-02-27 09:30:35 +01:00
Alexis de Lattre
3f47f7bf9f product_usability: use monetary widget also in tree view (not only in form view) 2018-02-22 11:10:07 +01:00
Alexis de Lattre
4d833d1c97 Move client_order_ref from the second tab to the top 2018-02-21 18:13:42 +01:00
Alexis de Lattre
a577c4bbbd Cosmetic change 2018-02-19 11:37:12 +01:00
Alexis de Lattre
a2ea2534f0 sale_margin_no_onchange port to v10 2018-02-09 17:52:25 +01:00
Alexis de Lattre
1cae9ca021 [MIG] web_eradicate_duplicate to v10 2018-02-09 14:54:58 +01:00
Alexis de Lattre
953929cc4b Add groupby on partner on opportunity search view 2018-02-09 00:18:14 +01:00
Alexis de Lattre
068d57030a Stop re-developping modules that exists in OCA/sale-workflow ! 2018-02-02 18:39:55 +01:00
Alexis de Lattre
054bee90c0 Add module sale_force_invoice_status 2018-02-02 18:27:22 +01:00
Alexis de Lattre
782f1fdb92 Remove account_hide_analytic_line (replaced by the module account_analytic_no_lines from OCA/account-analytic) 2018-02-02 17:13:47 +01:00
Alexis de Lattre
72f7235c18 Avoid the use of > and < in the text of mail templates, because it is converted to &gt;/&lt; in translations, even when inside code 2018-02-02 11:51:50 +01:00
Alexis de Lattre
0a5c14b7f9 Improve menus under Accounting > Configuration about bank accounts 2018-01-24 22:18:20 +01:00
Alexis de Lattre
a4c382a546 Better handling of the origin field (which can be very long) on PO views 2018-01-24 21:29:25 +01:00
Alexis de Lattre
5c9b6dd702 FIX to make it work with lunch voucher on months when nobody took holidays 2018-01-23 17:05:40 +01:00
David Beal
da6ba9b75e FIX branding 2018-01-23 09:43:12 +01:00
Alexis de Lattre
1ed7034ee4 Port product_no_translation to v10 2018-01-18 18:18:26 +01:00
Alexis de Lattre
9a8d9616b7 Port module stock_my_operations_filter to v10 2018-01-18 18:08:54 +01:00
Alexis de Lattre
b9014e937d Add message in the chatter of the picking when using force availability
PEP8 fixes
2018-01-18 14:10:08 +01:00
David Beal
fc2dcbc359 Merge pull request #48 from akretion/10-update-branding
UPD branding 10.0
2018-01-10 08:47:14 +01:00
Alexis de Lattre
b95837fa86 account_usability: account.reconcile.model don't copy name to label via onchange 2018-01-10 00:05:55 +01:00
Alexis de Lattre
22a0d2b41b Remove module purchase_auto_invoice_method which is useless in v10 2017-12-19 18:47:23 +01:00
Alexis de Lattre
f9e554a312 Add currency_id on supplierinfo tree view 2017-12-19 12:38:52 +01:00
Alexis de Lattre
559c301f2c FIX hr_holidays_lunch_voucher and hr_holidays_lunch_voucher_natixis 2017-12-19 12:23:15 +01:00
Alexis de Lattre
295bf50cea Remove 'show_email': True now that this bug has been fixed in v10 https://github.com/odoo/odoo/pull/21600 2017-12-14 22:02:56 +01:00
Alexis de Lattre
8ed8c2bc70 Port account_fiscal_position_payable_receivable to v10 2017-12-13 22:13:41 +01:00
Alexis de Lattre
b8a015a01e Remove module account_invoice_partner_bank_usability useless in v10 2017-12-13 22:05:30 +01:00
Alexis de Lattre
3024889c41 Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0 2017-12-13 17:59:56 +01:00
Alexis de Lattre
8a538c4e74 copy=False on ref field of res.partner 2017-12-13 17:59:37 +01:00
Alexis de Lattre
03ebc09eb0 Add pricelist_id in product.pricelist.item form view 2017-12-08 17:41:47 +01:00
Alexis de Lattre
81a4328531 Add categories in pos_sale report 2017-12-07 20:37:44 +01:00
Alexis de Lattre
1faecd98f7 Add show_email in context for PO 2017-12-07 19:38:08 +01:00
Alexis de Lattre
0f4193e7c4 Different colors on inventory lines when real qty < or > theorical qty 2017-12-07 19:26:07 +01:00
Alexis de Lattre
ecd05222a9 Add 'Print Order' on PO (there was already a 'Print RFQ button'...) 2017-12-07 18:25:55 +01:00
Alexis de Lattre
690a9196dd sale_usability purchase_usability: reload form view upon sale order and purchase order confirmation to display the 3 qty columns
PEP8 fixes
2017-12-07 14:52:10 +01:00
Alexis de Lattre
ab03ebe2cb pos_usability: Cannot do child_of, because there is no parent_left, parent_right on pos.category 2017-12-07 14:00:34 +01:00
Alexis de Lattre
074f4e517a pos_usability: add group by on pos category on products search view
Add link to products from pos.category form view (same as on product.category form view)
2017-12-07 13:50:46 +01:00
Alexis de Lattre
26b27c398d Add ACL to be able to open product form view with employee-only group 2017-12-07 09:27:57 +01:00
Alexis de Lattre
e7afaa2c78 account_usability: harmised groups on product.product and product.category views 2017-12-06 15:01:46 +01:00
Alexis de Lattre
72116a7374 Port sale_crm_usability from v8 to v10 2017-12-04 16:11:11 +01:00
Alexis de Lattre
5d1df0b654 Port sale_crm_usability to v10 2017-12-04 16:10:23 +01:00
Alexis de Lattre
522d3d5aa0 Port resource_usability from v8 to v10 2017-12-04 15:13:05 +01:00
Alexis de Lattre
bfd0c6f8cd Add module resource_usability 2017-12-04 15:08:53 +01:00
Alexis de Lattre
a05263be77 hr_holidays_lunch_voucher: Test before commit, not after, stupid ! 2017-12-04 15:06:33 +01:00
Alexis de Lattre
f9951890b5 Port hr_holidays_lunch_voucher and hr_holidays_lunch_voucher_natixis to v10 2017-12-04 15:01:04 +01:00
Alexis de Lattre
06a1d182e5 2 fixes in hr_holidays modules 2017-12-04 13:59:23 +01:00
Alexis de Lattre
c4256b3005 Add multi-company support hr_holidays_usability
Add modules hr_holidays_lunch_voucher and hr_holidays_lunch_voucher_natixis
2017-12-04 13:59:23 +01:00
Alexis de Lattre
c5776557cc Add multi-company support hr_holidays_usability
Add modules hr_holidays_lunch_voucher and hr_holidays_lunch_voucher_natixis
2017-12-04 13:58:53 +01:00
Alexis de Lattre
361eb380e4 Make sent field visible in customer invoice form view 2017-11-30 23:17:55 +01:00
Alexis de Lattre
1034cc2347 Upport the "mark invoice as sent" wizard from v8 to v10
PEP8 on account_usability
2017-11-30 23:13:14 +01:00
Alexis de Lattre
f74dc15d4b Add button 'delete lines qty = 0' on supplier invoices
Add filter missing attachment on invoices
Add filter on to_send, sent on invoices
2017-11-30 22:55:45 +01:00
Alexis de Lattre
c52412295f Restore drill-through on account.invoice.report 2017-11-30 16:04:09 +01:00
Alexis de Lattre
0d8e3a9066 sale_purchase_no_product_template_menu: Also use product.product on the Product menu entries of the Accounting menu 2017-11-30 15:54:39 +01:00
Alexis de Lattre
238344b964 Add sum=1 on several qty fields 2017-11-30 12:06:02 +01:00
Alexis de Lattre
6ff67694ab Add tax_id in account.invoice.tax form view 2017-11-24 11:24:35 +01:00
Alexis de Lattre
662c37670c Add post_install.py script for data migration 2017-11-23 17:11:38 +01:00
Alexis de Lattre
2b0c64b69e Revert my previous commit, sorry 2017-11-23 12:17:43 +01:00
Alexis de Lattre
b40e4eca05 Update patch for pos_second_ean13 2017-11-23 12:09:01 +01:00
Alexis de Lattre
cc5291ba52 Rename method 2017-11-23 10:29:57 +01:00
Alexis de Lattre
2f63e4e7a6 Add copy=False on default_code, to make duplicate work again 2017-11-23 09:15:14 +01:00
David Beal
9ec29082b8 UPD Branding 2017-11-22 11:18:22 +01:00
Alexis de Lattre
a11f9574ee Add track_visibility='onchange' on available_in_pos 2017-11-22 09:52:51 +01:00
Alexis de Lattre
ac05ca27a4 Add tracking on amount_total on invoices 2017-11-10 12:48:24 +01:00
Alexis de Lattre
746d23fb3a Improve purchase order line views 2017-11-08 19:13:16 +01:00
Alexis de Lattre
aba8e33d48 Add tracking on fiscal position on partner 2017-10-27 18:37:32 +02:00
Alexis de Lattre
d384b626e5 stock_usability: Add partner_id in stock form view embedde in picking 2017-10-17 19:01:22 +02:00
Alexis de Lattre
fcecfcc4e1 Port account_invoice_margin to v10 2017-10-17 00:11:51 +02:00
Benjamin Willig (ACSONE)
e6076c3f76 [10.0] Improvements (#44)
* [ADD] Display an icon when a note has been encoded in an expense

* [CHG] Expense report document smart button counts his own attachments + his lines attachments
2017-10-13 20:03:27 +02:00
Adrien Peiffer (ACSONE)
987e753a54 [CHG] hr_expense_usability: improve inheritance (#40) 2017-10-13 17:03:32 +02:00
Alexis de Lattre
080e3decbc purchase_usability: also search on origin 2017-10-12 11:32:08 +02:00
Alexis de Lattre
7d7424ad8a Display 3 qty columns when clicking on the purchase_id field from picking 2017-10-11 10:57:33 +02:00
Alexis de Lattre
a32d091d83 Port module pos_second_ean13 (still needs some improvements, but it works) 2017-09-14 19:54:08 +02:00
Alexis de Lattre
bb849c0228 Remove module sale_no_filter_myorder, which is not useful in v10 2017-09-14 18:59:56 +02:00
Alexis de Lattre
338d0d445d translate=False on 'name' field of crm.lead.tag and res.partner.category 2017-09-07 18:41:39 +02:00
Alexis de Lattre
f0adce0034 Improve README 2017-09-06 08:42:21 +02:00
Alexis de Lattre
2ebdc8e329 Add ACL + name_get() for one2many_phone module 2017-08-31 10:30:01 +02:00
Alexis de Lattre
748614ba34 base_partner_one2many_phone: make it work with the asterisk connector 2017-08-31 09:55:31 +02:00
David Beal
d0cdc96fbf IMP make module filter to installable 2017-08-16 13:45:12 +02:00
Alexis de Lattre
61d576451e Add modules stock_user_default_warehouse_base, stock_user_default_warehouse_purchase and stock_user_default_warehouse_sale 2017-07-19 15:16:28 +02:00
Alexis de Lattre
d56acb4a86 product_category_tax: improve product.categ form view 2017-07-18 21:17:37 +02:00
Alexis de Lattre
f3ad97de73 Show "description" field in product form view 2017-07-18 11:36:16 +02:00
Alexis de Lattre
03cec78dc7 Add patch for account module 2017-07-11 16:30:21 +02:00
Alexis de Lattre
d4a936deaa Add patch for POS module 2017-07-11 16:25:34 +02:00
Alexis de Lattre
9cfdaa88a3 Add filter on account.account dedicated to code 2017-07-11 12:34:39 +02:00
Alexis de Lattre
e0732689b8 refund by default on return picking 2017-07-10 19:11:15 +02:00
Stéphane Bidoul (ACSONE)
55d977914e [10.0] hr_expense_usability improvements (#37)
* [FIX] hr_expense_usability: set default move number

Otherwise it's not possible to post the account move.

* [FIX] hr_expense_usability: prevent deleting draft move

This prevents deleting a draft account move that is linked
to an expense. Without this the expense could stay in posted
while the related move has been deleted, which is inconsitent
and impossible to recover for the user.

* [IMP] hr_expense_usability: preserve product/quantity on move line

When possible, preserve product and quantity on move line. This is
important when generating analytic lines to reinvoice expenses

* add contributor

* [FIX] hr_expense_usability: readonly account move on expense sheet

* [IMP] hr_expense_usablility: preserve employee name in move line name

This is important when reinvoicing expenses, so the correct label
is visible on the sale order.
2017-07-01 14:39:08 +02:00
Alexis de Lattre
0da06febfc Small usability improvements in bank statements 2017-06-26 10:12:24 +02:00
Stéphane Bidoul (ACSONE)
a9d8137d1f [10.0] extract hr_expense_private_car (#36)
* remove private car stuff from hr_expense_usability

* hr_private_car_expenses
2017-06-23 16:55:01 +02:00
Alexis de Lattre
19d2614feb Switch some track_visibility='always' to track_visibility='onchange' 2017-06-22 19:32:39 +02:00
Alexis de Lattre
dd05dfab28 Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0 2017-06-22 19:30:10 +02:00
Alexis de Lattre
a6e9568454 mail_usability: add intermediary level to notify_email parameter of res.partner 2017-06-22 19:28:49 +02:00
Stéphane Bidoul (ACSONE)
5a39df7423 [10.0] setup.py and addons versions (#35)
* [IMP] set 10.0 version prefix in all installable addons

* [FIX] 10.0 instead of 9.0 version prefix for sale_order_add_bom on 10.0 branch

* [ADD] setup.py for all installable addons
2017-06-13 22:41:20 +02:00
Alexis de Lattre
2f9584e04e Protect Cancel button with a confirmation pop-up 2017-06-13 12:36:02 +02:00
Alexis de Lattre
a3245985e5 Add module hr_expense_usability_dp 2017-06-08 11:58:06 +02:00
Alexis de Lattre
19909b6761 New implementation of KM cost to property support the decimal precision at 3 digits (without changing the decimal precision of all prices in Odoo) 2017-06-08 11:25:21 +02:00
Alexis de Lattre
aca7911d81 Fine tuning hr_expense_usability 2017-06-08 00:53:39 +02:00
Alexis de Lattre
1d765aa4f7 Update README 2017-06-07 19:40:44 +02:00
Alexis de Lattre
16094358c7 hr_expense_usability: re-write account move generation and fix multi-currency 2017-06-07 19:38:30 +02:00
Alexis de Lattre
2469c1f79d Add support for private car expenses 2017-06-07 14:30:25 +02:00
Alexis de Lattre
94926d188a Adapt hr_holidays post wiz to new field 2017-06-06 17:57:05 +02:00
Alexis de Lattre
e5221d6a96 hr_holidays_usability: add support for emails
Many small fixes and improvements
2017-06-06 16:27:44 +02:00
Alexis de Lattre
d55b01ca7b Avoid warning on odoo start 2017-05-30 23:54:56 +02:00
Alexis de Lattre
5fda678474 FIX compatibility with sale_rental (and other modules that auto-create products) 2017-05-24 14:36:16 +02:00
Alexis de Lattre
390363d7e1 [FIX] disable auto-delete of already imported lines of HSBC CB because experience shows we can have 2 payments same day, same hour, same merchant and same amount (in particular for internet payments that often have hour=00:00) 2017-05-24 12:00:40 +02:00
Alexis de Lattre
15a12feafd Add module account_bank_statement_import_fr_hsbc_card 2017-05-23 19:33:46 +02:00
Alexis de Lattre
479e1a2710 Handle multi-uom
Button to manually update standard from Bom now restricted to MRP manager
Improve module description
2017-05-23 10:27:00 +02:00
Alexis de Lattre
735495656c Avoid double write on standard_price: only need to write price_unit on finished stock move 2017-05-22 23:54:50 +02:00
Alexis de Lattre
b8255a5287 mrp_average_cost: Fix decimal precision
product_usability: add link to show history of standard price
2017-05-22 20:57:33 +02:00
Alexis de Lattre
08445ad370 Add module mrp_average_cost 2017-05-22 19:33:37 +02:00
Alexis de Lattre
9267fca881 Multi-company fixes in hr_holidays_usability 2017-05-22 19:33:14 +02:00
Alexis de Lattre
b8b307154a Add default value on company_id field of pricelist 2017-05-21 23:05:19 +02:00
Alexis de Lattre
8b06320204 base_partner_ref: improve tree view 2017-05-11 22:40:07 +02:00
Alexis de Lattre
181ffab457 Add module sale_confirm_wizard 2017-05-11 22:23:54 +02:00
Alexis de Lattre
4d2f7a47ff base_partner_ref: Copy=False on 'ref' field 2017-05-09 12:22:42 +02:00
Alexis de Lattre
216369f66c Add module account_bank_statement_no_reconcile_guess 2017-04-05 19:23:18 +02:00
Alexis de Lattre
348e0205a0 Add traking on warn fields
WORK IN PROGRESS: port hr_holidays_usability
2017-04-05 19:22:01 +02:00
Alexis de Lattre
ffda316d34 Add module base_mail_sender_bcc 2017-03-29 17:48:45 +02:00
Alexis de Lattre
37281620af Better log message for outgoing emails 2017-03-29 17:45:16 +02:00
Alexis de Lattre
933bf336aa Remove module account_payment_security (included in account_payment_order) 2017-03-28 14:36:36 +02:00
Alexis de Lattre
09b94dd01d account_usability: Fix _order on account.move.line 2017-03-27 14:15:43 +02:00
Alexis de Lattre
0af5c20727 Add module base_partner_ref for better use of 'ref' field on partners 2017-03-24 18:01:20 +01:00
Alexis de Lattre
e3b305f117 Display more fields on stock.quant form view
Better search view on partners
2017-03-24 18:00:53 +01:00
David Beal
1a191c9444 Merge pull request #30 from EBII/10-calendar-def-val
[MIG 10] calendar def val
2017-03-15 12:14:32 +01:00
MonsieurB
e30285caf7 remove add cascade from 8 2017-03-15 11:18:00 +01:00
Alexis de Lattre
fe7fec797f Add groupby on Type for account journals 2017-03-07 19:49:09 +01:00
Alexis de Lattre
5304bde100 Improve product.supplierinfo view 2017-03-06 16:03:56 +01:00
Alexis de Lattre
db7ea5681f Add missing file! 2017-03-04 23:15:24 +01:00
Alexis de Lattre
0b12805495 Add link from picking to PO 2017-03-03 09:29:41 +01:00
Alexis de Lattre
f91b5267fe Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0 2017-03-02 09:18:58 +01:00
Alexis de Lattre
3396814a09 Remove module account_invoice_del_attachment_cancel (native feature on v10 2017-03-02 09:18:32 +01:00
Alexis de Lattre
83c4e095f6 Minor changes 2017-03-02 09:18:12 +01:00
Alexis de Lattre
84bf228d92 Add direct access to account.move form from account.move.line tree view
Show code on name_get of journal add direct search on code
2017-03-02 09:17:21 +01:00
MonsieurB
7f8c461122 add display name like in 8.0 2017-02-28 17:10:19 +01:00
MonsieurB
80b3d08ba5 add a vals before other to renew values : (5,0,0) 2017-02-28 17:03:45 +01:00
Alexis de Lattre
7750ed1834 Fix string 2017-02-13 16:56:15 +01:00
Alexis de Lattre
3b6973c4a2 Add actions for invoice lines
Add info in invoice chatter
2017-02-13 15:41:29 +01:00
Alexis de Lattre
b518594136 Prospect modules (different approch than the OCA module partner_prospect in sale-workflow) 2017-02-02 00:24:20 +01:00
Alexis de Lattre
e353cdcad1 Legal name in report header 2017-02-01 12:08:38 +01:00
Alexis de Lattre
ea20effa7e Fine tuning of the sale_layout_category_product module 2017-02-01 10:41:35 +01:00
Alexis de Lattre
c9bfc8bef2 Add module sale_layout_category_product 2017-02-01 10:28:48 +01:00
MonsieurB
6361e2e453 modifications V10 std 2017-01-31 14:51:32 +01:00
Alexis de Lattre
217afc8af0 Port product_manager_group_stock to v10 2017-01-26 10:44:44 +01:00
Alexis de Lattre
2d74753bea Add direct search on procurement.rule name 2017-01-13 15:55:35 +01:00
Alexis de Lattre
d507311091 Fix bad domain 2017-01-13 15:51:51 +01:00
Alexis de Lattre
84c1caaf16 Work on usability of CRM 2017-01-12 23:47:20 +01:00
Alexis de Lattre
895a92393c Small usability improvements 2017-01-12 23:42:52 +01:00
Alexis de Lattre
fcba3e4129 Add 3 modules: account_no_analytic_tags, purchase_no_analytic_tags and sale_no_analytic_tags 2017-01-12 23:41:39 +01:00
Alexis de Lattre
a22148329f Port to v10 the code that re-gen the name of move lines
Empty ref on move generated from bank statement, because it has unuseful info (and redundant)
2017-01-12 17:59:20 +01:00
Alexis de Lattre
b2a96f4db2 Add module sale_usability_b2b 2017-01-12 16:21:26 +01:00
Alexis de Lattre
a325a3a828 Add link to invoice from account move line form view (like in v8) 2017-01-11 15:43:28 +01:00
Alexis de Lattre
1c1855ec11 Add menu entry on product.pricelist.item 2017-01-10 17:51:15 +01:00
Alexis de Lattre
5bcfe45251 Add date_done in picking tree view 2017-01-10 10:33:14 +01:00
Alexis de Lattre
ddbdecd64e Update company/name in report 2017-01-09 22:56:35 +01:00
Alexis de Lattre
9e44400acd Set field partner_address_id on proc rule 2017-01-06 12:09:02 +01:00
Alexis de Lattre
67e3c9a199 Add stock location menu entry in regular menu (not only in configuration), because it is very useful for the users, to be able to answer the question "What do we have on stock location X ?" 2017-01-06 11:56:16 +01:00
Alexis de Lattre
da5d35b8cb Add 'website' on partner display 2017-01-04 18:52:29 +01:00
David Beal
9fdbebc591 Update __init__.py 2017-01-03 17:45:35 +01:00
Alexis de Lattre
7f3d465a24 Add tracking on important product fields 2017-01-03 16:31:38 +01:00
Alexis de Lattre
ad7a8d5e40 Add city and country in partner tree view 2017-01-03 15:34:44 +01:00
Alexis de Lattre
9617aedcb3 Move code at the right place ! 2017-01-01 23:16:10 +01:00
Alexis de Lattre
d8f0d061b7 The module l10n_fr_fix_thousands_sep is not needed in v10 2017-01-01 08:40:00 +01:00
Alexis de Lattre
5d7f512335 Add track_visibility='onchange' on important fields of picking
Code cleanup
2017-01-01 08:36:51 +01:00
Alexis de Lattre
a7dc7a51ce Add track_visibility on important product fields 2016-12-31 23:11:29 +01:00
Alexis de Lattre
da7ac67933 New prototype for method _display_full_address() (Py3o reports will need to be updated) 2016-12-31 17:42:44 +01:00
Alexis de Lattre
4d9659dee3 Add comment about py3o and icons 2016-12-23 00:23:17 +01:00
Alexis de Lattre
1f5887eb87 Add partner_id on private stock 2016-12-22 14:31:07 +01:00
Alexis de Lattre
84ee109bdf Add start_date and end_date on bank statements 2016-12-21 21:28:40 +01:00
Alexis de Lattre
80c90c7d35 Add methods for reports 2016-12-20 01:05:09 +01:00
Alexis de Lattre
bf4d613ed2 Monkey-patching of formatLang to have clean display of float that are integers 2016-12-19 02:06:11 +01:00
Alexis de Lattre
889fb28fd6 Add has_discount on SO + method for py3o report 2016-12-17 01:03:09 +01:00
Alexis de Lattre
265210b4f1 Add field delivery_partner_id for report 2016-12-16 15:29:59 +01:00
Alexis de Lattre
ec6975ce6a Add method for reports 2016-12-16 00:55:53 +01:00
Alexis de Lattre
b0f6832541 Add computed field has_discount on invoice 2016-12-15 19:45:39 +01:00
Alexis de Lattre
49f928199e Handle lang in name_title field 2016-12-15 17:39:48 +01:00
Alexis de Lattre
94fd30c4b3 Move account_fiscal_position_translate in account_usability
Update code conventions in base_company_extension
2016-12-15 11:13:26 +01:00
Alexis de Lattre
e51d19941b Add module sale_layout_category_per_order 2016-12-14 14:27:52 +01:00
Alexis de Lattre
3284953528 Add string in partner search view 2016-12-14 14:21:31 +01:00
Alexis de Lattre
52350ba5a7 Add 2 group by (type and category) on product template search view 2016-12-14 11:19:38 +01:00
Alexis de Lattre
95fb0d6f43 Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0 2016-12-14 10:48:58 +01:00
Alexis de Lattre
e7191d3ee1 Remove invisible currency_id field, because my PR on Odoo has been merged https://github.com/odoo/odoo/pull/14714 2016-12-14 10:48:22 +01:00
Alexis de Lattre
8fc54fd37a Add unicity constraint on analytic codes per company 2016-12-13 12:01:44 +01:00
Alexis de Lattre
85f505bd2d Add module mrp_no_product_template_menu 2016-12-12 13:36:52 +01:00
Alexis de Lattre
777fc14908 Change menu position 2016-12-09 15:30:38 +01:00
Alexis de Lattre
115c0b36de Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0 2016-12-09 08:35:35 +01:00
Alexis de Lattre
256c603796 Add module pos_config_single_user
Several usability enhancements in sale, purchase, product and account
2016-12-09 08:35:00 +01:00
Alexis de Lattre
985a894866 Port to v10 2016-12-08 15:10:33 +01:00
Alexis de Lattre
23cadc403c Add module partner_tree_default 2016-12-08 14:46:22 +01:00
Alexis de Lattre
23139916b2 FIX depend 2016-12-07 16:02:38 +01:00
Alexis de Lattre
42b3505966 Port product_category_tax to v10 2016-12-07 10:08:37 +01:00
Alexis de Lattre
a9139b9430 Port partner_products_shortcut to v10 (it is in fact a port of partner_product_variants_shortcut renamed to partner_products_shortcut, because I won't maintain 2 versions) 2016-12-06 10:47:28 +01:00
Alexis de Lattre
3eab0c9d7a Port base_other_report_engines to v10 2016-12-06 09:28:47 +01:00
Alexis de Lattre
07f646dca3 Remove module base_partner_always_multi_contacts, which is not needed in v10 2016-12-06 09:18:37 +01:00
Alexis de Lattre
4350679c22 Clean-up code for one2many_phone 2016-12-05 17:08:29 +01:00
Alexis de Lattre
5fb19a4a5e Remove product_no_translation, because it is possible to install only 1 language without installing English since Odoo 10 2016-12-05 15:55:33 +01:00
Alexis de Lattre
346de9be4b Port mail_usability to v10 2016-12-02 19:44:56 +01:00
Alexis de Lattre
e4dc38b963 Add stock/destination stock loc on move tree view inside pickings 2016-12-02 15:14:55 +01:00
Alexis de Lattre
67e6860ec1 Remove procurement_suggest* modules 2016-12-01 16:36:25 +01:00
Alexis de Lattre
bdeb1a4101 Show field even when not in dev mode 2016-12-01 12:33:05 +01:00
Alexis de Lattre
e1f8e95bce Include sale_stock_show_delivery_address in sale_usability and stock_usability 2016-11-24 14:18:43 +01:00
Alexis de Lattre
f16095e343 Add regular quant menu entry 2016-11-22 16:31:57 +01:00
Alexis de Lattre
c92ce72fd9 Fix sale_from_private_stock 2016-11-22 15:01:37 +01:00
Alexis de Lattre
f90aa12a9f Port to v10 2016-11-22 14:39:53 +01:00
Alexis de Lattre
35163d8613 Add sale_id on picking form 2016-11-22 10:50:48 +01:00
Alexis de Lattre
4e4d02aa14 Remove module that is not useful in v10 2016-11-22 09:31:40 +01:00
Alexis de Lattre
9e3d62b4ba Clean up 2016-11-21 18:24:58 +01:00
Alexis de Lattre
0bc2d19747 Add direct access to re-ordering rules from stock location 2016-11-21 18:17:24 +01:00
Alexis de Lattre
ed1937d501 Port stock_usability to v10 2016-11-21 17:51:10 +01:00
Alexis de Lattre
acfd2f18a7 Port procurement_usability to v10 2016-11-21 13:19:30 +01:00
David Beal
83140872ef IMP add icons 2016-11-18 10:39:40 +01:00
Alexis de Lattre
6abb743736 Add unicity of default_code, because I think it's important to have that by default. 2016-11-17 18:51:34 +01:00
Alexis de Lattre
5549139e5c Add groupby in search view 2016-11-17 17:47:57 +01:00
Alexis de Lattre
e878021e63 Improve invoice line views
Add related fields on invoice line
2016-11-16 20:04:25 +01:00
Alexis de Lattre
6d7dc61dee Port account_usability to v10 2016-11-16 15:46:45 +01:00
Alexis de Lattre
cebc0e3b84 Allow to customize stock location 2016-11-15 14:21:15 +01:00
Alexis de Lattre
ef85216271 Port sale_order_add_bom to v10 2016-11-15 11:36:34 +01:00
Alexis de Lattre
7c5ac7144c Migrate eradicate_quick_create to v10 2016-11-10 14:16:34 +01:00
Alexis de Lattre
a35f1a3a32 Remove SO from quotations menu
Port sale_quotation_title to v10
2016-11-02 19:57:53 +01:00
Alexis de Lattre
022d7a719d Add module partner_firstname_first 2016-10-31 15:42:58 +01:00
Alexis de Lattre
e505ce2ad4 Partial port of product_usability 2016-10-31 15:40:28 +01:00
Alexis de Lattre
8bcbb83a91 FIX key in manifest (would auto-install base_partner_one2many_phone !!!) 2016-10-28 13:18:07 +02:00
Alexis de Lattre
07781aa724 Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0 2016-10-27 09:40:07 +02:00
Alexis de Lattre
42233bc0ce Port base_usability, sale_usability, sale_stock_usability to v10 2016-10-27 09:33:15 +02:00
Alexis de Lattre
10eacdf226 Merge branch '10.0' of https://github.com/akretion/odoo-usability into 10.0 2016-10-25 12:42:38 +02:00
Alexis de Lattre
1a46f39705 Port mrp_usability and pos_usability to v10 2016-10-25 12:42:05 +02:00
Alexis de Lattre
9e37c6e1ae Add module base_partner_one2many_phone 2016-10-24 19:18:13 +02:00
Alexis de Lattre
96a7e6e443 Rapid (partial ?) port of product_manager_group and sale_purchase_no_product_template_menu to v10
pos_no_product_template_menu is useless in v10 -> remove it
2016-10-24 15:33:18 +02:00
Alexis de Lattre
c2f4e2066a Add module partner_market 2016-10-18 00:06:28 +02:00
Alexis de Lattre
b861521571 Port account_bank_statement_import_usability to v10 2016-10-12 22:52:20 +02:00
Alexis de Lattre
245c605ef5 Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0 2016-10-12 22:18:32 +02:00
Alexis de Lattre
aa278b3a0c Add modules sale_from_private_stock and sale_order_add_bom
Port base_company_extension to v10
Avoid blockage on l10n_fr_infogreffe_connector
2016-10-11 17:46:53 +02:00
Alexis de Lattre
a1ef881201 Mass rename from __openerp__.py to __manifest__.py 2016-10-11 15:40:03 +02:00
Alexis de Lattre
56095375d1 Set all modules as uninstallable 2016-10-11 15:32:30 +02:00
Alexis de Lattre
746a6926ea Remove modules that will be merged in ***_usability modules or that are not useful in v10
Rename some modules
2016-10-11 15:27:34 +02:00
David Beal
13e6facec5 Merge pull request #21 from akretion/8-sale_id_field
[IMP] move sale_id in picking
2016-10-09 21:04:13 +02:00
David Beal
6c53b3c1ae [IMP] move sale_id in picking 2016-09-27 09:46:48 +02:00
David Beal
a379b59597 Update fr.po 2016-09-21 17:37:19 +02:00
Alexis de Lattre
2f179995bf Add module account_cutoff_accrual_picking_ods 2016-09-21 17:23:36 +02:00
Alexis de Lattre
7c5f04a39e Also avoid to have '/' on move line label of supplier invoices 2016-09-21 17:23:05 +02:00
David Beal
b814ec11bf [ADD] stock_picking_zip module 2016-09-21 12:48:25 +02:00
Alexis de Lattre
7d39e50ba3 Remove code for a feature that is available in the OCA module account_invoice_constraint_chronology 2016-09-19 17:58:21 +02:00
Alexis de Lattre
77995aa125 Track changes on hr.employee object 2016-09-15 00:20:56 +02:00
Alexis de Lattre
314350efee Migration script should be perfect now 2016-09-14 19:21:33 +02:00
Alexis de Lattre
40ef119999 Handle the case where name of account_move_line has the name field of the invoice 2016-09-14 18:25:01 +02:00
Alexis de Lattre
6583ea0cd9 Raise an error when the coherence of the sequence of customer invoices vs invoice date is not respected 2016-09-14 17:37:08 +02:00
Alexis de Lattre
7def6a85e4 Better name field in account.move.line for move generated from customer invoice (WARNING : migration script included) 2016-09-14 16:52:46 +02:00
Alexis de Lattre
618ad6d6d6 Add partial reconcile field in account move line tree view 2016-09-12 12:54:07 +02:00
Alexis de Lattre
05c0f74420 Auto-reset period when changing date on invoice 2016-09-12 12:58:02 +02:00
Alexis de Lattre
78ff16436d Better name_get for incoterm: [EXW] Ex-Works 2016-09-12 12:51:42 +02:00
Mourad Elhadj Mimoune
b4dc9da272 [MIG] migration of product_search_supplier_code from 7.0 2016-09-07 16:17:22 +02:00
Mourad Elhadj Mimoune
3aa16cdacf Merge branch '7.0-extract' into 8.0 2016-09-07 15:44:26 +02:00
Alexis de Lattre
d823e3ae75 Fix readonly state on hr.holidays fields 2016-09-05 11:53:42 +02:00
Alexis de Lattre
a1f57e1ab5 Block refusal of his own holidays 2016-09-05 11:08:54 +02:00
Alexis de Lattre
c2d2e93f07 Replace narrow_no_break_space by no_break_space for Mac OS X 2016-07-19 01:16:12 +02:00
David Beal
56bdeb3ee9 [TRANS] sale_stock_usability 2016-07-13 14:38:36 +02:00
David Beal
b811ae890a [TRANS] sale_usability_extension 2016-07-13 14:12:17 +02:00
Alexis de Lattre
07a444367b Use float_is_zero, code cleanup 2016-07-06 10:31:04 +02:00
Alexis de Lattre
8a7a3c670f Add unit of measure on stock quant tree/form view 2016-06-28 10:06:50 +02:00
Benoît Guillot
7f2589c9bf Merge pull request #19 from akretion/mail_usability
[ADD] mail_usability module for improvements on mails
2016-06-23 15:58:09 +02:00
Benoit
93e63b74b6 [ADD] mail_usability module for improvements on mails 2016-06-23 15:50:43 +02:00
Alexis de Lattre
c2accec411 Merge branch '8.0' of github.com:akretion/odoo-usability into 8.0 2016-06-19 23:41:25 +02:00
Alexis de Lattre
62b01c781f Add support for max_qty in purchase_suggest 2016-06-19 23:40:52 +02:00
David Beal
33b99de09e Merge pull request #17 from akretion/8-module
[IMP] usability module
2016-06-19 10:46:12 +02:00
David Beal
e134153a40 Update __openerp__.py 2016-06-19 10:45:12 +02:00
Alexis de Lattre
6812d2e68b Make the computation of product domain inheritable 2016-06-18 17:29:49 +02:00
Alexis de Lattre
25d8a50d3a Fix duplicate 2016-06-18 15:23:22 +02:00
Alexis de Lattre
54b74f01c0 Display view account move button only when move exists 2016-06-01 22:51:08 +02:00
Alexis de Lattre
5ac6b777b2 Better handling of translation to avoid to have a menu entry "Variantes d'articles" 2016-05-30 17:29:35 +02:00
David Beal
fd05834ffe Update README.rst 2016-05-30 17:22:18 +02:00
Alexis de Lattre
34a763d894 Add inventory valuation without per stock location analysis 2016-05-30 15:55:57 +02:00
beau sebastien
30089555c5 Merge pull request #16 from akretion/8.0-purchase-hide-report-print-menu
add purchase_hide_report_print_menu
2016-05-30 15:17:47 +02:00
Alexis de Lattre
7f62369a06 Fix formula
Add column dedicated to product code
2016-05-30 12:35:51 +02:00
David Beal
005063e8c6 [IMP] hide description field on product 2016-05-24 11:36:13 +02:00
chafique-delli
08ad828da7 refactor code 2016-05-24 11:36:12 +02:00
David Beal
31c6246e2c [IMP] usability module 2016-05-24 11:14:12 +02:00
Alexis de Lattre
b7dd2a6a07 Forgot a file 2016-05-20 12:52:13 +02:00
Alexis de Lattre
ef97656b42 Add module account_hide_analytic_line 2016-05-20 12:51:12 +02:00
chafique-delli
16627ba6f0 new api for fields_view_get method in purchase_hide_report_print_menu module 2016-05-19 11:13:52 +02:00
Alexis de Lattre
7cf98a1001 Add constrains and onchange 2016-05-18 14:52:53 +02:00
Alexis de Lattre
6e8e9fa1aa Avoid privacy issues 2016-05-11 18:42:52 +02:00
Alexis de Lattre
02940c08cd FIX precision of field 2016-05-05 00:26:58 +02:00
Alexis de Lattre
2dd4a7d577 Small improvements :
- when lead is marked as lost, related quotes are cancelled
- when you create a lead from a quote, its stage will be "proposition"
2016-05-03 18:30:51 +02:00
Alexis de Lattre
e1c660d90c Allow to force a date in the computation of the prefix of a sequence 2016-05-03 18:30:25 +02:00
chafique-delli
aa3568e986 add purchase_hide_report_print_menu 2016-05-03 15:27:13 +02:00
Alexis de Lattre
9c67a6df5d Add sudo to allow a user to do a back2draft even if he that doesn't have rights to delete an invoice 2016-04-26 23:30:34 +02:00
Alexis de Lattre
5be71f05b3 Remove cost from quant form, because I figured out that this field was not interesting 2016-04-16 13:30:01 +02:00
Alexis de Lattre
0498f6e24e Add module intrastat_product_type 2016-04-15 22:01:45 +02:00
Alexis de Lattre
80763de94b Add cost field in stock quant view 2016-04-15 15:07:29 +02:00
Alexis de Lattre
18753eadf9 Remove start/end balance in bank statement 2016-04-15 15:06:57 +02:00
Alexis de Lattre
932de847b6 FIX obvious error in my previous commit 2016-04-14 13:42:44 +02:00
Alexis de Lattre
b7ab16477a Add button to show account move from bank statement line 2016-04-14 11:52:53 +02:00
Alexis de Lattre
72bd441617 Display fields in stock move form view 2016-04-04 00:45:42 +02:00
Alexis de Lattre
c7908c38ed Add scheduler.procurement.log
Re-organize the code, so that each module xxx_usability only depend on xxx
2016-04-03 10:53:35 +02:00
Alexis de Lattre
ad786e892f Add sale_quotation_title module 2016-04-01 12:09:14 +02:00
Alexis de Lattre
744c721950 Add sale_crm_usability module 2016-03-31 23:03:49 +02:00
Alexis de Lattre
7c2f10423f Add company_id in product.pricelist tree view 2016-03-31 11:55:33 +02:00
Alexis de Lattre
9c666ba4d9 Modify default values for lang wizards 2016-03-30 14:17:10 +02:00
David Beal
c62a163f93 [IMP] order by sequence in attribute 2016-03-25 12:37:33 +01:00
Alexis de Lattre
9ad2d0f7e1 Same change on purchase order: widget=selection on fiscal position 2016-03-18 19:07:42 +01:00
Alexis de Lattre
907022b31d Easier selection of fiscal position on SO with widget="selection" 2016-03-18 19:04:13 +01:00
Alexis de Lattre
2cbb4dcfb6 Add FR translation 2016-03-18 09:54:55 +01:00
Alexis de Lattre
8cdf8c68e8 Better layout of form view 2016-03-17 23:58:39 +01:00
Alexis de Lattre
10ebf47612 Better labels 2016-03-17 23:55:57 +01:00
Alexis de Lattre
3a69e7bf69 Port/rewrite purchase_date_planned_update to v8 2016-03-17 23:46:13 +01:00
Alexis de Lattre
69c975bfc5 Better layout 2016-03-17 15:13:24 +01:00
David Beal
9d8d2cf8cc [FIX] module version, icon path 2016-03-17 12:58:09 +01:00
David Beal
9356ccc497 [FIX] attributes filter sort 2016-03-16 18:54:15 +01:00
David Beal
3e702f0186 [IMP] add attribute filters in attribute view 2016-03-16 18:29:40 +01:00
David Beal
b0110ca542 [ADD] module attribute_usability 2016-03-16 17:37:08 +01:00
David Beal
ecf5f6f843 [IMP] translation and reload menu 2016-03-16 17:36:28 +01:00
David Beal
d90bd9dd8e [ADD] module_usability 2016-03-16 09:35:39 +01:00
Alexis de Lattre
d794e3fcd2 Add note field on credit control line 2016-03-15 18:28:11 +01:00
Alexis de Lattre
e519cf89cd Lower risk on summer time savings 2016-03-15 18:18:21 +01:00
Alexis de Lattre
15ebf4a756 Inherit another hr_holiday view, for better usability 2016-03-15 17:59:10 +01:00
Alexis de Lattre
7a6a38aa1d Revert to previous code for order on pickings
Don't inherit the 2 fields to add digits=, it seems it is not needed any more
2016-03-03 10:02:43 +01:00
Alexis de Lattre
0971fb48e4 Move view code from sale_usability_extension to sale_stock_usability (pickings_ids belongs to sale_stock !) 2016-03-01 17:48:52 +01:00
Alexis de Lattre
41f012e0b4 Better help msg 2016-03-01 17:36:14 +01:00
Alexis de Lattre
dba79c83c4 Add good support of unit of measures in purchase_suggest 2016-03-01 17:35:39 +01:00
Alexis de Lattre
f2e48cb977 Remove restriction to view the period_id field on invoices 2016-03-01 09:25:42 +01:00
Alexis de Lattre
8b3dd37c33 stock_usability : Only do the change of precision on function fields, not on real field. In fact, when we change the precision on "real" fields, it will convert them from type "double precision" in postgres to type "numeric". One of the consequences of this it that it deletes the stock.history SQL view that is defined in stock_account/wizard/stock_valuation_history.py... but this SQL view is never re-created until you reload the module stock_account.
So it's not a good idea of thix to bug in this stock_usability module ; it needs to be fixed in the stock module itself. More work needs to be done on https://github.com/odoo/odoo/pull/10038
2016-02-29 14:50:21 +01:00
Alexis de Lattre
549ab31e82 Remove code that is not usefull anymore 2016-02-29 14:23:07 +01:00
Alexis de Lattre
3bedaa076c Code cleanup in partner_products_shortcut 2016-02-27 00:25:47 +01:00
Alexis de Lattre
518628ec8c Add module partner_product_variants_shortcut 2016-02-27 00:25:35 +01:00
Alexis de Lattre
14518c7f9f Improve mrp_usability 2016-02-26 16:15:32 +01:00
Alexis de Lattre
354137d101 Better invalidation 2016-02-26 12:16:55 +01:00
Alexis de Lattre
cb2ec53062 FIX one precision
Add help message to inform about the unit of measure of the field
2016-02-26 11:18:09 +01:00
David Beal
d806d1cf81 Merge pull request #13 from akretion/8-partner-search
[ADD] module partner_search
2016-02-24 22:56:53 +01:00
Alexis de Lattre
b640290962 account_invoice_partner_bank_usability: ability to choose which bank account is selected by default on customer invoices 2016-02-14 00:33:12 +01:00
Alexis de Lattre
447e5a7d82 Resize fiscal year code from 6 to 9 (want to write '2015-2016') 2016-02-12 15:48:23 +01:00
David Beal
3bc6bb2900 Merge pull request #14 from akretion/8.0_fix_no_filter_myorder
[FIX] dependency of sale_no_filter_myorder
2016-02-11 14:37:53 +01:00
Benoît
9a55c50563 [FIX] dependency of sale_no_filter_myorder 2016-02-11 14:31:41 +01:00
Alexis de Lattre
a88c3e7f6d Update report 2016-02-10 23:21:11 +01:00
Alexis de Lattre
9c63ea19d3 Add module stock_inventory_valuation_ods 2016-02-10 23:20:07 +01:00
David Beal
38f0f5eb78 [IMP] replace name in search by name, ref, email 2016-02-05 23:50:58 +01:00
David Beal
53f85a6b8e [ADD] module partner_search 2016-02-04 17:49:20 +01:00
Alexis de Lattre
5b7cdcff37 Update account_move_line_start_end_dates_xls 2016-02-03 16:08:15 +01:00
Alexis de Lattre
30bc6ff801 Add module account_cutoff_prepaid_ods 2016-02-02 18:46:53 +01:00
Alexis de Lattre
f4574647dd Add option no_email_notification on hr_holidays, to be able to skip email notification (dirty workaround to the fact that workflow doesn't pass context) 2016-02-01 11:07:10 +01:00
Alexis de Lattre
1b2fada686 Add Go to Partner button
Remove file added by error
2016-02-01 11:04:51 +01:00
Alexis de Lattre
db55e148c3 Better module desc 2016-01-30 00:05:04 +01:00
Alexis de Lattre
2ceb626723 Add possibility to make an exception on some form views in web_eradicate_duplicate 2016-01-29 23:42:15 +01:00
Alexis de Lattre
90a2f719ef Block when you try to validate an invoice with a date in the future
PEP8
2016-01-29 17:36:10 +01:00
Alexis de Lattre
4883570131 Small enhancements in account_credit_control_usability 2016-01-29 16:44:23 +01:00
Alexis de Lattre
110d8b6982 Small enhancement in account_usability 2016-01-29 16:43:22 +01:00
Alexis de Lattre
6d29f236fd Add totals as SUM() 2016-01-27 20:55:00 +01:00
Alexis de Lattre
dd784fa245 Better name_get on stock_move, to make it easier to analyse the reservation of the quants 2016-01-27 18:35:29 +01:00
Alexis de Lattre
7d0ea7967c Add module account_move_line_filter_wizard 2016-01-27 18:33:27 +01:00
Alexis de Lattre
111a42c2da Add reconcile filters 2016-01-27 18:32:59 +01:00
Alexis de Lattre
f66d74499f Add module account_credit_control_usability 2016-01-27 18:21:29 +01:00
Alexis de Lattre
ea195e6c75 Merge pull request #10 from akretion/8-default-tax-on-product
[IMP] play onchange while import
2016-01-27 00:08:20 +01:00
Alexis de Lattre
f74828e3ea Update DEB ODS report 2016-01-26 15:26:21 +01:00
Alexis de Lattre
3ef6312f65 Add module l10n_fr_intrastat_product_ods 2016-01-26 10:50:10 +01:00
Alexis de Lattre
9701eb1986 Better description 2016-01-25 14:50:19 +01:00
Alexis de Lattre
dbb427e70e Avoid a raise if your have 2 bank accounts with the same number (different currencies) and you force the journal 2016-01-25 14:48:55 +01:00
Sébastien BEAU
91ad3f0f05 [IMP] add sale_no_filter_myorder module to remove default filter on sale order 2016-01-22 11:26:14 +01:00
Alexis de Lattre
2c760935af FIX access rights because by missing readonly=True on related field 2016-01-21 23:15:00 +01:00
Alexis de Lattre
607968983b Add module purchase_line_product_required 2016-01-21 21:32:11 +01:00
Alexis de Lattre
e1f8611ef3 Add logs in procurement scheduler
Add method in account_usability : get fiscal position without partner_id
2016-01-18 00:07:23 +01:00
Alexis de Lattre
0a154e4314 Add close_method in tree view of account.account.type 2016-01-15 14:09:36 +01:00
Alexis de Lattre
25d593710e Add reverse M2M field invoice_line <-> sale_line 2016-01-14 22:10:05 +01:00
David Beal
9f2ce9dd14 Merge pull request #11 from akretion/8-fix-line_start_end_dates_xls
[FIX] account_move_line_start_end_dates_xls installable key
2016-01-13 23:35:30 +01:00
Alexis de Lattre
7fdf51be31 Better stock move view when using the shortcut button on the product form 2016-01-13 20:49:14 +01:00
Alexis de Lattre
ccc0684312 Add patch for POS 2016-01-13 12:04:38 +01:00
Alexis de Lattre
140349e4d8 Add search on EAN13 in product_usability 2016-01-13 11:51:13 +01:00
Alexis de Lattre
540d7cf82c Add module second_ean13 2016-01-13 11:50:51 +01:00
Alexis de Lattre
f745388f37 On partner form view, 2 buttons for journal items: one for payable (seen if supplier = True) and one for receivable (seen if customer=True) 2016-01-12 20:09:55 +01:00
Alexis de Lattre
ad0e2f43c4 Add module l10n_fr_fix_thousands_sep 2016-01-08 23:25:39 +01:00
Alexis de Lattre
12d9934889 Remove module sale_markup_group_user (won't port it to v7) 2016-01-08 17:04:22 +01:00
Alexis de Lattre
32553d0042 Add module sale_margin_report 2016-01-08 16:57:30 +01:00
Alexis de Lattre
823e9ad208 don't make name field of product too wide, for screens with small resolutions 2016-01-07 18:55:53 +01:00
Alexis de Lattre
f5c54ce9d0 Fix code sample in aeroo_report_to_printer 2016-01-07 11:22:38 +01:00
Alexis de Lattre
b24182c5b6 Add module web_eradicate_duplicate 2016-01-07 09:50:51 +01:00
Alexis de Lattre
91f400be09 Remove module account_invoice_overdue_filter (feature present in account_usability) 2016-01-06 22:49:12 +01:00
beau sebastien
4c7dc09979 Merge pull request #12 from akretion/8-calendar
[ADD] calendar usability
2016-01-06 18:40:49 +01:00
David Beal
15c0400805 [FIX] variable name 2016-01-06 18:36:32 +01:00
Alexis de Lattre
b3bc3c923d Do not show cancelled quotations by default in Requests for Quotation 2016-01-06 16:01:45 +01:00
David Beal
623dca3cbf [FIX] module name 2016-01-05 18:51:04 +01:00
David Beal
490b203943 [IMP] attendance_ids at default value 2016-01-05 15:27:34 +01:00
David Beal
a41d5bc3ce [ADD] calendar usability 2016-01-05 09:18:39 +01:00
Alexis de Lattre
55d1f66d0e Remove module product_disable_quick_create (use eradicate quick_create instead) 2016-01-04 21:40:49 +01:00
Alexis de Lattre
2617170314 Adapt to the revolution branch of OCA/bank-payment 2016-01-04 20:56:03 +01:00
Alexis de Lattre
f436a651cf Minor changes 2016-01-04 10:09:19 +01:00
Alexis de Lattre
0eedae22c6 Better search and form views for countries and states 2016-01-01 11:39:15 +01:00
Alexis de Lattre
26930e6a84 Add modules pos_no_product_template_menu and pos_usability 2016-01-01 10:14:51 +01:00
Alexis de Lattre
b26164e05c Really remove group on products variants entry 2015-12-31 19:06:55 +01:00
Alexis de Lattre
fcaf342d2a Hide re-ordering rules when using purchase_suggest_min_qty_on_product 2015-12-31 17:38:55 +01:00
Alexis de Lattre
b5d814860e Add outgoing_qty in product form view (under incoming_qty) 2015-12-31 16:56:01 +01:00
Alexis de Lattre
ad6a8f28eb Better module desc 2015-12-30 11:11:15 +01:00
Alexis de Lattre
5252ed95cd Update sale_purchase_no_product_template_menu: now usable by companies who have multi-variants, because we keep one menu entry of product.template in Sales > Configuration > Products Categ and Attributes menu 2015-12-30 11:08:02 +01:00
Alexis de Lattre
a068c534bb Add module purchase_suggest_min_qty_on_product 2015-12-30 10:37:01 +01:00
David Beal
c67d51b303 [FIX] account_move_line_start_end_dates_xls installable key 2015-12-15 11:49:17 +01:00
David Beal
91886211ae [FIX] write in product_category_tax 2015-12-15 10:34:02 +01:00
Mourad
473b97fd7e ADD fr translation 2015-12-15 10:34:02 +01:00
David Beal
92c89b0756 [IMP] play onchange while import
[FIX] play onchange with write
2015-12-15 10:33:30 +01:00
Alexis de Lattre
abe79d1c48 Port projct_issue_extension to v8 2015-12-14 15:56:28 +01:00
Alexis de Lattre
81e923def2 FIX a bug in stock module: add decimal precision ! (we should not do that in a 'usability' module, but...)
Add sum on quant tree view
2015-12-11 15:28:37 +01:00
Alexis de Lattre
fb9e05b5b9 Add module account_invoice_margin_report 2015-12-11 13:50:42 +01:00
Alexis de Lattre
96796ebe05 Small vue update 2015-12-11 13:49:43 +01:00
Alexis de Lattre
72eef666eb Add sale_stock_usability
sale_usability_extension now only depend on sale (not on sale_stock)
2015-12-10 15:10:22 +01:00
Alexis de Lattre
03f4a1438c Add state in translation tree view 2015-12-08 11:09:48 +01:00
Alexis de Lattre
8d64f799d1 Module in tree view by default, filtered on Installed modules (not Apps) 2015-12-07 10:04:16 +01:00
Alexis de Lattre
725314e497 Merge pull request #9 from isabellerichard/8.0
[TRAD] Translate product_category_tax in french
2015-12-05 18:45:53 +01:00
Isabelle RICHARD
45f3294249 [TRAD] Translate product_category_tax in french 2015-12-04 18:30:30 +01:00
Alexis de Lattre
7ed3a38cb2 Add log message when sending en email to the outside world ! 2015-12-04 17:35:29 +01:00
Alexis de Lattre
ab464db930 Add module l10n_fr_usability 2015-12-01 22:50:20 +01:00
Alexis de Lattre
704667e71e Add module stock_transfer_continue_later 2015-12-01 19:13:32 +01:00
Alexis de Lattre
badaa404a4 Better "Journal items" shortcut button on partner form view, to go directly to the "account" of the customer or supplier 2015-11-24 16:33:59 +01:00
Alexis de Lattre
0fb70e97aa Remove raise which is not required any more since a1e7e10ef2 2015-11-23 22:01:18 +01:00
Alexis de Lattre
1a38600aeb Continue modifications for better security management 2015-11-23 10:26:32 +01:00
Alexis de Lattre
c3a55088ed Merge pull request #8 from akretion/8-stock-location-route-no-translate
[FIX] Missing :
2015-11-17 17:36:53 +01:00
Raph
5c3716dfe1 [FIX] Missing : 2015-11-17 17:11:09 +01:00
Alexis de Lattre
fec06bbb59 Add module hr_expense_usability 2015-11-16 18:57:55 +01:00
Alexis de Lattre
9b4c770382 Better access rights on hr_holidays_usability
Remove force_send on emails
2015-11-16 18:57:21 +01:00
Alexis de Lattre
2d7f151543 Merge pull request #7 from akretion/8-stock-location-route-no-translate
[IMP] don't translate stock.location.route
2015-11-16 09:38:57 +01:00
Raph
8c9c30b604 [IMP] don't translate stock.location.route
And incr num version
And tell it in the description
2015-11-12 14:29:07 +01:00
Alexis de Lattre
cfc24eeeee Advice on purchase_suggest 2015-11-10 17:01:21 +01:00
Alexis de Lattre
fdbc003ac7 Code cleanup 2015-11-06 11:05:54 +01:00
Alexis de Lattre
44fcf386ee Add graph view on pickings 2015-11-06 11:02:35 +01:00
Alexis de Lattre
a1e4829455 Add one line of log 2015-11-06 09:56:03 +01:00
Alexis de Lattre
0bac95c085 Lower limit for better perfs 2015-11-04 22:30:06 +01:00
Alexis de Lattre
613d6d688d Add stock_account_usability module 2015-11-03 13:26:21 +01:00
Alexis de Lattre
152e94b116 Add warning in description 2015-11-02 23:09:29 +01:00
Alexis de Lattre
60e9caf2e7 Add module aeroo_report_to_printer
Minor code update in base_other_report_engines
2015-11-02 23:04:29 +01:00
Alexis de Lattre
214aafd243 Add name_title field 2015-11-02 10:28:47 +01:00
Alexis de Lattre
b140aa2abf Wider name field for product 2015-10-30 23:23:35 +01:00
Alexis de Lattre
da2c22329c pos_sale_report: Now works well when you select multiple products in product tree view
Add Today and Yesterday filter, for easy analysis of recent sales
2015-10-30 23:17:37 +01:00
Alexis de Lattre
27fc5070ec Add domain 2015-10-29 15:23:40 +01:00
Alexis de Lattre
d3080b90a7 Port base_company_extension to new API 2015-10-29 14:03:21 +01:00
Alexis de Lattre
dddc24dc02 Fix access rights issue 2015-10-29 10:25:55 +01:00
Alexis de Lattre
6c073b7d4d Add total untaxed in sale order tree view 2015-10-19 17:30:29 +02:00
Alexis de Lattre
2114ce5da5 Add tracking on active on res.partner 2015-10-19 11:25:18 +02:00
Alexis de Lattre
27abfa0880 Add module account_bank_statement_import_usability 2015-10-16 18:35:10 +02:00
Alexis de Lattre
340bd0857d Add option on employees to exclude from mass allocation 2015-10-15 18:35:00 +02:00
Alexis de Lattre
13f9a51bff Port stock_invoice_try_again to v8 2015-10-15 11:21:53 +02:00
Alexis de Lattre
d4b979979a Better search view of stock.location 2015-10-09 19:50:53 +02:00
Alexis de Lattre
6aadd49592 Add monitoring on a field 2015-10-09 16:38:45 +02:00
Alexis de Lattre
b2ce56755f Small enhancement on picking search view 2015-10-09 12:51:20 +02:00
Alexis de Lattre
7070f7f1ec Small usability enhancement for account
PEP8 stuff
2015-10-09 12:50:22 +02:00
Alexis de Lattre
6d50815196 Port purchase_auto_invoice_method to v8 2015-10-07 17:21:59 +02:00
Alexis de Lattre
99f3bc3778 date_done should be visible to everybody 2015-10-07 15:43:29 +02:00
Alexis de Lattre
e081876473 Better view of stock move, to fit vertically in one screen
Unreserve button on form view of stock move
2015-10-07 08:59:39 +02:00
Alexis de Lattre
1fbd4281ba Add fields in view 2015-10-06 16:45:36 +02:00
Alexis de Lattre
45593e94fc Display unreserve button even when partially available 2015-10-06 14:56:37 +02:00
Alexis de Lattre
f967e0007b Add module stock_my_operations_filter 2015-10-05 00:00:03 +02:00
Alexis de Lattre
3e5af98552 FIX module sale_purchase_no_product_template_menu 2015-09-30 12:01:03 +02:00
Alexis de Lattre
d365286bdf Show analytic account even if there are no journal selected 2015-09-28 14:57:10 +02:00
Alexis de Lattre
63d06b285a Don't block manual creation of warehouse 2015-09-28 14:39:54 +02:00
Alexis de Lattre
d67e82926a Add module sale_purchase_no_product_template_menu 2015-09-28 11:51:28 +02:00
Alexis de Lattre
e11a62dd90 Add Unreserve button on move line 2015-09-21 09:46:38 +02:00
Alexis de Lattre
9a787e88b3 Merge branch '8.0' of https://github.com/akretion/odoo-usability into 8.0
Conflicts:
	purchase_suggest/i18n/fr.po
2015-09-21 09:44:03 +02:00
Alexis de Lattre
f086cb9d29 FR translation contributed by Christophe Dubuit 2015-09-21 09:34:55 +02:00
Alexis de Lattre
0b3c1ff510 Update translation templates 2015-09-16 23:22:06 +02:00
Alexis de Lattre
8cd265cae3 Remove unneeded if 2015-09-16 18:17:41 +02:00
Alexis de Lattre
a5507fadfc Wider 'name' field on partner form 2015-09-16 10:34:42 +02:00
Alexis de Lattre
7713a1178f partner_products_shortcut: tree view by default 2015-09-16 10:21:02 +02:00
Alexis de Lattre
ea41ed7663 is_company is now readonly when the partner is a contact 2015-09-16 10:17:00 +02:00
Alexis de Lattre
1f04ef8b92 Add reverse one2many field 2015-09-14 23:57:21 +02:00
Alexis de Lattre
165d042a6b Generate aged open invoices with all moves from all FY 2015-09-03 15:51:07 +02:00
Alexis de Lattre
44b3e74398 Move features of account_invoice_overdue_filter in account_usability
Disable reconcile guessing in account_usability
2015-08-09 18:43:46 +02:00
Alexis de Lattre
215cb70cea Port module account_invoice_del_attachment_cancel to v8/newAPI 2015-07-31 18:06:06 +02:00
Alexis de Lattre
d9f8da2b9e Add margin rate in percentage
Margin is now negative on refunds (not only in account.invoice, but also on account.invoice.line)
2015-07-31 17:35:53 +02:00
Alexis de Lattre
58203941df Small improvements 2015-07-31 16:24:36 +02:00
Alexis de Lattre
f717761aa2 account_invoice_margin: add support for multi-UoMs for margins 2015-07-31 15:42:27 +02:00
Alexis de Lattre
2ea24123da Add module sale_margin_no_onchange 2015-07-31 15:19:54 +02:00
Alexis de Lattre
e67d9a6a3a Small code enhancements to purchase_suggest
WARNING : this code changes the method to select the location_id and pick_type_id on PO
2015-07-30 18:09:17 +02:00
Alexis de Lattre
9fdfaf9d49 Show user_type in account.accout tree view 2015-07-30 15:58:39 +02:00
Alexis de Lattre
154104e5a8 Add tracking in PO fields 2015-07-30 15:51:47 +02:00
Alexis de Lattre
9f1c82aeca Better position of button 2015-07-30 15:45:02 +02:00
Alexis de Lattre
8eb87d249b Minor code enhancements 2015-07-30 15:40:34 +02:00
Alexis de Lattre
9a3fa8dbe0 Add date_confirm in sale order view !
Add onchange on important sale.order fields
2015-07-30 10:09:10 +02:00
Alexis de Lattre
cdfbc427d1 Horrible hack to avoid blocking the installion of the module pos_debt_notebook 2015-07-29 13:33:11 +02:00
Alexis de Lattre
beed014aca Fix product_category_tax : replace taxes instead of adding them 2015-07-29 13:11:30 +02:00
Alexis de Lattre
6347327b58 Better description 2015-07-29 09:47:02 +02:00
Alexis de Lattre
c52a8e901f Show resa in quant tree view 2015-07-27 15:29:38 +02:00
Alexis de Lattre
db8f78e5cf Show margins to Accoutant group 2015-07-27 09:49:41 +02:00
Alexis de Lattre
54efe13723 Add module account_invoice_margin 2015-07-27 09:26:09 +02:00
Alexis de Lattre
2a5f3c460e Add module product_usability 2015-07-27 09:23:35 +02:00
Alexis de Lattre
9a678154c9 Add supplier invoice number in invoice tree view 2015-07-23 14:26:06 +02:00
Alexis de Lattre
4e8f9bbf97 Add new module partner_aged_open_invoices 2015-07-10 19:36:04 +02:00
Alexis de Lattre
4e40393b14 rename module account_move_usability to account_usability 2015-07-08 11:40:46 +02:00
Alexis de Lattre
5c95d9bd88 Add module phone_directory_report 2015-07-01 10:29:47 +02:00
Alexis de Lattre
a6480df8c5 FIX crash
PEP8
2015-06-30 23:29:15 +02:00
Alexis de Lattre
db690e77ea FIX access rights issue 2015-06-29 16:25:57 +02:00
Alexis de Lattre
b2a7741fd3 Better view for mass allocation wizard 2015-06-29 14:59:53 +02:00
Alexis de Lattre
053911edca Up-port from 7 to 8 new stuff for hr_holidays_usability 2015-06-23 20:01:17 +02:00
Alexis de Lattre
1ff2416435 Up-port new stuff from hr_holidays_usability from 7.0 to 8.0 2015-06-23 16:29:47 +02:00
Alexis de Lattre
219ec0e671 We can do a child_of with a list 2015-06-22 16:40:42 +02:00
Alexis de Lattre
fe46134a43 Add price_unit on stock move form view 2015-06-18 10:49:51 +00:00
Alexis de Lattre
43ce9daf2e Show me those important hidden fields !!! 2015-06-17 16:05:23 +02:00
Alexis de Lattre
4842386aac Display additionnal fields on stock views 2015-06-16 14:28:13 +00:00
Alexis de Lattre
f20145d06a Upport fix to 8.0 2015-06-11 09:49:27 +02:00
Alexis de Lattre
f986bf05fd Update 2015-06-10 19:01:11 +02:00
Alexis de Lattre
21f657616b Port module hr_holidays_usability to v8 2015-06-10 19:00:37 +02:00
Alexis de Lattre
ac91927ea1 Merge branch '8.0' of https://github.com/akretion/odoo-usability into 8.0 2015-05-29 16:29:34 +02:00
Alexis de Lattre
74d8f0c23d Revert to OLD api to avoid bug fat bug found by Brother Jean-de-Dieu 2015-05-29 16:27:17 +02:00
Alexis de Lattre
ddb802b31a Small fixes/enhancements in purchase_suggest 2015-05-29 16:26:33 +02:00
Alexis de Lattre
979c33a457 Better handling of companies
Fix issue where the location_id was not taken into account on the PO
Now merge with existing draft PO if exists
2015-05-28 23:15:11 +02:00
Alexis de Lattre
681be2ec9e Add uid in log msg 2015-05-28 21:29:48 +02:00
Alexis de Lattre
b217a504e6 Convert M2O fields to M2M
Add explainations to the user about the algo
Update translation files
2015-05-28 18:03:27 +02:00
Alexis de Lattre
2f8e57ae28 Update module purchase_suggest: much better perfs and several small enhancements 2015-05-28 14:02:37 +02:00
Alexis de Lattre
4373d5ff4b Add SQL constraint on orderpoint to avoid duplicates 2015-05-28 11:10:17 +02:00
Alexis de Lattre
3526e98a00 Add module purchase_suggest 2015-05-28 09:53:35 +02:00
Alexis de Lattre
6bd38857d1 Enhance procurement_suggest 2015-05-27 18:23:58 +02:00
Alexis de Lattre
2abab0caaa Fix orderpoint view 2015-05-27 14:34:42 +02:00
Alexis de Lattre
de76a64f7e Split procurement_suggest in 2 modules : procurement_suggest + procurement_suggest_purchase 2015-05-27 11:02:07 +02:00
Alexis de Lattre
604dab1bb9 procurement_suggest: code enhancements 2015-05-26 18:10:15 +02:00
Alexis de Lattre
1bfa265278 Merge branch '8.0' of https://github.com/akretion/odoo-usability into 8.0 2015-05-26 18:09:39 +02:00
Alexis de Lattre
7e868f3faa Add sequence on purchase order lines 2015-05-26 18:08:40 +02:00
Alexis de Lattre
7e19809cff Remove module base_title_on_partner (feature integrated in base_usability) 2015-05-26 15:05:52 +02:00
David Béal
f5d86f7bc8 [ADD] mrp_export_field_profile module 2015-05-24 18:43:47 +02:00
David Béal
db89d01739 [ADD] product_export_field_profile module 2015-05-24 14:34:29 +02:00
Alexis de Lattre
0bae792e79 Add total qty in transfer form view 2015-05-17 14:56:47 +02:00
Alexis de Lattre
2a311b8cb8 Add module account_payment_force_maturity_date
Better inherit in account_payment_hide_communication2 (invisible=1 instead of replace)
2015-05-06 17:05:34 +02:00
Alexis de Lattre
ae0bd93403 Merge branch '8.0' of github.com:akretion/odoo-usability into 8.0 2015-04-28 16:14:16 +02:00
Alexis de Lattre
36929e5f48 Update description 2015-04-28 16:13:57 +02:00
Alexis de Lattre
413f8ca0fd Use _prepare methods that are easy to inherit
Add support for multi-term invoices
2015-04-27 10:34:13 +00:00
Alexis de Lattre
0d1f1961af Add module stock_picking_type_default_partner 2015-04-15 14:26:28 +00:00
Alexis de Lattre
749dd367fa Display more fields
Add menu entry for push rules
2015-04-15 10:06:28 +00:00
Alexis de Lattre
5849a2fecd stock_usability : display more fields 2015-04-15 07:53:28 +00:00
Alexis de Lattre
343e92439c Display more fields on stock move 2015-04-14 15:28:25 +00:00
Alexis de Lattre
82c8243978 Add patch needed on odoo 2015-04-10 22:31:15 +02:00
Alexis de Lattre
35d13bfc53 Fix import lib 2015-04-10 15:48:56 +02:00
Alexis de Lattre
af975d3055 Add tracking on important fields of partner 2015-04-01 09:53:58 +00:00
Alexis de Lattre
aeb64790d0 Add module hr_usability 2015-03-30 17:21:52 +02:00
Alexis de Lattre
8d23f49c05 account_payment_security : inherit existing ACLs instead of deleting and adding new ones 2015-03-30 11:44:43 +02:00
Alexis de Lattre
496a2ad710 New module base_usability, that replaces base_title_on_partner and adds new stuff 2015-03-30 11:26:09 +02:00
Alexis de Lattre
7af3778761 Remove the menu entry for reconcile, because I already have the search on reconcile in account move lines, and it's enough 2015-03-26 15:13:38 +00:00
Alexis de Lattre
0035b197c2 Add reconcile tags menu entry 2015-03-24 10:17:50 +01:00
Alexis de Lattre
522e5299f1 Add module procurement_suggest 2015-03-20 17:56:57 +01:00
Alexis de Lattre
13d28af70d No translation on stock location and stock pick type 2015-03-19 09:02:18 +00:00
Alexis de Lattre
7e8cad4fcc partner_products_shortcut : Port to new API 2015-03-19 00:36:13 +01:00
Alexis de Lattre
4c04109ba4 Add missing dependancy 2015-03-14 18:24:12 +01:00
Alexis de Lattre
5341c120cc Add module account_direct_debit_autogenerate 2015-03-13 15:18:16 +01:00
Alexis de Lattre
215e5a7b90 Take refunds into account 2015-03-07 00:01:27 +01:00
Alexis de Lattre
9e6c8b28ba Add account_voucher_default_amount 2015-03-06 22:05:33 +01:00
Alexis de Lattre
e6761de367 Add module product_category_tax 2015-03-05 08:26:09 +01:00
Alexis de Lattre
18d24ebfdd Order stock pickings 2015-02-20 08:59:54 +01:00
Alexis de Lattre
c7d66ac1ab Merge branch '8.0' of github.com:akretion/odoo-usability into 8.0 2015-02-19 17:57:05 +01:00
Alexis de Lattre
9039f26eab account.move.line : If I set a credit, the debit is automatically set to 0 (same if I set a debit) 2015-02-19 17:55:49 +01:00
Alexis de Lattre
a91d3f79c3 Add module pos_sale_report 2015-02-18 17:04:42 +01:00
Alexis de Lattre
587403d009 add mrp_usability 2015-02-18 09:34:18 +01:00
Alexis de Lattre
30585ec690 Revert my previous modif on dependencies 2015-02-17 22:26:28 +01:00
Alexis de Lattre
1b591a83ca Add logging on start/end of procurement scheduler 2015-02-17 11:31:39 +01:00
Alexis de Lattre
189c3062f0 Add group by partner in pickings 2015-02-17 09:24:02 +01:00
Alexis de Lattre
37b8bb1ce4 Rename stock_display_src_location to stock_usability with one improvement 2015-02-17 08:50:08 +01:00
Alexis de Lattre
de89795eed Add module delivery_no_invoice_shipping 2015-02-16 20:51:35 +01:00
Alexis de Lattre
a8b122e1c4 Add module procurement_usability
Display move_dest_id on procurement.order
2015-02-11 01:06:03 +01:00
Alexis de Lattre
eba9a4bce5 Rename module account_move_view_more_lines to account_move_usability 2015-02-05 15:15:49 +01:00
Alexis de Lattre
14e6acad4d Same on account.invoice.report 2015-02-03 17:50:01 +01:00
Alexis de Lattre
b2b073a2d7 Add module account_invoice_groupby_commercial_partner 2015-02-03 17:30:04 +01:00
Alexis de Lattre
59a5181e80 Add module account_move_view_more_lines 2015-02-03 15:50:16 +01:00
Alexis de Lattre
b800a639a2 Merge pull request #3 from akretion/8-icon2
[IMP] icon product variant
2015-01-30 21:55:32 +01:00
Alexis de Lattre
4852a84ab8 Remove module account_statement_operation_multicompany, which is moving to OCA/bank-statement-reconcile 2015-01-26 21:57:56 +01:00
Alexis de Lattre
2a9882e7af FIX account_statement_operation_multicompany 2015-01-21 22:47:05 +01:00
Alexis de Lattre
6c3b3749b1 Merge branch '8.0' of https://github.com/akretion/odoo-usability into 8.0 2015-01-20 22:23:13 +01:00
Alexis de Lattre
eae6766995 Add module account_statement_operation_multicompany
Add gitignore
2015-01-20 22:21:48 +01:00
david.beal@akretion.com
67b49d9917 [IMP] icon again 2015-01-19 09:59:44 +01:00
david.beal@akretion.com
b8f0db3e69 [IMP] icon product variant 2015-01-19 09:37:24 +01:00
Alexis de Lattre
55fe513c50 Merge pull request #2 from akretion/8-icon2
[IMP] add icons
2015-01-19 09:36:47 +01:00
david.beal@akretion.com
1653ac5453 [IMP] icon translation 2015-01-19 09:23:32 +01:00
Alexis de Lattre
6889fdf8a1 Merge pull request #1 from akretion/8-icon
[IMP] icons infogreffe, quick_create
2015-01-19 00:11:14 +01:00
david.beal@akretion.com
5f1fc280bb [IMP] icons partner products short 2015-01-18 20:32:40 +01:00
david.beal@akretion.com
76b510fabc [IMP] icons infogreffe, quick_create 2015-01-18 20:12:51 +01:00
Alexis de Lattre
706c29231c Merge branch '8.0' of https://github.com/akretion/odoo-usability into 8.0 2015-01-16 10:05:22 +01:00
Alexis de Lattre
4048a8cdc4 Add company_id in property 2015-01-16 10:04:58 +01:00
Alexis de Lattre
703757dc1f Merge branch '8.0' of https://github.com/akretion/odoo-usability into 8.0 2015-01-16 10:03:31 +01:00
Alexis de Lattre
924e4011ee Add dep on purchase_partner_invoice_method + default value to picking 2015-01-16 10:02:24 +01:00
Alexis de Lattre
cbfebd6fdb product_no_translation : translate=False now on all fields declared in addons/product/product.py 2015-01-09 00:30:03 +01:00
Alexis de Lattre
6c8f51b311 account_invoice_sale_link: add sale_ids field in invoice form view. 2015-01-07 12:24:15 +01:00
Alexis de Lattre
484baa832d Add module product_no_translation 2014-12-29 18:21:29 +01:00
Alexis de Lattre
c89ca60777 Remove module stock_invoice_service_from_delivery 2014-12-15 20:47:56 +01:00
Alexis de Lattre
aeb0c2f5e7 Add attribute_line_ids 2014-12-15 19:05:52 +01:00
Alexis de Lattre
6a0d9043a2 Add module product_variant_csv_import 2014-12-15 18:45:38 +01:00
Alexis de Lattre
b54b69d48f Add module sale_stock_show_delivery_address 2014-12-05 00:08:01 +01:00
Alexis de Lattre
5052b233dd pos_journal_sequence : pos_sequence -> sequence, to have the same as v9 2014-12-02 15:42:36 +01:00
Alexis de Lattre
7f1c5a9b7e Remove module stock_picking_package_link (not usefull for its initial goal) 2014-12-01 17:12:52 +01:00
Alexis de Lattre
f17ca54c77 Add module stock_picking_package_link 2014-12-01 15:13:01 +01:00
Alexis de Lattre
a33c3a1a21 Add module pos_journal_sequence. 2014-11-17 23:13:49 +01:00
Alexis de Lattre
7c515b6273 I won't port it to v8, so I remove it for the moment. 2014-10-28 00:41:31 +01:00
Alexis de Lattre
e7dbeaea52 Remove base_partner_link_on_users (native on v8) 2014-10-28 00:37:53 +01:00
Alexis de Lattre
46b08d22ac Add module eradicate_quick_create 2014-10-22 18:22:25 +02:00
Alexis de Lattre
eef739806e Add module base_other_report_engines. 2014-10-22 00:10:10 +02:00
Alexis de Lattre
4eb3bdbb5c Add module account_fiscal_position_translate 2014-10-17 15:13:00 +02:00
Alexis de Lattre
ee6915dd47 Port purchase_usability_extension to v8 2014-10-17 11:54:52 +02:00
Alexis de Lattre
45c23df381 Add currency in PO tree view. 2014-10-16 23:36:15 +02:00
Alexis de Lattre
79a700f9b3 Add currency_id in sale order view 2014-10-16 23:18:57 +02:00
Alexis de Lattre
0074a23631 Add widget=monetary 2014-10-16 14:57:01 +02:00
Alexis de Lattre
7cd8d59fba Add module base_company_extension 2014-10-16 12:19:11 +02:00
Alexis de Lattre
188730318e Add account_invoice_overdue_filter. 2014-10-16 11:58:46 +02:00
Alexis de Lattre
044f2addbe FIX XMLID 2014-10-06 09:57:21 +02:00
Alexis de Lattre
f0715c53c4 Add module product_manager_group_stock
Fix dependancies
2014-10-03 11:17:10 +02:00
Alexis de Lattre
46e3a86c81 Add ACLs
Automatically add admin to this group
2014-09-19 19:06:44 +02:00
Alexis de Lattre
06808dde92 Add module sale_line_product_required 2014-09-19 17:45:49 +02:00
Alexis de Lattre
cffd57797b Add module product_manager_group 2014-09-05 10:27:55 +02:00
Alexis de Lattre
1b918f3655 Enhance base_partner_always_multi_contacts 2014-09-04 15:24:41 +02:00
Alexis de Lattre
9f4e25be09 Handle when we have 2 consecutive empty lines 2014-09-02 22:36:00 +02:00
Alexis de Lattre
d552909adf Port module stock_display_destination_move to v8 2014-09-02 22:10:02 +02:00
Alexis de Lattre
81ae120a11 Port to v8 2014-09-02 22:03:52 +02:00
Alexis de Lattre
28d820e5ad Add module stock_display_src_location 2014-09-02 21:52:53 +02:00
Alexis de Lattre
d32796ce8f Module stock_hide_journal_id is not needed in v8 2014-09-02 10:20:02 +02:00
Alexis de Lattre
527424db79 Remove module asterisk_click2dial_project_issue following update of the asterisk connector 2014-08-30 00:07:58 +02:00
Alexis de Lattre
762419f037 Add module account_invoice_picking_label. 2014-07-04 17:59:13 +02:00
Alexis de Lattre
7c09ab2ea2 Add module partner_products_shortcut. 2014-07-02 22:06:55 +02:00
Alexis de Lattre
14bacaeba5 Add module base_partner_link_on_users. 2014-06-11 10:06:28 +02:00
Alexis de Lattre
fe08942e39 Move button. 2014-05-23 19:25:34 +02:00
Alexis de Lattre
bc4dd21316 Add € symbol. 2014-05-23 19:24:02 +02:00
Alexis de Lattre
0c5a496ba2 Add module l10n_fr_infogreffe_connector. 2014-05-23 17:43:06 +02:00
Alexis de Lattre
0a626f39ae Add module asterisk_click2dial_project_issue. 2014-05-23 09:09:07 +02:00
Alexis de Lattre
e9806b73c6 Add module base_partner_always_multi_contacts. 2014-05-15 23:20:03 +02:00
Alexis de Lattre
2b522f5702 Add base_title_on_partner module. 2014-05-15 11:29:34 +02:00
Alexis de Lattre
082c133128 Add link to issues on partner form. 2014-04-23 16:32:54 +02:00
Alexis de Lattre
c33ef19086 Add module stock_hide_journal_id. 2014-04-23 16:20:44 +02:00
Alexis de Lattre
6f07d50d90 Add translation files. 2014-04-18 18:18:17 +02:00
Alexis de Lattre
037e4d4214 Add module project_issue_extension. 2014-04-18 18:08:17 +02:00
Alexis de Lattre
53b1ff6ed4 Add module product_disable_quick_create. 2014-04-18 17:06:43 +02:00
Alexis de Lattre
2847f14dc7 Add module account_invoice_sale_link. 2014-04-10 18:26:19 +02:00
Alexis de Lattre
4fb4ed9ca4 Add module sale_markup_group_user to address this issue : https://bugs.launchpad.net/sale-financial/+bug/1305987 2014-04-10 18:23:11 +02:00
Alexis de Lattre
98bc291b54 Add module base_fix_display_address. 2014-04-10 12:52:03 +02:00
Alexis de Lattre
532b9cb53c Remove the module sale_auto_order_policy, which was in fact useless because the feature was native ! 2014-04-10 12:44:43 +02:00
Alexis de Lattre
5075221428 Remove code... it was native ! 2014-04-09 12:13:58 +02:00
Alexis de Lattre
3ee3edb8ce Add module stock_display_sale_id 2014-03-25 00:10:01 +01:00
Alexis de Lattre
f3085a163f Add module account_payment_hide_communication2. 2014-03-22 01:48:30 +01:00
Alexis de Lattre
7b04e578af Add ship_except to list of states. 2014-03-07 16:01:47 +01:00
Alexis de Lattre
9daeeca997 Better label on the second tab of PO. 2014-02-20 17:32:53 +01:00
Alexis de Lattre
0c5366420f Add purchase_usability_extension and sale_usability_extension. 2014-02-20 16:47:28 +01:00
Alexis de Lattre
f388d0d10f Add module account_payment_security. 2014-02-19 11:02:40 +01:00
Alexis de Lattre
e588686d5f Add module account_move_line_start_end_dates_xls. 2014-02-17 14:46:01 +01:00
Alexis de Lattre
2e6e1c07bf Add module stock_display_destination_move. 2014-01-17 17:16:56 +01:00
Alexis de Lattre
a98dbc0b1c Cosmetic. 2014-01-08 23:56:40 +01:00
Alexis de Lattre
529b585d07 Add module sale_auto_order_policy. 2014-01-08 23:30:47 +01:00
Alexis de Lattre
46d177fb9f Add sale_fiscal_position_update_button. 2014-01-08 23:29:59 +01:00
Alexis de Lattre
24abaec406 Add module purchase_auto_invoice_method. 2013-12-16 18:50:27 +01:00
Alexis de Lattre
673afbac0f FIX module description. 2013-12-12 11:16:02 +01:00
Alexis de Lattre
5dc05f3c81 Add module stock_invoice_try_again 2013-12-09 18:12:45 +01:00
Alexis de Lattre
dce0604e7d Add module stock_invoice_service_from_delivery 2013-12-09 18:12:38 +01:00
Alexis de Lattre
5e88a3825c Initial check-in of the module "account_invoice_partner_bank_usability". 2013-12-09 15:15:47 +01:00
793 changed files with 20753 additions and 36 deletions

56
.gitignore vendored Normal file
View File

@@ -0,0 +1,56 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
# Translations
*.mo
# Pycharm
.idea
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Rope
.ropeproject
# Sphinx documentation
docs/_build/
# Backup files
*~
*.swp

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import partner

View File

@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2018 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Aged Partner Balance from Partner',
'version': '10.0.0.1.0',
'category': 'Accounting',
'license': 'AGPL-3',
'summary': 'Direct access to the aged partner balance report from the partner form',
'description': """
Aged Partner Balance from Partner
=================================
This module adds a button on the partner form view (the icon on the button is a banknote) to easily open the detailed aged partner balance of the partner in PDF format.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account_financial_report_qweb'],
'data': ['partner_view.xml'],
'installable': True,
}

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2015-2018 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api
class ResPartner(models.Model):
_inherit = 'res.partner'
@api.depends('credit', 'debit')
def _compute_balance(self):
for partner in self:
partner.balance = partner.credit - partner.debit
# The field 'currency_id' defined in the account module
# is a computed field that gets the company currency
balance = fields.Monetary(
compute='_compute_balance', readonly=True,
string="Account Balance")
def open_aged_open_invoices_report(self):
wiz = self.env['aged.partner.balance.wizard'].create({
'show_move_line_details': True,
'partner_ids': [(6, 0, self.ids)],
})
action = wiz.button_export_pdf()
return action

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015-2018 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">account.balance.button.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="account.partner_view_buttons"/>
<field name="arch" type="xml">
<button name="open_partner_history" type="object" position="after">
<button class="oe_stat_button" type="object"
name="open_aged_open_invoices_report"
attrs="{'invisible': [('parent_id', '!=', False)]}"
icon="fa-money">
<div class="o_form_field o_stat_info">
<span class="o_stat_value"><field name="balance"/></span>
<span class="o_stat_text">Account Balance</span>
</div>
</button>
</button>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,35 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
=======================================
Import French HSBC Card Bank Statements
=======================================
This module allows you to import French HSBC credit cards bank statements (CSV version).
Configuration
=============
Create a bank journal dedicated to HSBC credit cards. Associate it with a new bank account on which you will set the account number to *HSBC_CARD_EUR*.
Usage
=====
In the dashboard of the *Accounting* menu, click on the button *Import Statement* located on the journal corresponding to the bank account of the statement file you are importing.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/akretion/odoo-usability/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======
Contributors
------------
* Alexis de Lattre <alexis.delattre@akretion.com>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import wizard

View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Import French HSBC Card Bank Statements',
'version': '10.0.1.0.0',
'license': 'AGPL-3',
'author': "Akretion",
'website': 'http://www.akretion.com',
'summary': 'Import French HSBC Card Bank Statements in Odoo (CSV version)',
'depends': ['account_bank_statement_import'],
'data': ['views/account_bank_statement_import.xml'],
'installable': True,
}

View File

@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_fr_cfonb
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-13 03:36+0000\n"
"PO-Revision-Date: 2017-01-13 03:36+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nb_NO\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_bank_statement_import_fr_cfonb
#: code:addons/account_bank_statement_import_fr_cfonb/models/account_bank_statement_import.py:146
#, python-format
msgid "Account %s"
msgstr ""
#. module: account_bank_statement_import_fr_cfonb
#: model:ir.ui.view,arch_db:account_bank_statement_import_fr_cfonb.account_bank_statement_import_view
msgid "CFONB (French format, fixed-length text lines of 120 caracters)"
msgstr ""
#. module: account_bank_statement_import_fr_cfonb
#: model:ir.model,name:account_bank_statement_import_fr_cfonb.model_account_bank_statement_import
msgid "Import Bank Statement"
msgstr "Importer bankutsagn"
#. module: account_bank_statement_import_fr_cfonb
#: code:addons/account_bank_statement_import_fr_cfonb/models/account_bank_statement_import.py:70
#, python-format
msgid ""
"Line %d is %d caracters long. All lines of a CFONB bank statement file must "
"be 120 caracters long."
msgstr ""
"Linje %d er %d tegn langt. Alle linjer i en CFONB-bankutsagnsfil må være 120"
" tegn langt."
#. module: account_bank_statement_import_fr_cfonb
#: code:addons/account_bank_statement_import_fr_cfonb/models/account_bank_statement_import.py:110
#, python-format
msgid ""
"Only single-account files and single-currency files are supported for the "
"moment. It is not the case starting from line %d."
msgstr ""
"Kun enkeltkontofiler og enkeltmyntenhetsfiler støttes for øyeblikket. Dette "
"er ikke tilfellet fra og med linje %d og utover."
#. module: account_bank_statement_import_fr_cfonb
#: code:addons/account_bank_statement_import_fr_cfonb/models/account_bank_statement_import.py:99
#, python-format
msgid ""
"The 2 first letters of the first line are '%s'. A CFONB file should start "
"with '01'"
msgstr ""
#. module: account_bank_statement_import_fr_cfonb
#: code:addons/account_bank_statement_import_fr_cfonb/models/account_bank_statement_import.py:52
#, python-format
msgid "The file is empty."
msgstr "Filen er tom."

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" ?>
<!--
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="account_bank_statement_import_view" model="ir.ui.view">
<field name="name">hsbc.fr.csv.account.bank.statement.import.form</field>
<field name="model">account.bank.statement.import</field>
<field name="inherit_id" ref="account_bank_statement_import.account_bank_statement_import_view"/>
<field name="arch" type="xml">
<xpath expr="//ul[@id='statement_format']" position="inside">
<li>French HSBC Credit Cards (CSV format)</li>
</xpath>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_bank_statement_import

View File

@@ -0,0 +1,105 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
import unicodecsv
from tempfile import TemporaryFile
from datetime import datetime
from odoo import models, fields, api, _
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
class AccountBankStatementImport(models.TransientModel):
_inherit = 'account.bank.statement.import'
@api.model
def _check_hsbc_card_csv(self, data_file):
return data_file.strip().startswith(
'Titulaire;Division;;Cpt Affaires;Num carte;')
@api.model
def _parse_file(self, data_file):
""" Import a file in French HSBC CSV Credit card format"""
hsbc_csv = self._check_hsbc_card_csv(data_file)
if not hsbc_csv:
return super(AccountBankStatementImport, self)._parse_file(
data_file)
transactions = []
fileobj = TemporaryFile('w+')
fileobj.write(data_file)
fileobj.seek(0)
reader = unicodecsv.DictReader(
fileobj,
fieldnames=[
'company', 'division', 'empty', 'account',
'card_num', 'title', 'lastname', 'firstname',
'op_code', 'seller_type', 'seller', 'date', 'acc_date',
'hour', 'city', 'code', 'label', 'local_amount',
'local_currency', 'acc_amount', 'acc_currency'],
delimiter=';',
quoting=unicodecsv.QUOTE_MINIMAL,
encoding='latin1')
i = 0
start_balance = end_balance = 0.0
currency_code = 'EUR'
account_number = 'HSBC_CARD_EUR'
for line in reader:
i += 1
if i == 1:
continue # skip title line
_logger.debug("Line %d: %s" % (i, line))
if not line:
continue
# cleanup
for key, value in line.iteritems():
line[key] = value and value.strip() or False
if not line['date'] or not line['acc_amount']:
continue
labels = [
'%s %s' % (line['firstname'], line['lastname']),
'%s (%s)' % (line['seller'], line['seller_type']),
line['city']]
if line['local_currency'] != currency_code:
labels.append(
'%s %s' % (line['local_amount'], line['local_currency']))
name = ', '.join(labels)
amount = float(
line['acc_amount'].replace(',', '.').replace(' ', '')) * -1
end_balance += amount
date_dt = datetime.strptime(line['date'], '%d/%m/%Y')
date_str = fields.Date.to_string(date_dt)
if line['acc_currency'] != currency_code:
raise UserError(_(
"On line %d of the HSBC CSV file, the column "
"'Dev Cpt Affaires' contains '%s' instead of 'EUR'")
% (line['acc_currency'], i))
vals_line = {
'date': date_str,
'name': name,
'ref': False,
# unfortunately, I'm obliged to include i in
# the unique_import_id, which will disable the auto-delete
# of already imported lines. But experice has proven that
# Internet payment often have hour=00:00, and it's possible
# to have 2 internet payments for the same supplier the same
# day with the same amount (e.g. purchase a return ticket)
'unique_import_id': '%s-%s-%.2f-%s-%d' % (
date_str, line['hour'], amount, name, i),
'amount': amount,
'partner_id': False,
}
transactions.append(vals_line)
vals_bank_statement = {
'name': _('HSBC Cards'),
'balance_start': start_balance,
'balance_end_real': end_balance,
'transactions': transactions,
}
fileobj.close()
# from pprint import pprint
# pprint(vals_bank_statement)
return currency_code, account_number, [vals_bank_statement]

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_bank_statement_import

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# © 2015-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Bank Statement Import Usability',
'version': '10.0.0.1.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Small usability enhancements in account_bank_statement_import module',
'description': """
Account Bank Statement Import Usability
=======================================
This module adds the following changes:
* Works if the bank statement file only contain the account number and not the full IBAN
* remove start balance and end balance (doesn't work with OFX, which is one of the most used file format !)
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account_bank_statement_import'],
'data': ['account_view.xml'],
'installable': True,
}

View File

@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# © 2015-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, api
class AccountBankStatementImport(models.TransientModel):
_inherit = 'account.bank.statement.import'
def _check_journal_bank_account(self, journal, account_number):
if account_number in journal.bank_account_id.sanitized_acc_number:
return True
return False
class AccountBankStatement(models.Model):
_inherit = 'account.bank.statement'
# When we use the import of bank statement via files,
# the start/end_balance is usually computed from the lines itself
# because we don't have the 'real' information in the file
# But, in the module account_bank_statement_import, in the method
# _create_bank_statement(), the bank statement lines already present in
# Odoo are filtered out, but the start/end balance is not adjusted,
# so the user has to manually modifiy it the close the bank statement
# I think the solution is just to remove the start/end balance system
# on the bank statement when we use the file import
# This code is present in the 'account' module, but I override it here
# and not in account_usability because the users who don't have
# account_bank_statement_import may want to keep start/end balance
@api.multi
def _balance_check(self):
return True

View File

@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2016 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!--
Let's try again to work with balance_start and balance_end_real
in v10 to see if we can work with it in v10 or not...
If we really can't, I'll re-activate this view inheritance again
<record id="view_bank_statement_form" model="ir.ui.view">
<field name="name">bank_statement_import_usability.account.bank.statement.form</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form"/>
<field name="arch" type="xml">
<field name="balance_start" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="balance_end_real" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>
-->
<record id="view_bank_statement_tree" model="ir.ui.view">
<field name="name">bank_statement_import_usability.account.bank.statement.tree</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_tree"/>
<field name="arch" type="xml">
<field name="balance_start" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="balance_end_real" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<tree position="attributes">
<attribute name="colors">blue:state=='draft';black:state=='confirm'</attribute>
</tree>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account

View File

@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Bank Statement No Reconcile Guess',
'version': '10.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': "Don't pre-select lines to reconcile in bank statements",
'description': """
Account Bank Statement No Reconcile Guess
=========================================
Here is a scenario where the "reconcile guess" feature is a problem for the accountant:
1) The accountant imports a large bank statement with 40 bank statement lines.
2) The "reconcile guess" feature will pre-select reconcile of line X with line 39 of the bank statement. But this guess is a mistake and line X should be reconciled with line 2 of the bank statement.
=> The accountant will not understand why he can't select line X to be reconciled with line 2 of the bank statement. To be able to reconcile line 2 correctif, he has to:
3) click several times on the "next page" button to reach line 39 of the bank statement and unselect line X.
4) Go back to line 2 of the bank statement and now he will be able to select line X.
This module disables the "reconcile guess" feature to avoid this problem.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account'],
'data': [],
'installable': True,
}

View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class AccountBankStatementLine(models.Model):
_inherit = 'account.bank.statement.line'
def get_reconciliation_proposition(self, excluded_ids=None):
self.ensure_one()
return self.env['account.move.line']

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_credit_control

View File

@@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Credit Control Usability module for Odoo
# Copyright (C) 2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Account Credit Control Usability',
'version': '0.1',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Small usability enhancements in account_credit_control module',
'description': """
Account Credit Control Usability
================================
The usability enhancements include:
* add phone call in the list of channels
* hide some fields
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account_credit_control', 'partner_aged_open_invoices'],
'data': ['account_credit_control_view.xml'],
'installable': False,
}

View File

@@ -0,0 +1,82 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Credit Control Usability module for Odoo
# Copyright (C) 2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, fields, api
class CreditControlPolicyLevel(models.Model):
_inherit = "credit.control.policy.level"
_rec_name = 'internal_name'
channel = fields.Selection(selection_add=[('phone', 'Phone Call')])
name = fields.Char(
string='Subject',
help="Will be displayed in the subject of the emails and in "
"the letters")
internal_name = fields.Char(string='Internal Name', required=True)
class CreditControlLine(models.Model):
_inherit = "credit.control.line"
channel = fields.Selection(selection_add=[('phone', 'Phone Call')])
note = fields.Text(string='Notes')
@api.multi
def open_aged_open_invoices_report(self):
self.ensure_one()
return self.partner_id.open_aged_open_invoices_report()
@api.multi
def go_to_partner_form(self):
self.ensure_one()
action = self.env['ir.actions.act_window'].for_xml_id(
'base', 'action_partner_customer_form')
action.update({
'view_mode': 'form,kanban,tree',
'views': False,
'res_id': self.partner_id.id,
'context': {},
})
return action
class CreditControlRun(models.Model):
_inherit = "credit.control.run"
date = fields.Date(default=fields.Date.context_today)
class ResPartner(models.Model):
_inherit = 'res.partner'
@api.one
@api.depends('credit_control_line_ids')
def _credit_control_line_count(self):
try:
self.credit_control_line_count = len(self.credit_control_line_ids)
except:
self.credit_control_line_count = 0
credit_control_line_count = fields.Integer(
compute='_credit_control_line_count',
string="# of Credit Control Lines", readonly=True)

View File

@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="credit_control_line_tree" model="ir.ui.view">
<field name="name">credit_control_usability.credit_control_line_tree</field>
<field name="model">credit.control.line</field>
<field name="inherit_id" ref="account_credit_control.credit_control_line_tree"/>
<field name="arch" type="xml">
<field name="account_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="move_line_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="mail_message_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="partner_id" position="after">
<button name="go_to_partner_form" type="object"
string="Go to Partner" icon="terp-gtk-jump-to-ltr"/>
<button name="open_aged_open_invoices_report" type="object"
string="Open Aged Open Invoices Report" icon="STOCK_ZOOM_IN"/>
</field>
</field>
</record>
<record id="credit_control_line_form" model="ir.ui.view">
<field name="name">credit_control_usability.credit_control_line_form</field>
<field name="model">credit.control.line</field>
<field name="inherit_id" ref="account_credit_control.credit_control_line_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='currency_id']/.." position="after">
<group name="note">
<field name="note"/>
</group>
</xpath>
</field>
</record>
<record id="credit_control_policy_form" model="ir.ui.view">
<field name="name">credit_control_usability.credit.control.policy.form</field>
<field name="model">credit.control.policy</field>
<field name="inherit_id" ref="account_credit_control.credit_control_policy_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='level_ids']/tree/field[@name='name']" position="before">
<field name="internal_name"/>
</xpath>
<xpath expr="//field[@name='level_ids']/form//field[@name='name']" position="replace">
<group name="level-main">
<field name="internal_name"/>
<field name="name"/>
</group>
</xpath>
</field>
</record>
<record id="credit_mangement_policy_level_form" model="ir.ui.view">
<field name="name">credit_control_usability.credit.control.policy.level.form</field>
<field name="model">credit.control.policy.level</field>
<field name="inherit_id" ref="account_credit_control.credit_mangement_policy_level_form"/>
<field name="arch" type="xml">
<field name="name" position="before">
<field name="internal_name"/>
</field>
</field>
</record>
<record id="credit_control_policy_level_tree" model="ir.ui.view">
<field name="name">credit_control_usability.credit.control.policy.level.tree</field>
<field name="model">credit.control.policy.level</field>
<field name="inherit_id" ref="account_credit_control.credit_control_policy_level_tree"/>
<field name="arch" type="xml">
<field name="name" position="before">
<field name="internal_name"/>
</field>
</field>
</record>
<record id="credit_control_line_search" model="ir.ui.view">
<field name="name">credit_control_usability.credit_control_line_search</field>
<field name="model">credit.control.line</field>
<field name="inherit_id" ref="account_credit_control.credit_control_line_search"/>
<field name="arch" type="xml">
<filter name="filter_manual" position="after">
<filter name="phone" string="Phone Call" domain="[('channel', '=', 'phone')]"/>
<filter name="letter" string="Letter" domain="[('channel', '=', 'letter')]"/>
<filter name="email" string="Email" domain="[('channel', '=', 'email')]"/>
</filter>
</field>
</record>
<record id="partner_credit_control_line_action" model="ir.actions.act_window">
<field name="name">Credit Control Lines</field>
<field name="res_model">credit.control.line</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_partner_id': active_id}</field>
</record>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">account_credit_control_usability.button.res.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//div[@name='buttons']" position="inside">
<button class="oe_inline oe_stat_button" type="action"
name="%(partner_credit_control_line_action)d"
attrs="{'invisible': [('customer', '=', False)]}"
icon="fa-gavel">
<field string="Credit Control"
name="credit_control_line_count" widget="statinfo"/>
</button>
</xpath>
</field>
</record>
<!-- rapport -->
<template id="report_credit_control_summary_document" inherit_id="account_credit_control.report_credit_control_summary_document">
<xpath expr="//span[@t-field='l.amount_due']" position="attributes">
<attribute name="t-field-options">{"widget": "monetary", "display_currency": "l.currency_id or l.company_id.currency_id"}</attribute>
</xpath>
</template>
</data>
</openerp>

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Cutoff Accrual Picking ODS',
'version': '8.0.0.1.0',
'category': 'Tools',
'license': 'AGPL-3',
'summary': 'Adds an Aeroo ODS report on cutoff accrual',
'description': """
Account Cutoff Accrual Picking ODS
==================================
This module will add an Aeroo ODS report on Accrued Revenue and Accrued Expense.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': "Akretion",
'website': 'http://www.akretion.com',
'depends': ['account_cutoff_accrual_picking', 'report_aeroo'],
'data': ['report.xml'],
'installable': False,
}

Binary file not shown.

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="account_cutoff_accrual_picking_ods" model="ir.actions.report.xml">
<field name="name">Cutoff Accrual ODS</field>
<field name="model">account.cutoff</field>
<field name="report_name">account.cutoff.accrual.picking.ods</field>
<field name="report_type">aeroo</field>
<field name="in_format">oo-ods</field>
<field name="report_rml">account_cutoff_accrual_picking_ods/cutoff_accrual.ods</field>
<field name="parser_state">default</field>
<field name="tml_source">file</field>
<field name="out_format" ref="report_aeroo.report_mimetypes_ods_ods"/>
</record>
<record id="account_cutoff_accrual_picking_ods_button" model="ir.values">
<field name="name">Cutoff Accrual ODS</field>
<field name="model">account.cutoff</field>
<field name="key2">client_print_multi</field>
<field name="value" eval="'ir.actions.report.xml,%d'%account_cutoff_accrual_picking_ods"/>
</record>
</data>
</openerp>

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Cutoff Prepaid ODS module for Odoo
# Copyright (C) 2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Account Cutoff Prepaid ODS',
'version': '8.0.0.1.0',
'category': 'Tools',
'license': 'AGPL-3',
'summary': 'Adds an Aeroo ODS report on cutoff prepaid',
'description': """
Account Cutoff Prepaid ODS
===========================
This module will add an Aeroo ODS report on Prepaid Revenue and Prepaid Expense.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': "Akretion",
'website': 'http://www.akretion.com',
'depends': ['account_cutoff_prepaid', 'report_aeroo'],
'data': ['report.xml'],
'installable': False,
}

Binary file not shown.

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="account_cutoff_prepaid_ods" model="ir.actions.report.xml">
<field name="name">Cutoff Prepaid ODS</field>
<field name="model">account.cutoff</field>
<field name="report_name">account.cutoff.prepaid.ods</field>
<field name="report_type">aeroo</field>
<field name="in_format">oo-ods</field>
<field name="report_rml">account_cutoff_prepaid_ods/cutoff_prepaid.ods</field>
<field name="parser_state">default</field>
<field name="tml_source">file</field>
<field name="out_format" ref="report_aeroo.report_mimetypes_ods_ods"/>
</record>
<record id="account_cutoff_prepaid_ods_button" model="ir.values">
<field name="name">Cutoff Prepaid ODS</field>
<field name="model">account.cutoff</field>
<field name="key2">client_print_multi</field>
<field name="value" eval="'ir.actions.report.xml,%d'%account_cutoff_prepaid_ods"/>
</record>
</data>
</openerp>

View File

@@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Account Direct Debit Autogenerate module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import account_invoice

View File

@@ -0,0 +1,47 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Account Direct Debit Autogenerate module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Account Direct Debit Autogenerate',
'version': '0.1',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Auto-generate direct debit order on invoice validation',
'description': """
Account Direct Debit Autogenerate
=================================
With this module, when you validate a customer invoice whose payment mode is SEPA Direct Debit :
* if a draft Direct Debit order for SEPA Direct Debit already exists, a new payment line is added to it for the invoice,
* otherwise, a new SEPA Direct Debit order is created for this invoice.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account_banking_sepa_direct_debit', 'account_payment_partner'],
'data': [],
'installable': False,
}

View File

@@ -0,0 +1,107 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Account Direct Debit Autogenerate module for Odoo
# Copyright (C) 2015 Akretion (www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, api, _
from openerp.exceptions import Warning
import logging
logger = logging.getLogger(__name__)
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@api.model
def _prepare_payment_order(self, invoice):
vals = {
'mode': invoice.payment_mode_id.id,
'payment_order_type': 'debit',
}
return vals
@api.model
def _prepare_payment_line(self, move_line, payment_order):
assert move_line.invoice, 'The move line must be linked to an invoice'
if not move_line.invoice.mandate_id:
raise Warning(
_('Missing Mandate on Invoice %s') % move_line.invoice.number)
vals = {
'order_id': payment_order.id,
'move_line_id': move_line.id,
'partner_id': move_line.partner_id.id,
'amount_currency': move_line.debit,
'communication': move_line.invoice.number.replace('/', ''),
'state': 'structured',
'date': move_line.date_maturity,
'currency': move_line.invoice.currency_id.id,
'mandate_id': move_line.invoice.mandate_id.id,
'bank_id': move_line.invoice.mandate_id.partner_bank_id.id,
}
return vals
@api.multi
def invoice_validate(self):
'''Create Direct debit payment order on invoice validation or update
an existing draft Direct Debit pay order'''
res = super(AccountInvoice, self).invoice_validate()
poo = self.env['payment.order']
plo = self.env['payment.line']
for invoice in self:
if (
invoice.type == 'out_invoice'
and invoice.payment_mode_id
and invoice.payment_mode_id.type
and invoice.payment_mode_id.type.code
and invoice.payment_mode_id.type.code.
startswith('pain.008.001.')):
payorders = poo.search([
('state', '=', 'draft'),
('payment_order_type', '=', 'debit'),
('mode', '=', invoice.payment_mode_id.id),
# mode is attached to company
])
if payorders:
payorder = payorders[0]
payorder_type = _('existing')
else:
payorder_vals = self._prepare_payment_order(invoice)
payorder = poo.create(payorder_vals)
payorder_type = _('new')
logger.info(
'New Direct Debit Order created %s'
% payorder.reference)
move_lines = [
line for line in invoice.move_id.line_id
if line.account_id == invoice.account_id]
for move_line in move_lines:
if not invoice.mandate_id:
raise Warning(
_("Missing Mandate on invoice %s")
% invoice.number)
# add payment line
pl_vals = self._prepare_payment_line(move_line, payorder)
pl = plo.create(pl_vals)
invoice.message_post(
_("A new payment line %s has been automatically "
"created on the %s direct debit order %s")
% (pl.name, payorder_type, payorder.reference))
return res

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_fiscal_position

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# © 2016-2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Fiscal Position Payable Receivable',
'version': '10.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Configure payable/receivable accounts on fiscal positions',
'description': """
Account Fiscal Position Payable Receivable
==========================================
This module allows to configure a special *Partner Receivable Account* and a special *Partner Payable Account* on fiscal positions. This is used in the onchange of the fiscal position of partners.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': "Akretion",
'website': 'http://www.akretion.com',
'depends': ['account'],
'data': [
'account_fiscal_position_view.xml',
],
'installable': True,
}

View File

@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# © 2016-2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api
class AccountFiscalPosition(models.Model):
_inherit = 'account.fiscal.position'
receivable_account_id = fields.Many2one(
'account.account', string='Partner Receivable Account',
company_dependent=True, domain=[('internal_type', '=', 'receivable')])
payable_account_id = fields.Many2one(
'account.account', string='Partner Payable Account',
company_dependent=True, domain=[('internal_type', '=', 'payable')])
class ResPartner(models.Model):
_inherit = 'res.partner'
@api.onchange('property_account_position_id')
def fiscal_position_receivable_payable_change(self):
fp = self.property_account_position_id
ipo = self.env['ir.property']
if fp.receivable_account_id:
self.property_account_receivable_id = fp.receivable_account_id
else:
self.property_account_receivable_id = ipo.get(
'property_account_receivable_id', 'res.partner')
if fp.payable_account_id:
self.property_account_payable_id = fp.payable_account_id
else:
self.property_account_payable_id = ipo.get(
'property_account_payable_id', 'res.partner')

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_account_position_form" model="ir.ui.view">
<field name="name">receivable_payable.fiscal_position_form</field>
<field name="model">account.fiscal.position</field>
<field name="inherit_id" ref="account.view_account_position_form" />
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="receivable_account_id"/>
<field name="payable_account_id"/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_invoice

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# © 2015-2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
{
'name': 'Account Invoice Margin',
'version': '10.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Copy standard price on invoice line and compute margins',
'description': """
This module copies the field *standard_price* of the product on the invoice line when the invoice line is created. The allows the computation of the margin of the invoice.
This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account'],
'data': [
'account_invoice_view.xml',
],
'installable': True,
}

View File

@@ -0,0 +1,149 @@
# -*- coding: utf-8 -*-
# © 2015-2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api
import odoo.addons.decimal_precision as dp
class AccountInvoiceLine(models.Model):
_inherit = 'account.invoice.line'
standard_price_company_currency = fields.Float(
string='Cost Price in Company Currency', readonly=True,
digits=dp.get_precision('Product Price'),
help="Cost price in company currency in the unit of measure "
"of the invoice line (which may be different from the unit "
"of measure of the product).")
standard_price_invoice_currency = fields.Float(
string='Cost Price in Invoice Currency', readonly=True,
compute='_compute_margin', store=True,
digits=dp.get_precision('Product Price'),
help="Cost price in invoice currency in the unit of measure "
"of the invoice line")
margin_invoice_currency = fields.Monetary(
string='Margin in Invoice Currency', readonly=True, store=True,
compute='_compute_margin', currency_field='currency_id')
margin_company_currency = fields.Monetary(
string='Margin in Company Currency', readonly=True, store=True,
compute='_compute_margin', currency_field='company_currency_id')
margin_rate = fields.Float(
string="Margin Rate", readonly=True, store=True,
compute='_compute_margin',
digits=(16, 2), help="Margin rate in percentage of the sale price")
@api.depends(
'standard_price_company_currency', 'invoice_id.currency_id',
'invoice_id.type', 'invoice_id.company_id',
'invoice_id.date_invoice', 'quantity', 'price_subtotal')
def _compute_margin(self):
for il in self:
standard_price_inv_cur = 0.0
margin_inv_cur = 0.0
margin_comp_cur = 0.0
margin_rate = 0.0
inv = il.invoice_id
if inv and inv.type in ('out_invoice', 'out_refund'):
# it works in _get_current_rate
# even if we set date = False in context
# standard_price_inv_cur is in the UoM of the invoice line
standard_price_inv_cur =\
inv.company_id.currency_id.with_context(
date=inv.date_invoice).compute(
il.standard_price_company_currency,
inv.currency_id)
margin_inv_cur =\
il.price_subtotal - il.quantity * standard_price_inv_cur
margin_comp_cur = inv.currency_id.with_context(
date=inv.date_invoice).compute(
margin_inv_cur, inv.company_id.currency_id)
if il.price_subtotal:
margin_rate = 100 * margin_inv_cur / il.price_subtotal
# for a refund, margin should be negative
# but margin rate should stay positive
if inv.type == 'out_refund':
margin_inv_cur *= -1
margin_comp_cur *= -1
il.standard_price_invoice_currency = standard_price_inv_cur
il.margin_invoice_currency = margin_inv_cur
il.margin_company_currency = margin_comp_cur
il.margin_rate = margin_rate
# We want to copy standard_price on invoice line for customer
# invoice/refunds. We can't do that via on_change of product_id,
# because it is not always played when invoice is created from code
# => we inherit write/create
# We write standard_price_company_currency even on supplier invoice/refunds
# because we don't have access to the 'type' of the invoice
@api.model
def create(self, vals):
if vals.get('product_id'):
pp = self.env['product.product'].browse(vals['product_id'])
std_price = pp.standard_price
inv_uom_id = vals.get('uom_id')
if inv_uom_id and inv_uom_id != pp.uom_id.id:
std_price = self.env['product.uom']._compute_price(
pp.uom_id.id, std_price, inv_uom_id)
vals['standard_price_company_currency'] = std_price
return super(AccountInvoiceLine, self).create(vals)
@api.multi
def write(self, vals):
if not vals:
vals = {}
if 'product_id' in vals or 'uom_id' in vals:
for il in self:
if 'product_id' in vals:
if vals.get('product_id'):
pp = self.env['product.product'].browse(
vals['product_id'])
else:
pp = False
else:
pp = il.product_id or False
# uom_id is NOT a required field
if 'uom_id' in vals:
if vals.get('uom_id'):
inv_uom = self.env['product.uom'].browse(
vals['uom_id'])
else:
inv_uom = False
else:
inv_uom = il.uom_id or False
std_price = 0.0
if pp:
std_price = pp.standard_price
if inv_uom and inv_uom != pp.uom_id:
std_price = pp.uom_id._compute_price(
std_price, inv_uom)
il.write({'standard_price_company_currency': std_price})
return super(AccountInvoiceLine, self).write(vals)
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
margin_invoice_currency = fields.Monetary(
string='Margin in Invoice Currency',
readonly=True, compute='_compute_margin', store=True,
currency_field='currency_id')
margin_company_currency = fields.Monetary(
string='Margin in Company Currency',
readonly=True, compute='_compute_margin', store=True,
currency_field='company_currency_id')
@api.depends(
'type',
'invoice_line_ids.margin_invoice_currency',
'invoice_line_ids.margin_company_currency')
def _compute_margin(self):
for inv in self:
margin_inv_cur = 0.0
margin_comp_cur = 0.0
if inv.type in ('out_invoice', 'out_refund'):
for il in inv.invoice_line_ids:
margin_inv_cur += il.margin_invoice_currency
margin_comp_cur += il.margin_company_currency
inv.margin_invoice_currency = margin_inv_cur
inv.margin_company_currency = margin_comp_cur

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2015-2017 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_invoice_line_form" model="ir.ui.view">
<field name="name">margin.account.invoice.line.form</field>
<field name="model">account.invoice.line</field>
<field name="inherit_id" ref="account.view_invoice_line_form"/>
<field name="arch" type="xml">
<field name="discount" position="after">
<field name="standard_price_company_currency"
groups="account.group_account_user"/>
<field name="standard_price_invoice_currency"
widget="monetary"
options="{'currency_field': 'currency_id'}"
groups="account.group_account_user"/>
<field name="margin_invoice_currency"
groups="account.group_account_user"/>
<field name="margin_company_currency"
groups="account.group_account_user"/>
</field>
</field>
</record>
<record id="invoice_form" model="ir.ui.view">
<field name="name">margin.account.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="move_id" position="after">
<field name="margin_invoice_currency"
string="Margin" groups="account.group_account_user"/>
<field name="margin_company_currency"
groups="account.group_account_user"/>
</field>
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='price_subtotal']" position="after">
<field name="standard_price_invoice_currency" groups="base.group_no_one" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="standard_price_company_currency" groups="base.group_no_one" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
<field name="margin_invoice_currency" groups="base.group_no_one"/>
<field name="margin_company_currency" groups="base.group_no_one"/>
<field name="margin_rate" groups="base.group_no_one"/>
<field name="company_currency_id" invisible="1"/>
</xpath>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import report

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Invoice Margin Report module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Account Invoice Margin Report',
'version': '0.1',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Add margin measure in Invoices Analysis',
'description': """
This module adds the measure *Margin* in the Invoices Analysis pivot table. It is in a separate module because it depends on the module *bi_invoice_company_currency* (in which I re-wrote the Invoice Analysis pivot table).
This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account_invoice_margin', 'bi_invoice_company_currency'],
'data': [],
'installable': False,
}

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import invoice_report

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Invoice Margin Report module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com/)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, fields
import openerp.addons.decimal_precision as dp
class AccountInvoiceReportBi(models.Model):
_inherit = "account.invoice.report.bi"
margin_company_currency = fields.Float(
string='Margin', readonly=True,
digits=dp.get_precision('Account'))
def _select(self):
select = super(AccountInvoiceReportBi, self)._select()
select += """
, sum(ail.margin_company_currency) AS margin_company_currency
"""
return select

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'partner_address_street3 / account_invoice_transmit_method compat.',
'version': '10.0.0.1.0',
'category': 'Partner',
'license': 'AGPL-3',
'summary': 'Compatibility between partner_address_street3 and account_invoice_transmit_method',
'description': """
Glue module between partner_address_street3 and account_invoice_transmit_method
===============================================================================
Stupid technical module to workaround an Odoo framework limitation about the inherit of the context attribute in a view.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['partner_address_street3', 'account_invoice_transmit_method'],
'data': [
'partner_view.xml',
],
'installable': True,
'auto_install': True,
}

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">Compatibility partner_address_street3 / account_invoice_transmit_method</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority">1000</field>
<field name="arch" type="xml">
<field name="child_ids" position="attributes">
<attribute name="context">{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer, 'default_lang': lang, 'default_customer_invoice_transmit_method_code': customer_invoice_transmit_method_code, 'default_supplier_invoice_transmit_method_code': supplier_invoice_transmit_method_code, 'default_street3': street3}</attribute>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1 @@
from . import wizard

View File

@@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# Copyright 2018 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Invoice Update Wizard',
'version': '8.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Wizard to update non-legal fields of an open/paid invoice',
'description': """
Account Invoice Update Wizard
=============================
This module adds a button *Update Invoice* on Customer and Supplier invoices in Open or Paid state. This button starts a wizard which allows the user to update non-legal fields of the invoice:
* Source Document
* Reference/Description
* Payment terms (update allowed only to a payment term with same number of terms of the same amount and on invoices without any payment)
* Bank Account
* Salesman
* Notes
* Description of invoice lines
* Analytic account
* Analytic tags
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account'],
'data': [
'wizard/account_invoice_update_view.xml',
'views/account_invoice.xml',
],
'installable': True,
}

View File

@@ -0,0 +1 @@
from . import test_account_invoice_update_wizard

View File

@@ -0,0 +1,198 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
from odoo.exceptions import UserError
class TestAccountInvoiceUpdateWizard(TransactionCase):
def setUp(self):
super(TestAccountInvoiceUpdateWizard, self).setUp()
self.customer12 = self.env.ref('base.res_partner_12')
self.product16 = self.env.ref('product.product_product_16')
self.product24 = self.env.ref('product.product_product_24')
uom_unit = self.env.ref('product.product_uom_categ_unit')
self.invoice1 = self.env['account.invoice'].create({
'name': 'Test invoice',
'partner_id': self.customer12.id,
})
self.inv_line1 = self.env['account.invoice.line'].create({
'invoice_id': self.invoice1.id,
'name': "Line1",
'product_id': self.product16.id,
'product_uom_id': uom_unit.id,
'account_id': self.invoice1.account_id.id,
'price_unit': 42.0,
})
self.inv_line2 = self.env['account.invoice.line'].create({
'invoice_id': self.invoice1.id,
'name': "Line2",
'product_id': self.product24.id,
'product_uom_id': uom_unit.id,
'account_id': self.invoice1.account_id.id,
'price_unit': 1111.1,
})
self.aa1 = self.env.ref('analytic.analytic_partners_camp_to_camp')
self.aa2 = self.env.ref('analytic.analytic_nebula')
self.atag1 = self.env.ref('analytic.tag_contract')
self.atag2 = self.env['account.analytic.tag'].create({
'name': u'',
})
def create_wizard(self):
UpdateWizard = self.env['account.invoice.update'].with_context(
active_model='account.invoice',
active_id=self.invoice1.id)
self.wiz = UpdateWizard.create({})
def test_add_analytic_account_line1(self):
""" Add analytic account on an invoice line
after the invoice has been approved.
This will:
- update the move line
- create a new analytic line.
"""
self.invoice1.action_invoice_open()
self.create_wizard()
wiz_line = self.wiz.line_ids.filtered(
lambda rec: rec.invoice_line_id == self.inv_line1)
wiz_line.account_analytic_id = self.aa1
self.wiz.run()
related_ml = self.invoice1.move_id.line_ids.filtered(
lambda rec: rec.product_id == self.product16)
self.assertEqual(related_ml.analytic_account_id, self.aa1)
self.assertEqual(related_ml.analytic_line_ids.account_id, self.aa1)
def test_change_analytic_account_line1(self):
""" Change analytic account on an invoice line
after the invoice has been approved.
This will:
- update the move line
- update the existing analytic line."""
self.inv_line1.account_analytic_id = self.aa2
self.invoice1.action_invoice_open()
self.create_wizard()
wiz_line = self.wiz.line_ids.filtered(
lambda rec: rec.invoice_line_id == self.inv_line1)
wiz_line.account_analytic_id = self.aa1
self.wiz.run()
related_ml = self.invoice1.move_id.line_ids.filtered(
lambda rec: rec.product_id == self.product16)
self.assertEqual(related_ml.analytic_account_id, self.aa1)
self.assertEqual(related_ml.analytic_line_ids.account_id, self.aa1)
def test_error_grouped_move_lines(self):
""" Change analytic account on an invoice line
after the invoice has been approved where both
lines were grouped in the same move line.
This will raise an error.
"""
self.invoice1.journal_id.group_invoice_lines = True
self.inv_line2.product_id = self.product16
self.inv_line2.unit_price = 42.0
self.invoice1.action_invoice_open()
self.create_wizard()
line1 = self.wiz.line_ids[0]
line1.account_analytic_id = self.aa1
with self.assertRaises(UserError):
self.wiz.run()
def test_add_analytic_tags_line1(self):
""" Add analytic tags on an invoice line
after the invoice has been approved.
This will update move line.
"""
self.invoice1.action_invoice_open()
self.create_wizard()
wiz_line = self.wiz.line_ids.filtered(
lambda rec: rec.invoice_line_id == self.inv_line1)
wiz_line.analytic_tag_ids = self.atag2
self.wiz.run()
related_ml = self.invoice1.move_id.line_ids.filtered(
lambda rec: rec.product_id == self.product16)
self.assertEqual(related_ml.analytic_tag_ids, self.atag2)
self.assertFalse(related_ml.analytic_line_ids)
def test_change_analytic_tags_line1(self):
""" Change analytic tags on an invoice line
after the invoice has been approved.
It will update move line and analytic line
"""
self.inv_line1.account_analytic_id = self.aa2
self.inv_line1.analytic_tag_ids = self.atag1
self.invoice1.action_invoice_open()
self.create_wizard()
wiz_line = self.wiz.line_ids.filtered(
lambda rec: rec.invoice_line_id == self.inv_line1)
wiz_line.analytic_tag_ids = self.atag2
self.wiz.run()
related_ml = self.invoice1.move_id.line_ids.filtered(
lambda rec: rec.product_id == self.product16)
self.assertEqual(related_ml.analytic_tag_ids, self.atag2)
self.assertEqual(related_ml.analytic_line_ids.tag_ids, self.atag2)
def test_add_analytic_info_line1(self):
""" Add analytic account and tags on an invoice line
after the invoice has been approved.
This will:
- update move line
- create an analytic line
"""
self.invoice1.action_invoice_open()
self.create_wizard()
wiz_line = self.wiz.line_ids.filtered(
lambda rec: rec.invoice_line_id == self.inv_line1)
wiz_line.account_analytic_id = self.aa1
wiz_line.analytic_tag_ids = self.atag2
self.wiz.run()
related_ml = self.invoice1.move_id.line_ids.filtered(
lambda rec: rec.product_id == self.product16)
self.assertEqual(related_ml.analytic_account_id, self.aa1)
self.assertEqual(related_ml.analytic_tag_ids, self.atag2)
self.assertEqual(related_ml.analytic_line_ids.account_id, self.aa1)
self.assertEqual(related_ml.analytic_line_ids.tag_ids, self.atag2)
def test_empty_analytic_account_line1(self):
""" Remove analytic account
after the invoice has been approved.
This will raise an error as it is not implemented.
"""
self.inv_line1.account_analytic_id = self.aa2
self.invoice1.action_invoice_open()
self.create_wizard()
wiz_line = self.wiz.line_ids.filtered(
lambda rec: rec.invoice_line_id == self.inv_line1)
wiz_line.account_analytic_id = False
self.wiz.run()
related_ml = self.invoice1.move_id.line_ids.filtered(
lambda rec: rec.product_id == self.product16)
self.assertFalse(related_ml.analytic_account_id)
self.assertFalse(related_ml.analytic_line_ids)

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="invoice_supplier_form" model="ir.ui.view">
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<button name="action_invoice_cancel" position="before">
<button name="%(account_invoice_update_action)d" type="action" string="Update Invoice" states="open,paid" groups="account.group_account_invoice"/>
</button>
</field>
</record>
<record id="invoice_form" model="ir.ui.view">
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<button name="action_invoice_cancel" position="before">
<button name="%(account_invoice_update_action)d" type="action" string="Update Invoice" states="open,paid" groups="account.group_account_invoice"/>
</button>
</field>
</record>
</odoo>

View File

@@ -0,0 +1 @@
from . import account_invoice_update

View File

@@ -0,0 +1,308 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# Copyright 2018 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api, _
from odoo.exceptions import UserError
import odoo.addons.decimal_precision as dp
class AccountInvoiceUpdate(models.TransientModel):
_name = 'account.invoice.update'
_description = 'Wizard to update non-legal fields of invoice'
invoice_id = fields.Many2one(
'account.invoice', string='Invoice', required=True,
readonly=True)
type = fields.Selection(related='invoice_id.type', readonly=True)
company_id = fields.Many2one(
related='invoice_id.company_id', readonly=True)
partner_id = fields.Many2one(
related='invoice_id.partner_id', readonly=True)
user_id = fields.Many2one('res.users', string='Salesperson')
payment_term_id = fields.Many2one(
'account.payment.term', string='Payment Term')
reference = fields.Char(string='Invoice Reference')
name = fields.Char(string='Reference/Description')
origin = fields.Char(string='Source Document')
comment = fields.Text('Additional Information')
partner_bank_id = fields.Many2one(
'res.partner.bank', string='Bank Account')
line_ids = fields.One2many(
'account.invoice.line.update', 'parent_id', string='Invoice Lines')
@api.model
def _simple_fields2update(self):
'''List boolean, date, datetime, char, text fields'''
return ['reference', 'name', 'origin', 'comment']
@api.model
def _m2o_fields2update(self):
return ['payment_term_id', 'user_id', 'partner_bank_id']
@api.model
def _prepare_default_get(self, invoice):
res = {'invoice_id': invoice.id, 'line_ids': []}
for sfield in self._simple_fields2update():
res[sfield] = invoice[sfield]
for m2ofield in self._m2o_fields2update():
res[m2ofield] = invoice[m2ofield].id or False
for line in invoice.invoice_line_ids:
aa_tags = line.analytic_tag_ids
aa_tags = [(6, 0, aa_tags.ids)] if aa_tags else False
res['line_ids'].append([0, 0, {
'invoice_line_id': line.id,
'name': line.name,
'quantity': line.quantity,
'price_subtotal': line.price_subtotal,
'account_analytic_id': line.account_analytic_id.id,
'analytic_tag_ids': aa_tags,
}])
return res
@api.model
def default_get(self, fields_list):
res = super(AccountInvoiceUpdate, self).default_get(fields_list)
assert self._context.get('active_model') == 'account.invoice',\
'active_model should be account.invoice'
inv = self.env['account.invoice'].browse(self._context['active_id'])
res = self._prepare_default_get(inv)
return res
@api.onchange('type')
def type_on_change(self):
res = {'domain': {}}
if self.type in ('out_invoice', 'out_refund'):
res['domain']['partner_bank_id'] =\
"[('partner_id.ref_company_ids', 'in', [company_id])]"
else:
res['domain']['partner_bank_id'] =\
"[('partner_id', '=', partner_id)]"
return res
@api.multi
def _prepare_invoice(self):
vals = {}
inv = self.invoice_id
for sfield in self._simple_fields2update():
if self[sfield] != inv[sfield]:
vals[sfield] = self[sfield]
for m2ofield in self._m2o_fields2update():
if self[m2ofield] != inv[m2ofield]:
vals[m2ofield] = self[m2ofield].id or False
if 'payment_term_id' in vals:
pterm_list = self.payment_term_id.compute(
value=1, date_ref=inv.date_invoice)[0]
if pterm_list:
vals['date_due'] = max(line[0] for line in pterm_list)
return vals
@api.model
def _line_simple_fields2update(self):
return ["name",]
@api.model
def _line_m2o_fields2update(self):
return ["account_analytic_id",]
@api.model
def _line_m2m_fields2update(self):
return ["analytic_tag_ids",]
@api.model
def _prepare_invoice_line(self, line):
vals = {}
for field in self._line_simple_fields2update():
if line[field] != line.invoice_line_id[field]:
vals[field] = line[field]
for field in self._line_m2o_fields2update():
if line[field] != line.invoice_line_id[field]:
vals[field] = line[field].id
for field in self._line_m2m_fields2update():
if line[field] != line.invoice_line_id[field]:
vals[field] = [(6, 0, line[field].ids)]
return vals
@api.multi
def _prepare_move(self):
mvals = {}
inv = self.invoice_id
ini_ref = inv.move_id.ref
ref = inv.reference or inv.name
if ini_ref != ref:
mvals['ref'] = ref
return mvals
@api.multi
def _get_matching_inv_line(self, move_line):
""" Find matching invoice line by product """
# TODO make it accept more case as lines won't
# be grouped unless journal.group_invoice_line is True
inv_line = self.invoice_id.invoice_line_ids.filtered(
lambda rec: rec.product_id == move_line.product_id)
if len(inv_line) <> 1:
raise UserError(
"Cannot match a single invoice line to move line %s" %
move_line.name)
return inv_line
@api.multi
def _prepare_move_line(self, inv_line):
mlvals = {}
inv_line_upd = self.line_ids.filtered(
lambda rec: rec.invoice_line_id == inv_line)
ini_aa = inv_line.account_analytic_id
new_aa = inv_line_upd.account_analytic_id
if ini_aa != new_aa:
mlvals['analytic_account_id'] = new_aa.id
ini_aa_tags = inv_line.analytic_tag_ids
new_aa_tags = inv_line_upd.analytic_tag_ids
if ini_aa_tags != new_aa_tags:
mlvals['analytic_tag_ids'] = [(6, None, new_aa_tags.ids)]
return mlvals
@api.multi
def _prepare_analytic_line(self, inv_line):
alvals = {}
inv_line_upd = self.line_ids.filtered(
lambda rec: rec.invoice_line_id == inv_line)
ini_aa = inv_line.account_analytic_id
new_aa = inv_line_upd.account_analytic_id
if ini_aa != new_aa:
alvals['account_id'] = new_aa.id
ini_aa_tags = inv_line.analytic_tag_ids
new_aa_tags = inv_line_upd.analytic_tag_ids
if ini_aa_tags != new_aa_tags:
alvals['tag_ids'] = [(6, None, new_aa_tags.ids)]
return alvals
@api.multi
def _update_payment_term_move(self):
self.ensure_one()
inv = self.invoice_id
if (
self.payment_term_id and
self.payment_term_id != inv.payment_term_id and
inv.move_id):
# I don't update pay term when the invoice is partially (or fully)
# paid because if you have a payment term with several lines
# of the same amount, you would also have to take into account
# the reconcile marks to put the new maturity date on the right
# lines
if inv.payment_ids:
raise UserError(_(
"This wizard doesn't support the update of payment "
"terms on an invoice which is partially or fully "
"paid."))
prec = self.env['decimal.precision'].precision_get('Account')
term_res = self.payment_term_id.compute(
inv.amount_total, inv.date_invoice)[0]
new_pterm = {} # key = int(amount * 100), value = [date1, date2]
for entry in term_res:
amount = int(entry[1] * 10 * prec)
if amount in new_pterm:
new_pterm[amount].append(entry[0])
else:
new_pterm[amount] = [entry[0]]
mlines = {} # key = int(amount * 100), value : [line1, line2]
for line in inv.move_id.line_ids:
if line.account_id == inv.account_id:
amount = int(abs(line.credit - line.debit) * 10 * prec)
if amount in mlines:
mlines[amount].append(line)
else:
mlines[amount] = [line]
for iamount, lines in mlines.iteritems():
if len(lines) != len(new_pterm.get(iamount, [])):
raise UserError(_(
"The original payment term '%s' doesn't have the "
"same terms (number of terms and/or amount) as the "
"new payment term '%s'. You can only switch to a "
"payment term that has the same number of terms "
"with the same amount.") % (
inv.payment_term_id.name, self.payment_term_id.name))
for line in lines:
line.date_maturity = new_pterm[iamount].pop()
@api.multi
def run(self):
self.ensure_one()
inv = self.invoice_id
updated = False
# re-write date_maturity on move line
self._update_payment_term_move()
ivals = self._prepare_invoice()
if ivals:
updated = True
inv.write(ivals)
if inv.move_id:
mvals = self._prepare_move()
if mvals:
inv.move_id.write(mvals)
for ml in inv.move_id.line_ids.filtered(
# we are only interested in invoice lines, not tax lines
lambda rec: bool(rec.product_id)
):
if ml.credit == 0.0:
continue
inv_line = self._get_matching_inv_line(ml)
mlvals = self._prepare_move_line(inv_line)
if mlvals:
updated = True
ml.write(mlvals)
aalines = ml.analytic_line_ids
alvals = self._prepare_analytic_line(inv_line)
if aalines and alvals:
updated = True
if ('account_id' in alvals and
alvals['account_id'] is False):
former_aa = inv_line.account_analytic_id
to_remove_aalines = aalines.filtered(
lambda rec: rec.account_id == former_aa)
# remove existing analytic line
to_remove_aalines.unlink()
else:
aalines.write(alvals)
elif 'account_id' in alvals:
# Create analytic lines if analytic account
# is added later
ml.create_analytic_lines()
for line in self.line_ids:
ilvals = self._prepare_invoice_line(line)
if ilvals:
updated = True
line.invoice_line_id.write(ilvals)
if updated:
inv.message_post(_(
'Non-legal fields of invoice updated via the Invoice Update '
'wizard.'))
return True
class AccountInvoiceLineUpdate(models.TransientModel):
_name = 'account.invoice.line.update'
_description = 'Update non-legal fields of invoice lines'
parent_id = fields.Many2one(
'account.invoice.update', string='Wizard', ondelete='cascade')
invoice_line_id = fields.Many2one(
'account.invoice.line', string='Invoice Line', readonly=True)
name = fields.Text(string='Description', required=True)
quantity = fields.Float(
string='Quantity', digits=dp.get_precision('Product Unit of Measure'),
readonly=True)
price_subtotal = fields.Float(
string='Amount', readonly=True, digits=dp.get_precision('Account'))
account_analytic_id = fields.Many2one(
'account.analytic.account', string='Analytic Account')
analytic_tag_ids = fields.Many2many(
'account.analytic.tag', string='Analytic Tags')

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="account_invoice_update_form" model="ir.ui.view">
<field name="model">account.invoice.update</field>
<field name="arch" type="xml">
<form string="Update Invoice Wizard">
<group name="main">
<field name="invoice_id" invisible="1"/>
<field name="type" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="partner_id" invisible="1"/>
<field name="reference" attrs="{'invisible': [('type', 'not in', ('in_invoice', 'in_refund'))]}"/>
<field name="origin"/>
<field name="name"/>
<field name="payment_term_id" widget="selection"/>
<field name="partner_bank_id"/>
<field name="user_id"/>
<field name="comment"/>
</group>
<group name="lines">
<field name="line_ids" nolabel="1">
<tree editable="bottom">
<field name="invoice_line_id" invisible="1"/>
<field name="name"/>
<field name="quantity"/>
<field name="price_subtotal"/>
<field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
<field name="analytic_tag_ids" groups="analytic.group_analytic_accounting" widget="many2many_tags"/>
</tree>
</field>
</group>
<footer>
<button name="run" type="object" class="oe_highlight" string="Update"/>
<button special="cancel" string="Cancel" class="oe_link"/>
</footer>
</form>
</field>
</record>
<record id="account_invoice_update_action" model="ir.actions.act_window">
<field name="name">Invoice Update Wizard</field>
<field name="res_model">account.invoice.update</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import wizard

View File

@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2016-2018 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Move Line Filter Wizard',
'version': '10.0.1.0.0',
'category': 'Accounting',
'license': 'AGPL-3',
'summary': 'Easy and fast access to the details of an account',
'description': """
Account Move Line Filter Wizard
===============================
This module adds a wizard in Accounting > ... >
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account_usability'],
'data': ['wizard/account_move_line_filter_view.xml'],
'installable': True,
}

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_move_line_filter

View File

@@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2018 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api
class AccountMoveLineFilterWizard(models.TransientModel):
_name = 'account.move.line.filter.wizard'
_description = 'Wizard for easy and fast access to account move lines'
partner_id = fields.Many2one(
'res.partner', string='Partner', domain=[('parent_id', '=', False)])
account_id = fields.Many2one(
'account.account', string='Account',
domain=[('deprecated', '=', False)], required=True)
account_reconcile = fields.Boolean(
related='account_id.reconcile', readonly=True)
reconcile = fields.Selection([
('unreconciled', 'Unreconciled'),
('reconciled', 'Fully Reconciled'),
# ('partial_reconciled', 'Partially Reconciled'),
], string='Reconciliation Filter')
@api.onchange('partner_id')
def partner_id_change(self):
if self.partner_id:
if self.partner_id.customer:
self.account_id =\
self.partner_id.property_account_receivable_id.id
else:
self.account_id =\
self.partner_id.property_account_payable_id.id
def go(self):
self.ensure_one()
action = self.env['ir.actions.act_window'].for_xml_id(
'account', 'action_account_moves_all_a')
action['context'] = {'search_default_account_id': [self.account_id.id]}
if self.partner_id:
action['context']['search_default_partner_id'] =\
[self.partner_id.id]
if self.reconcile:
action['context']['search_default_%s' % self.reconcile] = True
return action

View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016-2018 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="account_move_line_filter_wizard_form" model="ir.ui.view">
<field name="name">account_move_line_filter_wizard_form</field>
<field name="model">account.move.line.filter.wizard</field>
<field name="arch" type="xml">
<form string="Account Move Lines">
<group name="filters" string="Filters">
<field name="partner_id"/>
<field name="account_id"/>
<field name="account_reconcile" invisible="1"/>
<field name="reconcile"
attrs="{'invisible': [('account_reconcile', '!=', True)]}"/>
</group>
<footer>
<button type="object" name="go" string="Go" class="btn-primary"/>
<button special="cancel" string="Cancel" class="btn-default"/>
</footer>
</form>
</field>
</record>
<record id="account_move_line_filter_wizard_action" model="ir.actions.act_window">
<field name="name">Journal Items of Account</field>
<field name="res_model">account.move.line.filter.wizard</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem id="account_move_line_filter_wizard_menu"
action="account_move_line_filter_wizard_action"
parent="account.menu_finance_entries"
sequence="-1"/>
</odoo>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_move_line

View File

@@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Move Line Start End Dates XLS module for Odoo
# Copyright (C) 2014-2016 Akretion (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Account Move Line Start End Dates XLS',
'version': '0.1',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Adds start and end dates in the XLS export of the move lines',
'description': """
Account Move Line Start End Dates XLS
=====================================
This module adds *Start Date* and *End Date* in the XLS export of the account move lines.
This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com/',
'depends': ['account_cutoff_prepaid', 'account_move_line_report_xls'],
'data': [],
'installable': False,
}

View File

@@ -0,0 +1,66 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Move Line Start End Dates XLS module for Odoo
# Copyright (C) 2014-2016 Akretion (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import xlwt
from openerp import models, api
from openerp.addons.report_xls.utils import _render
from openerp.addons.report_xls.report_xls import report_xls
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
@api.model
def _report_xls_fields(self):
res = super(AccountMoveLine, self)._report_xls_fields()
return res + ['start_date', 'end_date']
@api.model
def _report_xls_template(self):
res = super(AccountMoveLine, self)._report_xls_template()
bc = '22'
aml_cell_style_date = xlwt.easyxf(
'borders: left thin, right thin, top thin, bottom thin, '
'left_colour %s, right_colour %s, top_colour %s, '
'bottom_colour %s; align: horz left;'
% (bc, bc, bc, bc), num_format_str=report_xls.date_format)
res.update({
'start_date': {
'header': [1, 13, 'text', _render("_('Start Date')")],
'lines': [1, 0, _render(
"line.start_date and line.start_date != 'False' and "
"'date' or 'text'"), _render(
"line.start_date and line.start_date != 'False' and "
"datetime.strptime(line.start_date, '%Y-%m-%d') or None"),
None, aml_cell_style_date],
'totals': [1, 0, 'text', None]},
'end_date': {
'header': [1, 13, 'text', _render("_('End Date')")],
'lines': [1, 0, _render(
"line.end_date and line.end_date != 'False' and "
"'date' or 'text'"), _render(
"line.end_date and line.end_date != 'False' and "
"datetime.strptime(line.end_date, '%Y-%m-%d') or None"),
None, aml_cell_style_date],
'totals': [1, 0, 'text', None]},
})
return res

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account No Analytic Tags',
'version': '10.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'No Analytic Tags in Accounting',
'description': """
Account No Analytic Tags
========================
This module hides analytic tags on invoices and move lines.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['account'],
'data': ['account_view.xml'],
'installable': True,
}

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2017 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- INVOICE -->
<record id="invoice_supplier_form" model="ir.ui.view">
<field name="name">account_no_analytic_tags.supplier.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='analytic_tag_ids']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
<record id="invoice_form" model="ir.ui.view">
<field name="name">account_no_analytic_tags.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='analytic_tag_ids']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
<!-- ACCOUNT MOVE LINE -->
<record id="view_move_line_form" model="ir.ui.view">
<field name="name">account_no_analytic_tags.move.line.form</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form"/>
<field name="arch" type="xml">
<field name="analytic_tag_ids" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
from . import account
from . import partner
from . import wizard

View File

@@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
# © 2015-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Usability',
'version': '10.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Small usability enhancements in account module',
'description': """
Account Usability
=================
The usability enhancements include:
* show the supplier invoice number in the tree view of supplier invoices
* add an *Overdue* filter on invoice search view (this feature was previously located in te module *account_invoice_overdue_filter*)
* Increase the default limit of 80 lines in account move and account move line view.
* Fast search on *Reconcile Ref* for account move line.
* disable reconciliation "guessing"
Together with this module, I recommend the use of the following modules:
* account_invoice_supplier_ref_unique (OCA project account-invoicing)
* account_move_line_no_default_search (OCA project account-financial-tools)
* invoice_fiscal_position_update (OCA project account-invoicing)
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': [
'account',
'base_usability', # needed only to access base_usability.group_nobody
# in v12, I may create a module only for group_nobody
],
'data': [
'account_view.xml',
'account_report.xml',
'partner_view.xml',
'product_view.xml',
'wizard/account_invoice_mark_sent_view.xml',
],
'installable': True,
}

View File

@@ -0,0 +1,472 @@
# -*- coding: utf-8 -*-
# © 2015-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api, _
from odoo.tools import float_compare, float_is_zero
from odoo.exceptions import UserError, ValidationError
from odoo import SUPERUSER_ID
import logging
logger = logging.getLogger(__name__)
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
origin = fields.Char(track_visibility='onchange')
reference = fields.Char(track_visibility='onchange')
sent = fields.Boolean(track_visibility='onchange')
date_invoice = fields.Date(track_visibility='onchange')
date_due = fields.Date(track_visibility='onchange')
payment_term_id = fields.Many2one(track_visibility='onchange')
account_id = fields.Many2one(track_visibility='onchange')
journal_id = fields.Many2one(track_visibility='onchange')
partner_bank_id = fields.Many2one(track_visibility='onchange')
fiscal_position_id = fields.Many2one(track_visibility='onchange')
amount_total = fields.Monetary(track_visibility='onchange')
# for those fields, the 'account' module sets track_visibility='always':
partner_id = fields.Many2one(track_visibility='onchange')
currency_id = fields.Many2one(track_visibility='onchange')
type = fields.Selection(track_visibility='onchange')
amount_untaxed = fields.Monetary(track_visibility='onchange')
# I want to see the number of cancelled invoice in chatter
move_id = fields.Many2one(track_visibility='onchange')
# for invoice report
has_discount = fields.Boolean(
compute='_compute_has_discount', readonly=True)
# has_attachment is useful for those who use attachment to archive
# supplier invoices. It allows them to find supplier invoices
# that don't have any attachment
has_attachment = fields.Boolean(
compute='_compute_has_attachment',
search='_search_has_attachment', readonly=True)
@api.multi
def _compute_has_discount(self):
prec = self.env['decimal.precision'].precision_get('Discount')
for inv in self:
has_discount = False
for line in inv.invoice_line_ids:
if not float_is_zero(line.discount, precision_digits=prec):
has_discount = True
break
inv.has_discount = has_discount
def _compute_has_attachment(self):
iao = self.env['ir.attachment']
for inv in self:
if iao.search([
('res_model', '=', 'account.invoice'),
('res_id', '=', inv.id),
('type', '=', 'binary'),
('company_id', '=', inv.company_id.id)], limit=1):
inv.has_attachment = True
else:
inv.has_attachment = False
def _search_has_attachment(self, operator, value):
att_inv_ids = {}
if operator == '=':
search_res = self.env['ir.attachment'].search_read([
('res_model', '=', 'account.invoice'),
('type', '=', 'binary'),
('res_id', '!=', False)], ['res_id'])
for att in search_res:
att_inv_ids[att['res_id']] = True
res = [('id', value and 'in' or 'not in', att_inv_ids.keys())]
return res
# I really hate to see a "/" in the 'name' field of the account.move.line
# generated from customer invoices linked to the partners' account because:
# 1) the label of an account move line is an important field, we can't
# write a rubbish '/' in it !
# 2) the 'name' field of the account.move.line is used in the overdue
# letter, and '/' is not meaningful for our customer !
@api.multi
def action_move_create(self):
res = super(AccountInvoice, self).action_move_create()
for inv in self:
self._cr.execute(
"UPDATE account_move_line SET name= "
"CASE WHEN name='/' THEN %s "
"ELSE %s||' - '||name END "
"WHERE move_id=%s", (inv.number, inv.number, inv.move_id.id))
self.invalidate_cache()
return res
def delete_lines_qty_zero(self):
lines = self.env['account.invoice.line'].search([
('invoice_id', 'in', self.ids), ('quantity', '=', 0)])
lines.unlink()
return True
class AccountInvoiceLine(models.Model):
_inherit = 'account.invoice.line'
# In the 'account' module, we have related stored field for:
# company_id, partner_id, currency_id
invoice_type = fields.Selection(
related='invoice_id.type', store=True, readonly=True)
date_invoice = fields.Date(
related='invoice_id.date_invoice', store=True, readonly=True)
commercial_partner_id = fields.Many2one(
related='invoice_id.partner_id.commercial_partner_id',
store=True, readonly=True)
state = fields.Selection(
related='invoice_id.state', store=True, readonly=True,
string='Invoice State')
invoice_number = fields.Char(
related='invoice_id.move_id.name', store=True, readonly=True,
string='Invoice Number')
class AccountJournal(models.Model):
_inherit = 'account.journal'
@api.multi
@api.depends(
'name', 'currency_id', 'company_id', 'company_id.currency_id', 'code')
def name_get(self):
res = []
if self._context.get('journal_show_code_only'):
for journal in self:
res.append((journal.id, journal.code))
return res
else:
for journal in self:
currency = journal.currency_id or\
journal.company_id.currency_id
name = "[%s] %s (%s)" % (
journal.code, journal.name, currency.name)
res.append((journal.id, name))
return res
# Also search on start of 'code', not only on 'name'
@api.model
def name_search(
self, name='', args=None, operator='ilike', limit=80):
if args is None:
args = []
if name:
jrls = self.search(
[('code', '=ilike', name + '%')] + args, limit=limit)
if jrls:
return jrls.name_get()
return super(AccountJournal, self).name_search(
name=name, args=args, operator=operator, limit=limit)
@api.constrains('default_credit_account_id', 'default_debit_account_id')
def _check_account_type_on_bank_journal(self):
bank_acc_type = self.env.ref('account.data_account_type_liquidity')
for jrl in self:
if jrl.type in ('bank', 'cash'):
if (
jrl.default_debit_account_id and
jrl.default_debit_account_id.user_type_id !=
bank_acc_type):
raise ValidationError(_(
"On journal '%s', the default debit account '%s' "
"should be configured with Type = 'Bank and Cash'.")
% (jrl.display_name,
jrl.default_debit_account_id.display_name))
if (
jrl.default_credit_account_id and
jrl.default_credit_account_id.user_type_id !=
bank_acc_type):
raise ValidationError(_(
"On journal '%s', the default credit account '%s' "
"should be configured with Type = 'Bank and Cash'.")
% (jrl.display_name,
jrl.default_credit_account_id.display_name))
class AccountAccount(models.Model):
_inherit = 'account.account'
@api.multi
def name_get(self):
if self._context.get('account_account_show_code_only'):
res = []
for record in self:
res.append((record.id, record.code))
return res
else:
return super(AccountAccount, self).name_get()
# https://github.com/odoo/odoo/issues/23040
def fix_bank_account_types(self):
aao = self.env['account.account']
companies = self.env['res.company'].search([])
if len(companies) > 1 and self.env.user.id != SUPERUSER_ID:
raise UserError(
"In multi-company setups, you should run this "
"script as admin user")
logger.info("START the script 'fix bank and cash account types'")
bank_type = self.env.ref('account.data_account_type_liquidity')
asset_type = self.env.ref('account.data_account_type_current_assets')
journals = self.env['account.journal'].search(
[('type', 'in', ('bank', 'cash'))], order='company_id')
journal_accounts_bank_type = aao
for journal in journals:
for account in [
journal.default_credit_account_id,
journal.default_debit_account_id]:
if account:
if account.user_type_id != bank_type:
account.user_type_id = bank_type.id
logger.info(
'Company %s: Account %s updated to Bank '
'and Cash type',
account.company_id.display_name, account.code)
if account not in journal_accounts_bank_type:
journal_accounts_bank_type += account
accounts = aao.search([
('user_type_id', '=', bank_type.id)], order='company_id, code')
for account in aao.search([('user_type_id', '=', bank_type.id)]):
if account not in journal_accounts_bank_type:
account.user_type_id = asset_type.id
logger.info(
'Company %s: Account %s updated to Current Asset type',
account.company_id.display_name, account.code)
logger.info("END of the script 'fix bank and cash account types'")
return True
class AccountAnalyticAccount(models.Model):
_inherit = 'account.analytic.account'
@api.multi
def name_get(self):
if self._context.get('analytic_account_show_code_only'):
res = []
for record in self:
res.append((
record.id,
record.code or record._get_one_full_name(record)))
return res
else:
return super(AccountAnalyticAccount, self).name_get()
_sql_constraints = [(
'code_company_unique',
'unique(code, company_id)',
'An analytic account with the same code already '
'exists in the same company!')]
class AccountMove(models.Model):
_inherit = 'account.move'
default_move_line_name = fields.Char(
string='Default Label', states={'posted': [('readonly', True)]})
# By default, we can still modify "ref" when account move is posted
# which seems a bit lazy for me...
ref = fields.Char(states={'posted': [('readonly', True)]})
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
# Native order:
# _order = "date desc, id desc"
# Problem: when you manually create a journal entry, the
# order of the lines is inverted when you save ! It is quite annoying for
# the user...
_order = "date desc, id asc"
# Update field only to add a string (there is no string in account module)
invoice_id = fields.Many2one(string='Invoice')
@api.onchange('credit')
def _credit_onchange(self):
prec = self.env['decimal.precision'].precision_get('Account')
if (
not float_is_zero(self.credit, precision_digits=prec) and
not float_is_zero(self.debit, precision_digits=prec)):
self.debit = 0
@api.onchange('debit')
def _debit_onchange(self):
prec = self.env['decimal.precision'].precision_get('Account')
if (
not float_is_zero(self.debit, precision_digits=prec) and
not float_is_zero(self.credit, precision_digits=prec)):
self.credit = 0
@api.onchange('currency_id', 'amount_currency')
def _amount_currency_change(self):
prec = self.env['decimal.precision'].precision_get('Account')
if (
self.currency_id and
self.amount_currency and
float_is_zero(self.credit, precision_digits=prec) and
float_is_zero(self.debit, precision_digits=prec)):
date = self.date or None
amount_company_currency = self.currency_id.with_context(
date=date).compute(
self.amount_currency, self.env.user.company_id.currency_id)
precision = self.env['decimal.precision'].precision_get('Account')
if float_compare(
amount_company_currency, 0,
precision_digits=precision) == -1:
self.debit = amount_company_currency * -1
else:
self.credit = amount_company_currency
@api.multi
def show_account_move_form(self):
self.ensure_one()
action = self.env['ir.actions.act_window'].for_xml_id(
'account', 'action_move_line_form')
action.update({
'res_id': self.move_id.id,
'view_id': False,
'views': False,
'view_mode': 'form,tree',
})
return action
class AccountBankStatement(models.Model):
_inherit = 'account.bank.statement'
start_date = fields.Date(
compute='_compute_dates', string='Start Date', readonly=True,
store=True)
end_date = fields.Date(
compute='_compute_dates', string='End Date', readonly=True,
store=True)
@api.multi
@api.depends('line_ids.date')
def _compute_dates(self):
for st in self:
dates = [line.date for line in st.line_ids]
st.start_date = dates and min(dates) or False
st.end_date = dates and max(dates) or False
class AccountBankStatementLine(models.Model):
_inherit = 'account.bank.statement.line'
# Native order is:
# _order = 'statement_id desc, sequence, id desc'
_order = 'statement_id desc, date desc, sequence, id desc'
# Disable guessing for reconciliation
# because my experience with several customers shows that it is a problem
# in the following scenario : move line 'x' has been "guessed" by OpenERP
# to be reconciled with a statement line 'Y' at the end of the bank
# statement, but it is a mistake because it should be reconciled with
# statement line 'B' at the beginning of the bank statement
# When the user is on statement line 'B', he tries to select
# move line 'x', but it can't find it... because it is already "reserved"
# by the guess of OpenERP for statement line 'Y' ! To solve this problem,
# the user must go to statement line 'Y' and unselect move line 'x'
# and then come back on statement line 'B' and select move line 'A'...
# but non super-expert users can't do that because it is impossible to
# figure out that the fact that the user can't find move line 'x'
# is caused by this.
# Set search_reconciliation_proposition to False by default
# TODO: re-write in v10
# def get_data_for_reconciliations(
# self, cr, uid, ids, excluded_ids=None,
# search_reconciliation_proposition=False, context=None):
# # Make variable name shorted for PEP8 !
# search_rec_prop = search_reconciliation_proposition
# return super(AccountBankStatementLine, self).\
# get_data_for_reconciliations(
# cr, uid, ids, excluded_ids=excluded_ids,
# search_reconciliation_proposition=search_rec_prop,
# context=context)
def _prepare_reconciliation_move(self, move_ref):
vals = super(AccountBankStatementLine, self).\
_prepare_reconciliation_move(move_ref)
# By default, ref contains the name of the statement + name of the
# statement line. It causes 2 problems:
# 1) The 'ref' field is too big
# 2) The name of the statement line is already written in the name of
# the move line -> not useful to have the info 2 times
# In the end, I think it's better to just put nothing (we could write
# the name of the statement which has the account number, but it
# doesn't bring any useful info to the accountant)
# The only "good" thing to do would be to have a sequence per
# statement line and write it in this 'ref' field
# But that would required an additionnal field on statement lines
vals['ref'] = False
return vals
@api.multi
def show_account_move(self):
self.ensure_one()
action = self.env['ir.actions.act_window'].for_xml_id(
'account', 'action_move_journal_line')
if self.journal_entry_ids:
action.update({
'views': False,
'view_id': False,
'view_mode': 'form,tree',
'res_id': self.journal_entry_ids[0].id,
})
return action
else:
raise UserError(_(
'No journal entry linked to this bank statement line.'))
class AccountFiscalPosition(models.Model):
_inherit = 'account.fiscal.position'
note = fields.Text(translate=True)
@api.model
def get_fiscal_position_no_partner(
self, company_id=None, vat_subjected=False, country_id=None):
'''This method is inspired by the method get_fiscal_position()
in odoo/addons/account/partner.py : it uses the same algo
but without a real partner.
Returns a recordset of fiscal position, or False'''
domains = [[
('auto_apply', '=', True),
('vat_required', '=', vat_subjected),
('company_id', '=', company_id)]]
if vat_subjected:
domains += [[
('auto_apply', '=', True),
('vat_required', '=', False),
('company_id', '=', company_id)]]
for domain in domains:
if country_id:
fps = self.search(
domain + [('country_id', '=', country_id)], limit=1)
if fps:
return fps[0]
fps = self.search(
domain +
[('country_group_id.country_ids', '=', country_id)],
limit=1)
if fps:
return fps[0]
fps = self.search(
domain +
[('country_id', '=', None), ('country_group_id', '=', None)],
limit=1)
if fps:
return fps[0]
return False
class AccountReconcileModel(models.Model):
_inherit = 'account.reconcile.model'
@api.onchange('name')
def onchange_name(self):
# Do NOT copy by default name on label
# Because it's much better to have the bank statement line label as
# label of the counter-part move line, then the label of the button
assert True # Stupid line of code just to have something...

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="account.account_invoices" model="ir.actions.report.xml">
<!-- Don't attach on supplier invoices/refunds ! -->
<field name="attachment">(object.type in ('out_invoice', 'out_refund')) and (object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')</field>
</record>
</odoo>

View File

@@ -0,0 +1,53 @@
diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py
index 8ed1e48..615da43 100644
--- a/addons/account/models/account_bank_statement.py
+++ b/addons/account/models/account_bank_statement.py
@@ -563,7 +563,13 @@ class AccountBankStatementLine(models.Model):
"""
# Blue lines = payment on bank account not assigned to a statement yet
reconciliation_aml_accounts = [self.journal_id.default_credit_account_id.id, self.journal_id.default_debit_account_id.id]
- domain_reconciliation = ['&', '&', ('statement_id', '=', False), ('account_id', 'in', reconciliation_aml_accounts), ('payment_id','<>', False)]
+ # AKRETION HACK 11/7/2017
+ # Remove ('payment_id','<>', False) in order to allow to select move lines
+ # generated from payment orders or check deposit
+ # but I add ('journal_id', '=', self.journal_id.id) to exclude the
+ # opening entry of the first fiscal year
+ #domain_reconciliation = ['&', '&', ('statement_id', '=', False), ('account_id', 'in', reconciliation_aml_accounts), ('payment_id','<>', False)]
+ domain_reconciliation = ['&', '&', ('statement_id', '=', False), ('account_id', 'in', reconciliation_aml_accounts), ('journal_id', '=', self.journal_id.id)]
# Black lines = unreconciled & (not linked to a payment or open balance created by statement
domain_matching = [('reconciled', '=', False)]
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index b60ffbe..6c27c57 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -599,6 +599,7 @@ class AccountMoveLine(models.Model):
domain = expression.AND([domain, [('id', 'not in', excluded_ids)]])
if str:
str_domain = [
+ '|', ('account_id.code', '=ilike', str + '%'),
'|', ('move_id.name', 'ilike', str),
'|', ('move_id.ref', 'ilike', str),
'|', ('date_maturity', 'like', str),
diff --git a/addons/account/static/src/js/account_reconciliation_widgets.js b/addons/account/static/src/js/account_reconciliation_widgets.js
index 453bd41..48c396e 100644
--- a/addons/account/static/src/js/account_reconciliation_widgets.js
+++ b/addons/account/static/src/js/account_reconciliation_widgets.js
@@ -76,7 +76,7 @@ var abstractReconciliation = Widget.extend(ControlPanelMixin, {
this.model_res_users = new Model("res.users");
this.model_tax = new Model("account.tax");
this.model_presets = new Model("account.reconcile.model");
- this.max_move_lines_displayed = 5;
+ this.max_move_lines_displayed = 15;
// Number of reconciliations loaded initially and by clicking 'show more'
this.num_reconciliations_fetched_in_batch = 10;
this.animation_speed = 100; // "Blocking" animations
@@ -1755,7 +1755,7 @@ var bankStatementReconciliationLine = abstractReconciliationLine.extend({
relation: "res.partner",
string: _t("Partner"),
type: "many2one",
- domain: [['parent_id','=',false], '|', ['customer','=',true], ['supplier','=',true]],
+ domain: [['parent_id','=',false]], // AKRETION HACK 26/6/2017 allow all parent partners
help: "",
readonly: false,
required: true,

View File

@@ -0,0 +1,14 @@
diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py
index 4374528..aea1361 100644
--- a/addons/account/models/account_bank_statement.py
+++ b/addons/account/models/account_bank_statement.py
@@ -1008,7 +1008,7 @@ class AccountBankStatementLine(models.Model):
#record the move name on the statement line to be able to retrieve it in case of unreconciliation
self.write({'move_name': move.name})
payment.write({'payment_reference': move.name})
- elif self.move_name:
- raise UserError(_('Operation not allowed. Since your statement line already received a number, you cannot reconcile it entirely with existing journal entries otherwise it would make a gap in the numbering. You should book an entry and make a regular revert of it in case you want to cancel it.'))
+ #elif self.move_name:
+ # raise UserError(_('Operation not allowed. Since your statement line already received a number, you cannot reconcile it entirely with existing journal entries otherwise it would make a gap in the numbering. You should book an entry and make a regular revert of it in case you want to cancel it.'))
counterpart_moves.assert_balanced()
return counterpart_moves

View File

@@ -0,0 +1,482 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2015-2016 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- INVOICE -->
<record id="invoice_supplier_form" model="ir.ui.view">
<field name="name">account_usability.supplier.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<field name="fiscal_position_id" position="attributes">
<attribute name="widget">selection</attribute>
</field>
<field name="invoice_line_ids" position="before">
<button name="delete_lines_qty_zero" states="draft" string="⇒ Delete lines qty=0" type="object" class="oe_link oe_right" groups="account.group_account_invoice"/>
</field>
</field>
</record>
<record id="invoice_form" model="ir.ui.view">
<field name="name">account_usability.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="fiscal_position_id" position="attributes">
<attribute name="widget">selection</attribute>
</field>
<!-- move sent field and make it visible -->
<field name="sent" position="replace"/>
<field name="move_id" position="before">
<field name="sent"/>
</field>
</field>
</record>
<record id="invoice_tree" model="ir.ui.view">
<field name="name">account_usability.invoice_tree</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_tree"/>
<field name="arch" type="xml">
<field name="reference" position="attributes">
<attribute name="invisible">not context.get('type') in ('in_invoice', 'in_refund')</attribute>
</field>
</field>
</record>
<record id="view_account_invoice_filter" model="ir.ui.view">
<field name="name">account_usability.invoice.search</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.view_account_invoice_filter"/>
<field name="arch" type="xml">
<filter name="late" position="after">
<separator/>
<filter name="to_send" string="To Send" domain="[('sent', '=', False), ('state', 'in', ('open', 'paid'))]"/>
<filter name="sent" string="Sent" domain="[('sent', '=', True)]"/>
<separator/>
<filter name="no_attachment" string="Missing Attachment" domain="[('has_attachment', '=', False)]"/>
</filter>
</field>
</record>
<!-- Having a menu entry on invoice lines is often very usefull for odoo user:
they can search in their lines, etc...
So I enhance the generic views and add actions, but I don't add menu entries here ;
the creation of the corresponding menu entry should be done in the customer-specifc
module -->
<record id="view_invoice_line_tree" model="ir.ui.view">
<field name="name">account_usability.invoice_line_tree</field>
<field name="model">account.invoice.line</field>
<field name="inherit_id" ref="account.view_invoice_line_tree"/>
<field name="arch" type="xml">
<field name="name" position="before">
<field name="partner_id" invisible="not context.get('show_invoice_fields')"/>
<field name="date_invoice" invisible="not context.get('show_invoice_fields')"/>
<field name="invoice_number" invisible="not context.get('show_invoice_fields')"/>
</field>
<field name="currency_id" position="after">
<field name="state" invisible="not context.get('show_invoice_fields')"/>
<field name="invoice_type" invisible="1"/>
</field>
<field name="quantity" position="attributes">
<attribute name="sum">1</attribute>
</field>
<xpath expr="/tree" position="attributes">
<attribute name="decoration-info">state == 'draft'</attribute>
<attribute name="decoration-muted">state == 'cancel'</attribute>
<attribute name="edit">0</attribute>
<attribute name="create">0</attribute>
</xpath>
</field>
</record>
<record id="account_invoice_line_search" model="ir.ui.view">
<field name="name">account_usability.invoice_line_search</field>
<field name="model">account.invoice.line</field>
<field name="arch" type="xml">
<search string="Search Invoice Lines">
<field name="partner_id"/>
<field name="product_id"/>
<field name="account_id"/>
<field name="invoice_number"/>
<field name="name"/>
<filter name="out_invoice" string="Customer Invoices"
domain="[('invoice_type', '=', 'out_invoice')]"/>
<filter name="out_refund" string="Customer Refunds"
domain="[('invoice_type', '=', 'out_refund')]"/>
<filter name="in_invoice" string="Supplier Invoices"
domain="[('invoice_type', '=', 'in_invoice')]"/>
<filter name="in_refund" string="Supplier Refunds"
domain="[('invoice_type', '=', 'in_refund')]"/>
<separator/>
<filter name="draft" string="Draft" domain="[('state', '=', 'draft')]"/>
<filter name="unpaid" string="Not Paid" domain="[('state', '=', 'open')]"/>
<filter name="paid" string="Paid" domain="[('state', '=', 'paid')]"/>
<group string="Group By" name="groupby">
<filter name="partner_groupby" string="Partner"
context="{'group_by': 'partner_id'}"/>
<filter name="date_groupby" string="Invoice Date"
context="{'group_by': 'date_invoice'}"/>
<filter name="product_groupby" string="Product"
context="{'group_by': 'product_id'}"/>
<filter name="account_groupby" string="Account"
context="{'group_by': 'account_id'}"/>
</group>
</search>
</field>
</record>
<record id="out_invoice_line_action" model="ir.actions.act_window">
<field name="name">Customer Invoice Lines</field>
<field name="res_model">account.invoice.line</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('invoice_type', '=', 'out_invoice')]</field>
<field name="context">{'show_invoice_fields': True}</field>
</record>
<record id="out_refund_line_action" model="ir.actions.act_window">
<field name="name">Customer Refund Lines</field>
<field name="res_model">account.invoice.line</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('invoice_type', '=', 'out_refund')]</field>
<field name="context">{'show_invoice_fields': True}</field>
</record>
<record id="out_invoice_refund_line_action" model="ir.actions.act_window">
<field name="name">Customer Invoice Lines</field>
<field name="res_model">account.invoice.line</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('invoice_type', 'in', ('out_invoice', 'out_refund'))]</field>
<field name="context">{'show_invoice_fields': True}</field>
</record>
<record id="in_invoice_line_action" model="ir.actions.act_window">
<field name="name">Supplier Invoice Lines</field>
<field name="res_model">account.invoice.line</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('invoice_type', '=', 'in_invoice')]</field>
<field name="context">{'show_invoice_fields': True}</field>
</record>
<record id="in_refund_line_action" model="ir.actions.act_window">
<field name="name">Supplier Refund Lines</field>
<field name="res_model">account.invoice.line</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('invoice_type', '=', 'in_refund')]</field>
<field name="context">{'show_invoice_fields': True}</field>
</record>
<record id="in_invoice_refund_line_action" model="ir.actions.act_window">
<field name="name">Supplier Invoice Lines</field>
<field name="res_model">account.invoice.line</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('invoice_type', 'in', ('in_invoice', 'in_refund'))]</field>
<field name="context">{'show_invoice_fields': True}</field>
</record>
<record id="view_account_invoice_report_search" model="ir.ui.view">
<field name="name">usability.account.invoice.report.search</field>
<field name="model">account.invoice.report</field>
<field name="inherit_id" ref="account.view_account_invoice_report_search"/>
<field name="arch" type="xml">
<field name="categ_id" position="after">
<field name="product_id"/>
</field>
</field>
</record>
<record id="account_invoice_report_tree" model="ir.ui.view">
<field name="name">usability.account.invoice.report.tree</field>
<field name="model">account.invoice.report</field>
<field name="arch" type="xml">
<tree string="Invoices Analysis">
<field name="date"/>
<field name="commercial_partner_id"/>
<field name="type"/>
<field name="product_id"/>
<field name="product_qty" sum="1"/>
<field name="price_total" sum="1"/>
<field name="state"/>
<field name="currency_id" invisible="1"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>
<record id="account.action_account_invoice_report_all_supp" model="ir.actions.act_window">
<field name="view_mode">pivot,graph,tree</field>
<field name="context">{'search_default_current':1, 'search_default_supplier':1, 'search_default_year': 1}</field>
</record>
<record id="account.action_account_invoice_report_all" model="ir.actions.act_window">
<field name="view_mode">pivot,graph,tree</field>
<field name="context">{'search_default_current':1, 'search_default_customer':1, 'search_default_year': 1}</field>
</record>
<record id="view_account_invoice_report_pivot" model="ir.ui.view">
<field name="name">usability.account.invoice.report.pivot</field>
<field name="model">account.invoice.report</field>
<field name="inherit_id" ref="account.view_account_invoice_report_pivot"/>
<field name="arch" type="xml">
<xpath expr="/pivot" position="attributes">
<attribute name="disable_linking"></attribute>
</xpath>
</field>
</record>
<record id="view_invoice_tax_form" model="ir.ui.view">
<field name="name">usability.account.invoice.tax.form</field>
<field name="model">account.invoice.tax</field>
<field name="inherit_id" ref="account.view_invoice_tax_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="tax_id"/>
</field>
</field>
</record>
<!-- model account.move.line / Journal Items -->
<record id="account.action_account_moves_all_a" model="ir.actions.act_window">
<field name="limit">200</field>
<!-- Win space, because there are already many columns -->
<field name="context">{'journal_show_code_only': True}</field>
</record>
<!-- remove base.group_no_one on Journal Items-->
<record id="account.menu_action_account_moves_all" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('account.group_account_user')])]"/>
</record>
<!-- accountant must be able to access the Adviser section ! -->
<record id="account.menu_finance_entries" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
</record>
<!-- model account.move / Journal Entries -->
<record id="account.action_move_journal_line" model="ir.actions.act_window">
<field name="limit">200</field>
<field name="context">{}</field> <!-- Don't filter by default on misc journal -->
</record>
<record id="view_move_form" model="ir.ui.view">
<field name="name">account_usability.account_move_form</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<field name="ref" position="after">
<field name="default_move_line_name"/>
</field>
<xpath expr="//field[@name='line_ids']" position="attributes">
<attribute name="context">{'line_ids': line_ids, 'journal_id': journal_id, 'default_name': default_move_line_name}</attribute>
</xpath>
<xpath expr="//field[@name='line_ids']/tree/field[@name='date_maturity']" position="after">
<field name="full_reconcile_id"/>
</xpath>
</field>
</record>
<record id="view_account_move_line_filter" model="ir.ui.view">
<field name="name">account_usability.account_move_line_search</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="full_reconcile_id" />
</field>
<filter name="unreconciled" position="before">
<filter name="reconciled" string="Fully Reconciled" domain="[('full_reconcile_id', '!=', False)]"/>
<!-- <filter name="partial_reconciled" string="Partially Reconciled" domain="[('reconcile_partial_id', '!=', False)]"/> -->
</filter>
<filter name="unreconciled" position="attributes">
<attribute name="string">Unreconciled or Partially Reconciled</attribute>
</filter>
<field name="name" position="attributes">
<attribute name="string">Name or Reference</attribute>
</field>
</field>
</record>
<record id="view_move_line_form" model="ir.ui.view">
<field name="name">account_usability.account_move_line_form</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form"/>
<field name="arch" type="xml">
<field name="quantity" position="after">
<field name="product_id" />
</field>
<field name="move_id" position="after">
<field name="invoice_id"/>
</field>
</field>
</record>
<record id="view_move_line_tree" model="ir.ui.view">
<field name="name">account_usability.account_move_line_tree</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_tree"/>
<field name="arch" type="xml">
<!-- Move reconcile_id to a better position -->
<field name="full_reconcile_id" position="replace"/>
<field name="credit" position="after">
<field name="full_reconcile_id"/>
</field>
<field name="date_maturity" position="after">
<button name="show_account_move_form" type="object" icon="fa-arrows-h" string="Show Journal Entry"/>
</field>
</field>
</record>
<record id="view_account_search" model="ir.ui.view">
<field name="name">account.account.search</field>
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_search"/>
<field name="arch" type="xml">
<!-- The native "name" filter uses a domain ['|', ('name','ilike',self), ('code','=like',str(self)+'%')]
This is good because it uses '=like' on 'code', but sometimes there are digits in account names,
so you get additionnal unexpected accounts in the result of the search -->
<field name="name" position="after">
<field name="code" filter_domain="[('code', '=like', str(self)+'%')]" string="Code"/>
</field>
</field>
</record>
<record id="view_account_type_tree" model="ir.ui.view">
<field name="name">account_usability.account_type_tree</field>
<field name="model">account.account.type</field>
<field name="inherit_id" ref="account.view_account_type_tree" />
<field name="arch" type="xml">
<field name="type" position="after">
<field name="include_initial_balance" />
</field>
</field>
</record>
<record id="view_account_journal_search" model="ir.ui.view">
<field name="name">usability.account.journal.search</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_search"/>
<field name="arch" type="xml">
<filter name="dashboard" position="after">
<group name="groupby" string="Group By">
<filter name="type_groupby" string="Type" context="{'group_by': 'type'}"/>
</group>
</filter>
</field>
</record>
<record id="view_bank_statement_form" model="ir.ui.view">
<field name="name">usability.account.bank.statement.form</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='line_ids']/tree/field[@name='bank_account_id']" position="after">
<!-- The cancel button is provided by the account_cancel module, but we don't want to depend on it -->
<button name="show_account_move" type="object"
string="View Account Move" icon="fa fa-arrow-right"
attrs="{'invisible': [('journal_entry_ids', '=', [])]}"/>
</xpath>
<field name="date" position="after">
<field name="start_date"/>
<field name="end_date"/>
</field>
<field name="date" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>
<record id="view_bank_statement_tree" model="ir.ui.view">
<field name="name">usability.account.bank.statement.tree</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_tree"/>
<field name="arch" type="xml">
<field name="date" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="journal_id" position="after">
<field name="start_date"/>
<field name="end_date"/>
</field>
</field>
</record>
<record id="view_bank_statement_search" model="ir.ui.view">
<field name="name">usability.account.bank.statement.search</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_search"/>
<field name="arch" type="xml">
<field name="date" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="date" position="after">
<field name="start_date"/>
<field name="end_date"/>
</field>
<filter context="{'group_by': 'date'}" position="attributes">
<attribute name="invisible">1</attribute>
</filter>
<filter context="{'group_by': 'date'}" position="after">
<filter name="start_date_groupby" string="Start Date"
context="{'group_by': 'start_date'}"/>
<filter name="end_date_groupby" string="End Date"
context="{'group_by': 'end_date'}"/>
</filter>
</field>
</record>
<!-- ACCOUNT TAX GROUP -->
<!-- in the account module, there is nothing for account.tax.group : no form/tree view, no menu... -->
<record id="account_tax_group_form" model="ir.ui.view">
<field name="name">usability.account.tax.group.form</field>
<field name="model">account.tax.group</field>
<field name="arch" type="xml">
<form string="Tax Group">
<group name="main">
<field name="name"/>
<field name="sequence" invisible="1"/>
</group>
</form>
</field>
</record>
<record id="account_tax_group_tree" model="ir.ui.view">
<field name="name">usability.account.tax.group.tree</field>
<field name="model">account.tax.group</field>
<field name="arch" type="xml">
<tree string="Tax Groups">
<field name="sequence" widget="handle"/>
<field name="name"/>
</tree>
</field>
</record>
<record id="account_tax_group_action" model="ir.actions.act_window">
<field name="name">Tax Groups</field>
<field name="res_model">account.tax.group</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="account_tax_group_menu" action="account_tax_group_action" parent="account.account_account_menu" sequence="2"/>
<!-- Remove menu entry "Accounting > Configuration > Accounting > Bank Accounts"
(account.journal filtered on type = 'bank' with special tree and form view)
because it is useless and confusing -->
<record id="account.menu_action_account_bank_journal_form" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('base_usability.group_nobody')])]"/>
</record>
<!-- Duplicate the menu "Sales > Configuration > Contacts > Bank Accounts"
under "Accounting > Configuration", because most users will try to find it there -->
<menuitem id="bank_account_account_config_menu" name="Bank Accounts" parent="account.menu_finance_configuration" sequence="9"/>
<menuitem id="res_bank_account_config_menu" action="base.action_res_bank_form" parent="bank_account_account_config_menu" sequence="10"/>
<menuitem id="res_partner_bank_account_config_menu" action="base.action_res_partner_bank_account_form" parent="bank_account_account_config_menu" sequence="20"/>
</odoo>

View File

@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
class ResPartner(models.Model):
_inherit = 'res.partner'
invoice_warn = fields.Selection(track_visibility='onchange')
property_account_position_id = fields.Many2one(
track_visibility='onchange')

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2017 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_partner_property_form" model="ir.ui.view">
<field name="name">account_usability.res.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="account.view_partner_property_form"/>
<field name="arch" type="xml">
<field name="property_account_position_id" position="attributes">
<attribute name="widget">selection</attribute>
</field>
<group name="accounting_entries" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</group>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2017 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_category_property_form" model="ir.ui.view">
<field name="name">account_usability.product.category.form</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="account.view_category_property_form"/>
<field name="arch" type="xml">
<!-- On product form view, the group for Invoicing tab is limited to account.group_account_invoice... but on product category form, it is limited to account.group_account_manager -> we fix this and also use account.group_account_invoice -->
<group name="account_property" position="attributes">
<attribute name="groups">account.group_account_invoice</attribute>
</group>
</field>
</record>
</odoo>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

@@ -0,0 +1,4 @@
# -*- encoding: utf-8 -*-
from . import account_invoice_mark_sent
from . import account_move_reversal

View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
import logging
logger = logging.getLogger(__name__)
class AccountInvoiceMarkSent(models.TransientModel):
_name = 'account.invoice.mark.sent'
_description = 'Mark invoices as sent'
def run(self):
assert self.env.context.get('active_model') == 'account.invoice',\
'Source model must be invoices'
assert self.env.context.get('active_ids'), 'No invoices selected'
invoices = self.env['account.invoice'].search([
('id', 'in', self.env.context.get('active_ids')),
('state', 'in', ('open', 'paid'))])
invoices.write({'sent': True})
logger.info('Marking invoices with ID %s as sent', invoices.ids)
return

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017-2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="account_invoice_mark_sent_form" model="ir.ui.view">
<field name="name">account.invoice.mark.sent.form</field>
<field name="model">account.invoice.mark.sent</field>
<field name="arch" type="xml">
<form string="Mark invoices as sent">
<p>
This wizard will mark as <i>sent</i> all the selected invoices in open or paid state.
</p>
<footer>
<button type="object" name="run" string="Mark as Sent" class="btn-primary"/>
<button special="cancel" string="Cancel" class="oe_link"/>
</footer>
</form>
</field>
</record>
<act_window id="account_invoice_mark_sent_action"
multi="True"
key2="client_action_multi"
name="Mark as Sent"
res_model="account.invoice.mark.sent"
src_model="account.invoice"
view_mode="form"
target="new"
groups="account.group_account_invoice" />
</odoo>

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from dateutil.relativedelta import relativedelta
class AccountMoveReversal(models.TransientModel):
_inherit = 'account.move.reversal'
@api.model
def _default_date(self):
date = None
if (
self._context.get('active_model') == 'account.move' and
self._context.get('active_id')):
move = self.env['account.move'].browse(self._context['active_id'])
date_dt = fields.Date.from_string(move.date) +\
relativedelta(days=1)
date = fields.Date.to_string(date_dt)
return date
date = fields.Date(default=_default_date)

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import printing

View File

@@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Aeroo Report to Printer module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Aeroo Report to Printer',
'version': '0.1',
'category': 'Aeroo',
'license': 'AGPL-3',
'summary': 'Connect aeroo_report to base_report_to_printer',
'description': """
Aeroo Report to Printer
=======================
There is a module *report_aeroo_direct_print* in https://github.com/aeroo/aeroo_reports that adds support for CUPS printing, but it's not as mature and clean as the OCA module *base_report_to_printer* from https://github.com/OCA/report-print-send.
And I want to use the best of both world : the best reporting engine (Aeroo) with the best CUPS printing module (base_report_to_printer). So I developped this small glue module.
You will find some sample code to use this module in the comments of the main Python file.
WARNING: you need this PR for base_report_to_printer to use this module: https://github.com/OCA/report-print-send/pull/39
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': [
'base_report_to_printer',
'report_aeroo',
'base_other_report_engines',
],
'installable': False,
}

View File

@@ -0,0 +1,75 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Aeroo Report to Printer module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, api, _
from openerp.exceptions import Warning as UserError
import logging
logger = logging.getLogger(__name__)
class PrintingPrinter(models.Model):
_inherit = 'printing.printer'
@api.multi
def aeroo_print_document(self, report_name, object_id, copies=1):
'''
Send an aeroo report to CUPS server for printing
Usage example :
Add this button in an inherit of the view 'stock.view_picking_form':
<button name="print_delivery" type="object" states="done"
string="Print 2 copies"/>
Add this code in the StockPicking class that inherit 'stock.picking'
@api.multi
def print_delivery(self):
if not self.env.user.printing_printer_id:
raise UserError(_(
"Missing 'Default Printer' in your preferences"))
self.env.user.printing_printer_id.aeroo_print_document(
'stock.report_picking', self.id, copies=2)
'''
self.ensure_one()
report = self.env['ir.actions.report.xml']._lookup_report(report_name)
report_xml = self.env['report']._get_report_from_name(report_name)
data = {
'model': report_xml.model,
'id': object_id,
'report_type': 'aeroo',
}
logger.info(
'Request printing aeroo report %s model %s ID %d in %d copies',
report_name, data['model'], data['id'], copies)
aeroo_report_content, aeroo_report_format = report.create(
self.env.cr, self.env.uid, [object_id],
data, context=dict(self.env.context))
if aeroo_report_format in ('pdf', 'raw'):
self.print_document(
report_name, aeroo_report_content, aeroo_report_format, copies)
else:
raise UserError(_(
"Format '%s' is not supported for printing")
% aeroo_report_format)
return True

View File

@@ -0,0 +1 @@
from . import attribute

View File

@@ -0,0 +1,25 @@
# coding: utf-8
# © 2016 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Attribute Usability',
'version': '8.0.0.0.0',
'category': 'Product',
'summary': "Attribute views improved",
'description': """
- Create filter dynamically for each attributes in attribute values search view
- Add a form view to Attribute and Attribute Value views
Contributors: David BEAL
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': [
'product',
],
'data': [
'view.xml',
],
'installable': False,
}

View File

@@ -0,0 +1,48 @@
# coding: utf-8
# © 2016 David BEAL @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, api
from lxml import etree
class ProductAtribute(models.Model):
_inherit = 'product.attribute'
_order = 'sequence ASC'
class ProductAttributeValue(models.Model):
_inherit = 'product.attribute.value'
@api.model
def _get_attributes_to_filter(self):
""" Inherit if you want reduce the list """
return [(x.id, x.name)
for x in self.env['product.attribute'].search(
[], order='name DESC')]
@api.model
def _customize_attribute_filters(self, my_filter):
""" Inherit if you to customize search filter display"""
return {
'string': "%s" % my_filter[1],
'help': 'Filtering by Attribute',
'domain': "[('attribute_id','=', %s)]" % my_filter[0]}
@api.model
def fields_view_get(self, view_id=None, view_type='form',
toolbar=False, submenu=False):
""" customize xml output
"""
res = super(ProductAttributeValue, self).fields_view_get(
view_id=view_id, view_type=view_type, toolbar=toolbar,
submenu=submenu)
if view_type == 'search':
filters_to_create = self._get_attributes_to_filter()
doc = etree.XML(res['arch'])
for my_filter in filters_to_create:
elm = etree.Element(
'filter', **self._customize_attribute_filters(my_filter))
doc[0].addprevious(elm)
res['arch'] = etree.tostring(doc, pretty_print=True)
return res

View File

@@ -0,0 +1,16 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-03-16 16:14+0000\n"
"PO-Revision-Date: 2016-03-16 16:14+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

View File

@@ -0,0 +1,16 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-03-16 16:10+0000\n"
"PO-Revision-Date: 2016-03-16 16:10+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="product.variants_action" model="ir.actions.act_window">
<field name="res_model">product.attribute.value</field>
<field name="view_mode">tree,form</field>
</record>
<record id="product.attribute_action" model="ir.actions.act_window">
<field name="res_model">product.attribute</field>
<field name="view_mode">tree,form</field>
</record>
<!-- After installation of the module, open the adhoc menu -->
<record id="action_client_attribute_usabi_menu" model="ir.actions.client">
<field name="name">Open Attribute Usability Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('product.menu_variants_action')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_client_attribute_usabi_menu"/>
<field name="state">open</field>
</record>
</data>
</openerp>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import company

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Base Company Extension',
'version': '10.0.1.0.0',
'category': 'Partner',
'license': 'AGPL-3',
'summary': 'Adds capital and title on company',
'description': """
Base Company Extension
======================
This module adds 2 fields on the Company :
* *Capital Amount*
* *Legal Form*
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
# I depend on base_usability only for _report_company_legal_name()
'depends': ['base_usability'],
'data': ['company_view.xml'],
'installable': True,
}

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
class ResCompany(models.Model):
_inherit = "res.company"
capital_amount = fields.Monetary(string='Capital Amount')
# in v9, title is only for contacts, not for companies
legal_type = fields.Char(
string="Legal Type", help="Type of Company, e.g. SARL, SAS, ...")
def _report_company_legal_name(self):
self.ensure_one()
if self.legal_type:
name = u'%s %s' % (self.name, self.legal_type)
else:
name = self.name
return name
_sql_constraints = [(
'capital_amount_positive',
'CHECK (capital_amount >= 0)',
"The value of the field 'Capital Amount' must be positive."
)]

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2014-2016 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_company_form" model="ir.ui.view">
<field name="name">company.extension.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form" />
<field name="arch" type="xml">
<field name="company_registry" position="after">
<field name="capital_amount"/>
<field name="legal_type"/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import ir_mail_server

View File

@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Mail Sender Bcc',
'version': '10.0.1.0.0',
'category': 'Mail',
'license': 'AGPL-3',
'summary': "Always send a copy of the mail to the sender",
'description': """
Mail Sender Bcc
===============
With this module, when Odoo sends an outgoing email, it adds the sender as Bcc (blind copy) of the email.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['base'],
'installable': True,
}

Some files were not shown because too many files have changed in this diff Show More