diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-05-24 11:40:19 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-06-02 15:31:47 +0200 |
| commit | 4aa2fad313112a7a45a86b67e806f5a3af22d73b (patch) | |
| tree | ae84130085545019a33b0e6f92687686f24a07d6 /addons/payment_transfer | |
| parent | 4fe4c1e8518f3adbd7406f2a75f98d7c25aa9a90 (diff) | |
[IMP] payment: Remove auto_confirm field and simplify views.
PURPOSE
=======
The field auto_confirm is complicated to understand for common users. Furthermore, on of its options is only useful for authorize module.
SPECIFICATION
=============
Remove the auto_confirm field. The destinies of its options are the following:
- none: Simply disappear.
- authorize: Become capture_manually. It has nothing to do with the auto_confirm field has it's related to the autorize module (And could be extended to other payment acquirers too).
- confirm_so: Remove it. Will be automatic, and we will always validate the sales order and generate the accounting entries on acquirer validation.
- generate_and_pay_invoice: Is linked to the journal_id. The field journal_id is always set and we will use it to validate the sales order and generate the accounting entries on acquirer validation.
Bonus: website_sale: Allow to create/validate invoice automatically on `Mark as Paid`
Diffstat (limited to 'addons/payment_transfer')
| -rw-r--r-- | addons/payment_transfer/data/payment_acquirer_data.xml | 1 | ||||
| -rw-r--r-- | addons/payment_transfer/views/payment_views.xml | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/addons/payment_transfer/data/payment_acquirer_data.xml b/addons/payment_transfer/data/payment_acquirer_data.xml index 77ff2e2381d..0eee54a9259 100644 --- a/addons/payment_transfer/data/payment_acquirer_data.xml +++ b/addons/payment_transfer/data/payment_acquirer_data.xml @@ -8,7 +8,6 @@ <field name="provider">transfer</field> <field name="company_id" ref="base.main_company"/> <field name="view_template_id" ref="transfer_acquirer_button"/> - <field name="auto_confirm">none</field> <field name="environment">test</field> <field name="website_published" eval="True"/> <field name="pre_msg"><![CDATA[ diff --git a/addons/payment_transfer/views/payment_views.xml b/addons/payment_transfer/views/payment_views.xml index 127ab7b1238..a126bb67626 100644 --- a/addons/payment_transfer/views/payment_views.xml +++ b/addons/payment_transfer/views/payment_views.xml @@ -17,9 +17,6 @@ <field name="error_msg" position="attributes"> <attribute name="attrs">{'invisible': [('provider', '=', 'transfer')]}</attribute> </field> - <field name="auto_confirm" position="attributes"> - <attribute name="attrs">{'invisible': [('provider', '=', 'transfer')]}</attribute> - </field> </field> </record> </odoo> |
